Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Click & Eratic Behaviour in Comb Box Drop Down
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00911283
Message ID:
00911738
Vues:
24
Sergey,

This is quite bizarre but the mouseup event only knows that the right click was pressed if I add a line that includes a wait window such as:
wait window 'whatever' timeout 1
if nbutton = 2
keyboard '{ENTER}'
endif

>Allan,
>
>Just an untested idea. Can you use MouseUp event to handle that?
>
>>I am having a problem with eratic behaviour within a combobox.
>>
>>What I am tring to accomplish is:
>>The combobox always has 4 columns but the order of the columns will change based upon user input in a separate control.
>>In the dropdown method I position headers (labels) immediately above the columns and set their visible property to .t. This in effect hides the combo box (but not the dropdown) which is also correct.
>>The problem I am having is knowing * when * to set the columnal headers to not visible.
>>I have added code to the lostfocus of the combo box which functions properly when I actually choose an entry by left clicking.
>>However, if I right click, press the space bar or the enter key the drop down list closes, no entry is chosen and the columnar heading still appear partially hidden by the combo box. Neither the valid or lost focus have fired. On key label rightmouse * has no affect.
>>
>>Next, in the dropdown method I have inserted the following:
>>ON KEY LABEL RIGHTMOUSE keyboard '{ENTER}'
>>which closes the dropdown list, does not select an entry and the columnar headings become invisible. This works as long as I have not scrolled down the list past the 7 entries that initially are displayed. If I have scrolled, the entry that is high lited when I right clicked is selected and the columnar headings become invisible.
>>
>>Thank you in advance for all suggestions.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform