Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid question
Message
From
27/05/2003 08:42:25
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00792933
Message ID:
00793041
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform