Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Mouse clicks for data entry
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459346
Message ID:
00459365
Vues:
21
>I saw program once that had an icon on the side of a data entry box. The user could type in the info such as a number "01" or they could left mouse click on the icon and a box would open a table with the numbers in it such as "01" , "02" etc. The user could then right mouse click on the number and it would appear in the afore mentioned data box. How do you do this?
>
>Thanks in advance for your help.
>
>Randall

Without getting into specifics (I'll leave that to you), here are some guidelines:
1. Create a modal form with a listbox or grid to display the available selections from a table.
2. Create a form-level property to hold the return value of the form.
3. Add code to the right-click of the listbox/grid to populate the form-level property.
4. In the Unload event of the form, issue a return THIS.FormProperty to return the value.
5. Add code to the click event of the icon to launch a modal form and retrieve a value.
6. Populate the textbox with the returned value.

To better encapsulate this, you could create a container class with a textbox and icon button because the two are so dependent on one another.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform