Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to add a valid method to a container?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
00979025
Message ID:
00979048
Vues:
12
Hi Rodd,

I'm confused. On one hand you want be able to click on button even if textbox value is invalid, on other hand you don't want that. Can you clarify?

>I built a new control. The control is a container that contains a textbox and a button. The idea is that the button will popup a window of choices and return a value into the textbox. (I know that the same thing can be accomplished with a dropdown combo but there is a reason for what I'm wanting to do here.)
>
>However, I want the textbox to be validated before leaving the container. Initially I tried doing the validation in the LostFocus of the container but that appears to be too late. For instance, clicking on a button allows the click event to fire even if LostFocus determines that the value of the textbox is invalid.
>
>Using the valid of the textbox doesn't work because I want the user to be able to tab out of the textbox onto the control's button to be able to perform the lookup even if the text in the textbox is not valid.
>
>So, I need a Valid method on my container that fires BEFORE the container looses focus.
>
>How can I accomplish this?
>
>Thanks so much for your help!
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform