Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hotkey Puzzle.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00160431
Message ID:
00161011
Views:
27
Marc,

I'd try putting it in my cForm.ActiveControl_Assign. That would encapsulate it to each form. We still can't attach to _screen unless you are using a top-level form.

I don't like that thought of putting the same code in to all baseclasses either because it makes the classes more tightly coupled. You could use a Hook pattern in GotFocus() to minimize the required method code impact and reduce duplicated code.

>You mean _screen.activeform.activecontrol.name.accessor(), that is triggered each time vfp changes the vale of the name of the activecontrol?
>
>Right! But VFP6 has not landed on my PC yet :(. But you're right, that would be nice, because having controls registering themselves in the form would mean that I have to code that in each base class, and containers (grids, pageframes etc...) would definitely pose problems I do not even want to look into at this stage.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform