Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - XTPReportRow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPReportRow

 Post Reply Post Reply
Author
Message
sodind View Drop Down
Groupie
Groupie


Joined: 16 March 2011
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote sodind Quote  Post ReplyReply Direct Link To This Post Topic: XTPReportRow
    Posted: 12 July 2011 at 4:58pm
Hello,
How can I set row's size (height)? Is this possible?
Thanks.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2014 at 4:12pm
I'm also searching for this!
I want to use fixed row height, but it should be increased by several px.
Can't find a way how to do this.
SetFixedRowHeight(FALSE) can't be used, because scrolling performance is then really poor!

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2014 at 9:39am
Hello Martin,

This is possible through   CXTPReportPaintManager::m_nRowHeightDefault   variable. But to apply changes you must reset text font Wacko.  Also for better appearance add alignment for every column  xtpColumnTextVCenter.

int CSomeView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CXTPReportView::OnCreate(lpCreateStruct) == -1)
return -1;

CXTPReportControl& wndReport = GetReportCtrl();

 wndReport.GetPaintManager()->m_nRowHeightDefault += 5;
LOGFONT lf;
wndReport.GetPaintManager()->GetTextFont()->GetLogFont(&lf);
wndReport.GetPaintManager()->SetTextFont(lf);

...

for (nColumn=0; nColumn<nColumnCount; nColumn++)
{
CXTPReportColumn *pColumn = new CXTPReportColumn(nColumn, _T(""), 90, TRUE);
pColumn = wndReport.AddColumn(pColumn);
pColumn->SetAlignment(xtpColumnTextVCenter);
}
...


Regards,
 Oleksandr Lebed
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2014 at 9:44am
Hi;

Meanwhile I found a better solution:
I created my own CXTPReportPaintManager and wrote a SetRowHeight() function that I call in the constructor of my CXTPReportControl derived class. That's it.
void FixedGroupHeightPaintManager::SetRowHeight( int Height ) {
  m_nRowHeight=Height;
}

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Marco1 View Drop Down
Senior Member
Senior Member


Joined: 16 January 2004
Location: Germany
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco1 Quote  Post ReplyReply Direct Link To This Post Posted: 23 December 2014 at 5:27am
Meanwhile, we created our own 15.3.2 version with own fixes and enhancements (some merges of the 16.x branch).
Things like your fix above go direct inside our version. Thanx.
Unfortunately all 16.x. wasn't and isn't usable in our product. The way we've chosen is to stay by our own 15.3.2 version and 2010 themes for the next years and maintain the toolkit on our own. 15.3.1 is a very stable and IMHO the best version of the toolkit.
Let's see how things here play out...

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.