Print Page | Close Window

Simulate Row Click

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=17568
Printed Date: 15 November 2024 at 4:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Simulate Row Click
Posted By: rdeboer
Subject: Simulate Row Click
Date Posted: 16 November 2010 at 3:49pm
Hi,

Is there a way to simulate a RowClick in the ReportControl?

It should execute the MouseDown event






-------------
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit)
Language: Visual Basic 6.0 SP6



Replies:
Posted By: Aaron
Date Posted: 17 November 2010 at 1:30pm

Hi,

I'm curious why you need to simulate row click. Can you be more specific and maybe there's another solution...

 
 


-------------
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....


Posted By: rdeboer
Date Posted: 17 November 2010 at 3:03pm
Hi,

I'm enumerating all rows in the ReportControl, and when i click on a row certain values in the program are updated.

In the VB6 Listview control, you can set the ListIndex property to select the row, but that doesn't work with the ReportControl



-------------
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit)
Language: Visual Basic 6.0 SP6


Posted By: Aaron
Date Posted: 18 November 2010 at 12:33am
Hi,
 
I see, following code will do same as you would change ListIndex with Listview 
 
Me.wndReportControl.Navigator.MoveToRow 1, False, False
 
 
and following event will be fired. It fires whenever row selection changes (mouse, arrow keys or in code)
 
Private Sub wndReportControl_FocusChanging(ByVal NewRow As XtremeReportControl.IReportRow, ByVal NewColumn As XtremeReportControl.IReportColumn, ByVal NewItem As XtremeReportControl.IReportRecordItem, Cancel As Boolean)
    Debug.Print NewRow.Index
End Sub
 
 
Hope this helps Wink
 


-------------
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....


Posted By: rdeboer
Date Posted: 18 November 2010 at 10:59am
That helped! Thanks a lot! Tongue

-------------
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit)
Language: Visual Basic 6.0 SP6



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