>>>>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.
I'm not sure either. Attempt a re-write without thinking of nodefault and see, if you achieve the same functionality as original.
If it's not broken, fix it until it is.
My Blog