Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column member class
Message
From
30/03/2004 10:49:32
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
30/03/2004 10:18:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00890548
Message ID:
00890815
Views:
22
OK. Now I understand your point. When I originally read your first reply, I was wondering how BINDEVENTS was related to the process of actually adding the textbox class to the column member class.

Thanks for the help.

Mike

>Hi Mike.
>
>BTW, can you explain how BINDEVENTS could potentially help here? My only use of BINDEVENTS thus far has been to resize objects in my form when the form resizes.
>
>Sure. Here is some of the code in the SetGrid() method of my base grid class:
>
>
>*!* 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' )
>    ELSE
>      IF LOWER( loControl.BaseClass ) = 'header'
>        BINDEVENT( loControl, 'Click', This, 'SortGrid' )
>      ENDIF
>    ENDIF
>  ENDFOR
>ENDFOR
>
Previous
Reply
Map
View

Click here to load this message in the networking platform