Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvent() and DoDefault
Message
From
17/05/2010 09:36:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01464849
Message ID:
01464876
Views:
41
>>>Can you have no code absolutely in textbox.DblClick and have all the code in either grid or form method instead?
>>
>>That's what I am trying to do - get rid of all code in TextBox.DblClick. But how am I to react to a double-click in a grid column? - I thought the only way to do this was through BindEvent(). Now, the the complication with NODEFAULT, I am starting to suspect this is not possible.
>
>Hilmar,
>
>You simply bind textbox's DblClick to Grid's DblClick. You forget about NODEFAULT. That's all.
>
>Here is a sample Message ID: 1108953

I might not need the NODEFAULT, but I believed that it fulfilled a useful function.

The other place I see NODEFAULT is used is in the Header.MouseDown event. This is used to sort on more than one columns (to sort, the user double-clicks on one column, then does a control-click on additional column). The relevant code is this:
...
if nshift = 2
	nodefault
	this.parent.parent.onsetorder(this.parent, .f., .t.)
...
I am not sure what default behaviour the NODEFAULT would suppress.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform