General information
Category:
Coding, syntax & commands
Can you explain me the effect of the lines:
Textbox::Gotfocus
and then
NODEFAULT
In addition to what Alex said, the reason that you must execute the base class behavior first, then set SelStart and SelLength and suppress the native base class behavior afterward is that the when the native base class behavior runs, one of the effects is to reset SelStart and SelLength. That is why you use TextBox::GotFocus and NODEFAULT: to control when the base class behavior runs relative to your custom code. The default behavior is for VFP to run any custom code in you method and then run the native behavior (if any) afterward.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only