Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to control highlight a row and dblclick in a grid ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00525885
Message ID:
00525888
Views:
10
Hi!

Take a look to the Nick's Grid Highlighter here in the downloads.
As about Double Click, you can do this 2 ways:

1. Make a transparent shape control and cover the grid by that shape control. Clicks will be on that shape, not on the grid, so you will require to forward clicks to the grid after your own handling, as well as find correct row before double click using grid RowHeight and RelativeRow properties. Algorithm of forwarding mouse events to the controls under the top control you can find in the Fancy Tool Tip control (it is in the downloads too).

2. More simple and native for VFP way is to create class(es) for controls that will be inside of the grid columns. In the Init of the grid replace the default control by your own control with your own class (you can do this in design-time too, but this is also working over each column, or automating it by hacking the VCX file that is pure VFP DBF). In the class define the double click event code to call the grid double click or somethign else.

HTH.

>I would like the user to have the current line highlighted in a grid and to control the action when he double-clic on the line.
>Is it possible without having to work on each column of the grid ?
>
>thankd
>eric
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform