Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Row Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Row Height

 Post Reply Post Reply
Author
Message
parkersoft View Drop Down
Newbie
Newbie


Joined: 31 March 2008
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote parkersoft Quote  Post ReplyReply Direct Link To This Post Topic: Row Height
    Posted: 13 July 2017 at 12:02pm
Hi,

I am using 17.3

How do i set the height of rows in the report control?

I have used .SetCustomDraw xtpCustomMeasureRow

and then set Height = x in the MeasureRow event. This works on initial load but the rows then revert to default height whenever the report control loses focus. This did not happen on 17.2

Thanks

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: 17 July 2017 at 7:15am
Hello,

I can't reproduce issue.
I have checked this with  C#.NET\ReportSample
in sub sample frmTreeView.cs  I have added
this.wndReportControl.MeasureRow += new AxXtremeReportControl._DReportControlEvents_MeasureRowEventHandler(this.wndReportControl_MeasureRow);

wndReportControl.SetCustomDraw(XTPReportCustomDraw.xtpCustomMeasureRow);

private void wndReportControl_MeasureRow(object sender, AxXtremeReportControl._DReportControlEvents_MeasureRowEvent e)
{
     e.height = 10;
}
on that form is OK button. When I switch focus with Tab  from ReportControl to button Ok  then rows still 10 px in height. 

Can you provide sample application where I can see this issue ?

Regards,
 Oleksandr Lebed
Back to Top
parkersoft View Drop Down
Newbie
Newbie


Joined: 31 March 2008
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote parkersoft Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2017 at 7:31am
In the Samples/ReportControl/VB/ReportSample project

frmMain.Load

Add:

wndReportControl.SetCustomDraw xtpCustomMeasureRow

and in the MeasureRow event add:
Height=40

comment out:
wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow

Then place any other control on the form that can get focus.

Run the project and tab to the other control. The rows will change size.

Thanks
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: 17 July 2017 at 8:04am
unfortunately  I can't reproduce. Have you tried v18.0 beta ?

Are you sure that there are not any other changes in ReportSample ?
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.141 seconds.