Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Not Firing
Message
 
To
16/07/2007 15:14:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01240814
Message ID:
01240835
Views:
28
>>>We have a combo box control. The style is 2 (Dropdown List)
>>>
>>>The code in the GotFocus event is inherited from the parent class. It is
KEYBOARD "{F4}" PLAIN CLEAR
>>>
>>>When the user double-clicks one of the items I would like to perform some action (open a document via ShellExecute). However, the dbl-click event code never seems to fire. I've put WAIT WINDOW's etc. there and they don't get displayed.
>>>
>>>I tried putting a NODEFAULT in the GotFocus method, but then nothing happens when I click either in the list or on the drop-down arrow.
>>>
>>>All suggestions greatly appreciated.........Rich
>>
>>Double Click event is fired only when you double click in Text portion of the combo, not in the list one. So follow Naomi's suggestion, put your code in IAC event.
>
>That would have worked just fine for me, except that the Double Click event is not firing. In my response to Naomi I said I would put a < View Item > button on the screen but in the interest of learning more about this control.........
>
>Is there any way I can get back the default behavior of the base combobox control? I'm pretty sure it's that KEYBOARD command that is preventing the actions I want. But NODEFAULT prevents any interaction (no list when the drop-down arrow is pressed, no click event code, no dbl-click event code). I could create a new control, but I've been asked to work with the ones we have.
>
>Thanks.....Rich


As far as I understand you want to do something when user selec some item from List and then double click on text portion of the combo, right? If so can you post your code for that combo? I mean the code in Click, GotFocus, KeyPress events etc.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform