Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid question
Message
 
 
To
27/05/2003 08:42:25
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00792933
Message ID:
00793339
Views:
30
Thanks, Marcia. Now there is no need for special textbox class.

>In order to use grid's DblClick event you would have to put code in Column's text DblClick event like this.parent.parent.DblClick(this)
>
>Actually, this is not true in VFP 8.0. You can use code like this in the grid's Init to let the text boxes use the grid's dblClick()
>
>
>*!* now make sure that the dblclick method of all the contained text boxes
>*!* delegate to the grid's dblclick()
>FOR EACH loColumn IN This.Columns
>  FOR EACH loControl IN loColumn.Controls
>    IF LOWER( loControl.BaseClass ) = 'textbox'
>      BINDEVENT( loControl, 'dblClick', This, 'dblClick' )
>    ENDIF
>  ENDFOR
>ENDFOR
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform