Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid class to know if any control is double clicked
Message
From
23/12/2004 10:18:29
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00971672
Message ID:
00971787
Views:
27
>Hi Gregory
>
>>Are the controls you put in subclassed ?
>
>Yes
>
>>Even if the grid is dynamic, in the init or the RecordSource assign, you can loop through the columns, find out the type of the controlsource and subsitute your subclassed control depending on the type of the controlsource, add your own header class, ... Been doing this for ages
>
>Done. I like your idea of updating the control classes to check for this.parent.class = "COLUMN" or maybe this.parent.parent.class = "GRID" and then put in the this.parent.parent.dblclick() call.
>
>Thanks a lot for your idea.

you're welcome.

The best check is imo
this.Parent.BaseClass = 'Column'

&& since
this.Parent.Parent.BaseClass = 'Grid' && may fire an error if the textbox is directly on a form
oh, and pass the object reference as well: this.parent.parent.dblclick(this). You'll find out you need it
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform