Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How: write custom wait window that doesn't affect form?
Message
From
08/10/2001 23:08:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/10/2001 19:33:01
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00565744
Message ID:
00565797
Views:
16
>I have had a problem that I posted here and thanks to the great help, I was able to figure out what is causing the issue... in a nutshell:
>
>I have a form with a pageframe on it. I have some custom code in the PAGE.ACTIVATE method on a certain page. All of a sudden, I had the code looping continuously into the PAGE.ACTIVATE and I think I have it figured out now.
>
>I created a custom WAIT WINDOW where my custom status messages are displayed throughout this applications processing. My window, which has a single textbox field, displays in a different color, centered in the display... it is, another form in the applications project.
>
>In my PAGE.ACTIVATE, I was calling this status box displaying two messages during processing. It now appears, that when I call my statusbox and then close my status box at the END of the PAGE.ACTIVATE, the PAGE.ACTIVATE fires again, in essence, looping continuously. When I comment out the status box, the PAGE.ACTIVATE fires once.
>
>Obviously, my idea of a more noticable statusbox other than the WAIT WINDOW isn't going to work, but I don't want to throw that out necessarily. Is there a better way to write my own custom status box that does NOT cause the PAGE.ACTIVATE (or any other activate or focus code to fire) when it gets closed?

VPM's form_ class has a property "MessageOnReactivateNotThisTime", which it sets to .t. whenever it needs to display another form from within the form. You can apply the same logic, have a property on your form, set to .f. at all time, except while your .activate is running. In the beginning of .activate, check for this property first, and Return if it's .t., then set it to .t. and continue with .activate. Set it back to .f. in the last line of .activate and that's it.

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