Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox OK only on 2nd DropDown() call.
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00619138
Message ID:
00619176
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
I got it to work the way you want using MouseDown instead:
  PROCEDURE MouseDown
    LPARAMETERS nButton, nShift, nXCoord, nYCoord
    This.Requery()
  ENDPROC
This could become a performance problem depending on the size of the table you are querying because this will fire anytime the user clicks anywhere on the combo, not just the dropdown button. I could not make it work using the DropDown event.

You could dummy this up by overlaying a textbox over the display part of the combo to do your search with. When the user click the drop down button, you could do the requery from the lostfocus of the textbox. Once you select a value from the dropdown list, you could set the Value of the text box to the display value of the dropdown.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform