Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force a Combo box to drop-up ?
Message
De
17/12/1997 09:37:34
 
 
À
17/12/1997 09:34:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00066280
Message ID:
00066522
Vues:
39
>>>>>>>>Don't know myself, but it looks like a darned good WISH LIST item!
>>>>>>>>
>>>>>>>>If you decide to put it in the list, maybe you can add full control of the pop placement. Not just Up or Down, but also
>>>>>>>>1) number of lines (max.)
>>>>>>>>2) show other columns to left or right or right under displayed column (not only to right, as it is now, unless it doesn't fit).
>>>>>>>
>>>>>>>Are there any ActiveX combo boxes that ship with VB (or 3rd party) that are more full-featured .AND. that work with VFP?
>>>>>>
>>>>>>All mentioned things can be done using VFP container object.
>>>>>
>>>>>Except capturing mouse input which is a prerequisit to getting the combo box to 'unpop' when you click out of the combo box. I guess you could create a combo box that *almost* looked like the real thing, but had a few extra features but that most likely would defeat the purpose. I ran into problems when trying to make a combobox that did name completion (like IE4) but the Fox Combo box didn't have the necessary features and I quickly hit the mouse capture wall when trying to make my own.
>>>>
>>>>Are you sure that I cannot use simple Lostfocus event to fire code to 'un-popup' list part of the container? Believe me, in this case I have unlimited power on control.
>>>
>>>But notice that if you click on the background (for example the form) a standard combo box becomes unpopped whereas your control will remain popped. I'm not saying you couldn't make a custom combo that came close, but it wouldn't behave exactly like the win95 standard.
>>
>>If you want to have standard combo then you use native VFP combo and that's it. If you want something fancy, then you use container. BTW, is it difficult to intercept form.click?
>>I feel that we are going into some area of professional respect. I understand that you try to show me limits of VFP, but note that I'm not going to show you limits of your favourite language, just because I'm not expert in that area. I believe that this approach should be mutually applied.
>
>The way to do this, is to force a keyboard press of Alt+Down Arrow whilst the combo box has focus, so on the got focus event Use the keyboard command with alt and the down key.

Actually, we discussed different topic: how to provide flexible number of lines in list portion, and/or how to force opening of the list portion on top of text portion and so on.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform