Print Page | Close Window

RowHeight and Grouping.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14064
Printed Date: 14 November 2024 at 11:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RowHeight and Grouping.
Posted By: keepITcool
Subject: RowHeight and Grouping.
Date Posted: 18 April 2009 at 6:17am

I'm getting to grips with various CJ controls... sometimes the hard way.

RowHeight: How do I control the rowheight? That goes for normal rows, but group rows in particular. I'm using office themes for coloring and shading but I'm not sure if and how these influence rowheight. For now I just want to get rid of these oversized group rows.

Grouping: I'm struggling with "ShowItemInGroups" (at runtime)  I found it late, but it's exactly what I needed.

.HideColumnAfterGroupBoxDrop = True appears to be ignored when grouping is handled by ShowItemsInGroup.
I can and apparently must do it myself for which I need GroupingOrderChangedEx event. Nice there's no documention for that.

First hing I notice is that only the Added column fires an event. I had expected it to first fire an event for the column dropped.
Thus I have to store the hidden column in my own variable. What an f***ing nuisance.

BTW: Overall I'm quite happy with the controls. Report performance is very good!.
BUT: Learning curve is pretty steep and the helpfile sucks. It's directed at individual methods and properties but there's hardly any overview of how the various settings work in combination. So finding out how to make the controls behave like you want is too much trial & error.   Then there's the technical issues with the helpfile itself. The "Location" is not precise. So in the search pane all controls are listed with "Xtrme Suite ActiveX Controls " and you''ve got to browse thrue the list. I find myself swapping between helpfile and object browser to find stuff. Pressing help from inside the code, will almost always bring up the wrong topic.

To paraphrase Paul Sr. from OCC: "I'm getting aggravated here".



-------------
Xtreme :SuitePro (ActiveX) version 13.1.0
Language: VB 6.0
Platform: WinXP/Win7(32+64bit)



Replies:
Posted By: Aaron
Date Posted: 20 April 2009 at 1:18pm
Hi,
 
You are right about help file. I don't use it often but when I do, most of the time when I'm having really big problems, it will raise another question...
 
Well for your issues:
 
  1. RowHeight
    • set wndReportControl.SetCustomDraw  xtpCustomMeasureRow 
    • Private Sub wndReportControl_MeasureRow(ByVal Row As XtremeReportControl.IReportRow, ByVal hDC As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
          If Row.GroupRow Then
              Height = 20
          End If
      End Sub
  2. Grouping
    • You found it yourself???
  3. GroupingOrderChange Event
    • You need GroupingOrderChangeEventEx
  4. ColumnOrderChange Event
    • You need ColumnOrderChangeEventEx
  5. There is always this forum


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net