Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing value in Destroy()
Message
From
18/01/1999 13:48:48
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
To
17/01/1999 15:42:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00177015
Message ID:
00177290
Views:
41
I don't know what your requirements are, but would ToolTips be of any use instead of a special class?

Jonathan Cochran

>Hi All.
>
>I am creating a control derived from the textbox class which displays a prompt as the value of the control until the user enters the required text. Then the prompt is replaced with the actual text.
>
>If the user does not enter any text, the prompt remains in value.
>
>I need to clean this up when the textbox is destroyed so it is not saved to the linked controlsource field.
>
>The problem I am having is that Destroy() does not allow the value to be changed during the destroy() process (good sense, actually). So I need to find a method or event which is a good location for text to clean up the prompt text, replacing it with blank.
>
>I can easily do this in the continer's destroy method by parsing the .controls colleciton, identifying any textboxes of the derived type and setting their value to empty if the value text == the prompt text. But I would like this textbox to be self-contained.
>
>Any ideas?
>
>regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform