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

HeaderRecord doubleclick

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: HeaderRecord doubleclick
    Posted: 24 August 2011 at 5:57am
How it is possible to find out, if a ReportRecordItem ist from the HeaderRecors or from the normal Recors, if i doubleclick on it? Smile
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2011 at 6:46am
Something like this?:

Private Sub ReportControl1_RowDblClick(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
Dim blnFound As Boolean
Dim objHeaderRecord As XtremeReportControl.ReportRecord
    For Each objHeaderRecord In ReportControl1.HeaderRecords
        If Row.Record Is objHeaderRecord Then
            blnFound = True
            Exit For
        End If
    Next
    If blnFound Then
        'Do stuff.
    End If
End Sub

Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2011 at 7:55am
Dank je wel, Willowmaster
 
but if you loop all HeaderRecords, you dont have to check if the Item is a HeaderRecord ?
 
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2011 at 2:12am
Wink
 
You doubleclick on an item which belongs to a row. And the row has a record. That means you don't have to check the item. But i'm struggling with these definitions too so I can't say for 100% sure. Also If you use a treestructure you have to search for the child nodes of the headerrecords recursively.
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2011 at 11:45pm
Hi,

added for next release: Row.Section.Index.

You can use the following constants for the index:

xtpReportSectionHeader
xtpReportSectionBody
xtpReportSectionFooter

Andre

Codejock support
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.047 seconds.