Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - ReportControl: RowClick or ItemClick
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReportControl: RowClick or ItemClick

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: ReportControl: RowClick or ItemClick
    Posted: 11 May 2005 at 7:17am

Can a RowClick or ItemClick event be added to the report control?

Here's my scenario:

When a user double clicks on a row in my report control, it opens a form displaying the data for that record from the RowDblClick event. Perfect!

The report control contains an email column and a website column. The BeforeDraw event changes the font used to display the items in these columns to mimic a hyperlink.

So that the hyperlinks function (and  in the absence of any Click events) I've added the functionality to open an email or webpage from the MouseDown event which works, almost nicely.

However, now if the user double clicks on the email or url, both the MouseDown and the RowDblClick event fire.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2005 at 11:16am

If we add RowClick  anyway it will be fired with RowDblClick.

So I think you can add If in your RowDblClick to check if it is not email column and a website column

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.