Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic question about inheritance
Message
From
05/05/1998 12:10:10
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00097029
Message ID:
00097052
Views:
20
>Hi. I have a question.
>
>Example: An application is in-place with a few thousand text boxes based on the class AtxTextBox. In some of these text boxes there is coding in the LostFocus method for whatever reason. Time passes. Now a request is made to change the behaviour of the AtxTextBox. Lets say it is a request to change the ForeColor property when it has focus. I would think coding a ForeColor change in the GotFocus and LostFocus methods would make sense. The problem is that any of the controls based on the AtxTextBox control that have coding in the LostFocus method will not run the default code (changing the color back). Is there a simple way around this or will these text boxes have to be found and a DoDefault() stuck in all of the problem children.
>
>BTW, this is just an example of the question. I am not looking for a specific solution to this question (unless it could be applied to all similar situations).
>
>Thanks,
>Joe

You must issue a 'dodefault' command or a 'atxtextbox::lostfocus()' command. Unless the textbox doesn't execute the default code of his class.
Saludos,
A.G.P.
---------
Previous
Reply
Map
View

Click here to load this message in the networking platform