Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Act on a DoubleClick event
Message
From
05/06/2005 07:18:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01019702
Message ID:
01020322
Views:
16
Hello,

"Is there any way of 'MAKING; the Grid Dblclick event fire (NOT the Text Box)
I have'nt experimented with the BINEVENTS but I suspect the same would apply."

No ..

you have two options ..
either put subclassed textboxes in the grid instead of the VFP baseclasses and let them trigger the DblClick of the grid in their DblClick event ..

e.g.
yourTextBox:DblClick:
THIS.Parent.Parent.DblClick() 
or bindevent to the standard textboxes
Grid:Init
&& whatever init you do normally 
FOR EACH loColumn IN THIS.Columns
  IF PEMSTATUS(loColumn,'Text1',5)
   BINDEVENTS(loColumn.Text1,'DblClick',THIS,'DblClick')
  ENDIF
ENDFOR

Grid:Destroy
FOR EACH loColumn IN THIS.Columns
  IF PEMSTATUS(loColumn,'Text1')
   UNBINDEVENTS(loColumn.Text1,'DblClick',THIS,'DblClick')
  ENDIF
ENDFOR
Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform