Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double-Click grid does not work
Message
From
02/10/1998 16:44:34
 
 
To
02/10/1998 14:13:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143380
Message ID:
00143455
Views:
25
>I put some code in a grid.doubleclick() method, but the code is not executing when I double click a field in the grid.

The _control_ in the Column is taking the DoubleClick (Grid.Column1.TextBox1). There is no "Column class" you can modify to automatically propagate the grid. What I have done is create a method on the Grid level called RowDblClick(). I put my complex code in there and drop a simple (This.Parent.Parent.RowDblClick) into the DoubleClick of each TextBox.

Another way -- less desireable to some because it's not Visual -- is to add your columns on the fly. Pass an array containing column names, controlsource... and build the grid dynamically. If you want some examples we can do it offline. JimToler@TemperedSys.com

The same basic problem of "inheritance blindness" is true of CommandGroups and OptionGroups, also. Make really cool custom properties on your base CommandButton or OptionButton, and it's not used when you change the ControlCount of CommandGroups and OptionGroups. Bummer.


jt

"I have no respect for a man who can only spell a word one way." -- Mark Twain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform