Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown list activation of ComboBox in Grid
Message
 
 
À
14/05/2001 17:07:01
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00507052
Message ID:
00507065
Vues:
22
>I wish to alter one behavior of a combobox (2 - Dropdown List) in a grid. Here it is:
>
>1) If the *mouse* moves the focus to the combobox I want to prevent the dropdown list from immediately appearing. I just want the control receive focus. Thereafter, as long as focus remains on the cell, subsequent mouse clicks should yield the default dropdown list behavior.
>
>2) However, if the combobox got its focus from the *keyboard*, the very first mouse click should open the dropdown list.
>
>I have been able to achieve the first behavior but not, simultaneously, the second. I really hope someone else has worked on this one and would be kind enough to share with me what I'm surely overlooking. Thanks so much!

How many ways can a user get to that combo? They can TAB or hit ENTER from the previous column or Shift+Tab from the column after it. I assume that since you are using a combo, the Up and Down Arrow do not move up and down the rows. The only other way is to click in it. In the KeyPress of the surrounding columns, you could trap all the Keyboard ways a user can leave that column. So if the user keys to the combo column, set a property of the combo indicating the the column was keyboarded into. Otherwise, set that property to FALSE to indicate a mouse click was used to initially get to that column.

Once you have activated the default dropdown behaviour, the the property back to FALSE.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform