Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Order or Control initialization in a form
Message
From
03/12/2001 22:02:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/12/2001 00:43:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00588590
Message ID:
00589050
Views:
29
>Is there any way to change the order in which controls are initialized during a form initialization. I mainly want my action buttons to be initialized always last, but so far can't find an easy way to do this. Any suggestions are greatly appreciated.

You can use my TabOrderToInstantiationOrder builder (just click on my name, then contributions), but I'd rather repeat what I said there: relying on instantiation order is not a healthy practice. If you need to rely on that, you'd better rethink your design. Proper encapsulation requires that all controls should at least instantiate independently.

Besides, I'm not sure if this would help if the buttons were part of the form class and the other controls were not; I think the objects inherited from the parent class would instantiate first anyway, and it's very likely your buttons come from a parent class.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform