Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods to use for a listbox?
Message
From
16/03/2006 15:25:31
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104865
Message ID:
01105056
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>>So, are you saying that these events are independent on each other and the same code should be in both methods? Or could you please elaborate more on what do you mean? I put wait window in each of these methods and I see:
>>>
>>>InteractiveChange
>>>Click
>>>LostFocus
>>
>>
>>Just an aside, using WAIT window for checking event firing is potentially problematic as the WAIT WINDOW itself can cause events to fire when they wouldn't otherwise. It is better to use DEBUGOUT and check the debugoutput window in the debugger. Not only does DEBUGOUT remove the introduction of additional events but if you mistakenly forget to remove it it has no impact on runtime.

If I may chime in with my two cents worth -- the InteractiveChange() event is only fired if a new value is selected in the listbox. The click() event is fired every time the user clicks (mouse left button or the user tabbing to the control and pressing the Enter key) the control. The LostFocus() event fires after the control is deselected by the user (it is fired after the new selected control's GotFocus event is fired).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform