Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems to close top level from from toolbar
Message
From
31/07/2000 10:58:18
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00398164
Message ID:
00398804
Views:
39
>Your Main Program and how you handle controls is a little confusing. And I am a bit confused now. Do you have CLEAR EVENTS in the top level form? In my best capacity to understand what you said, you didn't have any (CLEAR EVENTS) because you are using the same routine or event in closing edit forms as well as main form, right?
>

Oh, sorry for being unclear.
The main form doesn't call the same code to be released as the edit forms do. From the main form I call a method in the application control (CloseApp) that releases all forms and then issues Clear Events.
I use the form handler only for the editforms, the main form is instantiated from the application control itself: I admit that this is confusing, and I will change this very soon, but it should not be a problem right now.

I would be interested what you find confusing regarding the handling of controls. I reference all controls via the application control, because this is the first control to be instantiated and the last control to be released, so I have a center place for the application's controls. Of course I could use variables in the main.prg and instantiate all controls there, but I guess that's philosophy.

Now I'm getting off topic, but maybe there is something to learn.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform