Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the behavior of a form object shutdown
Message
From
14/10/2006 13:02:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01162001
Message ID:
01162010
Views:
24
>>By "on shutdown" we can create some mechanism to stop/control the application's end process..
>>
>>What about a form object (with both title and closeable set .t.) what is the best way to stop the process started by a click on the X (upright corner buttom)..
>>
>>Is it the possibility to use a "nodefault" command at release/unload methods to stop the default behavior? I'd like to turn it invisible instead of down..
>>
>>TIA
>>
>>Claudio
>
>Clicking on X button you fire QueryUnload event. In it you could put:
>
>thisform.Hide()
>NODEFAULT
>RETURN .f.
>
>
Thanks Borislav.. You got it.. I tried (almost) the same on release and unload.. but I forgot about queryunload.. Works fine

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform