Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvent() and DoDefault
Message
From
18/05/2010 10:08:46
 
 
To
18/05/2010 07:52:23
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:
01465017
Views:
65
>>>I have some code, which is repeated in all grid columns in most grids all over the application. In trying to centralize this, to have the code in a single place (and, especially, not having to call a special program every time I add a grid column!), I experimented with BindEvent(). The code contains This. and ThisForm., which I managed to translate.
>>>
>>>But where I am stuck is that I don't think it possible to translate a NODEFAULT in the original code. This occurs in Header.MouseDown and in Text1.DblClick. It doesn't seem feasible to "send" the NODEFAULT from the delegate back to the calling object. Any ideas?
>>
>>
>>NODEFAULT it is useless in DblClick event
>
>Are you sure? - I believe the default action is to select a word, which I would rather avoid if the DblClick triggers some other action.

try this
* text.DblClick
WAIT WINDOWS this.SelLength
it is the second MouseDown that select the word.

To stop this function,
you have to put a NODEFAULT in MouseDown event,
conditional it with Click event.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform