Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to add a valid method to a container?
Message
From
20/01/2005 15:52:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979025
Message ID:
00979047
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>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!
>
>Rodd

Read Thread #974182
Previous
Reply
Map
View

Click here to load this message in the networking platform