Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call from a Form to a Top Level Form
Message
From
17/10/2001 04:53:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/10/2001 03:31:27
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00569422
Message ID:
00569434
Views:
17
>Dear all,
>
>In my Account Program design, A series of password verifiying forms is implemented at the application opening. Afterward a so-called Main Form which select the various companies into a common Top Level Form in which a top level menu is implemented for voucher inputing, report geenerating and etc..
>
>In my design, I intend to let the application releade from the top-form and go back to the Main Form, so that, I can change the company working on. However, the following methods is insucessfully run:
>
>1. Set the Top Level Form modal
> At the commandbutton click to Top Level Form at Main Form click event type:
> :
> thisform.hide
> do form 'TopLevelForm'
> thisform.show
> :
> :
>
>2. Set the TopLevelForm modalless
> At the commandbutton click to TopLevelForm at Main Form click event type:
> :
> thisform.release()
> do form 'TopLevelForm'
> :
> :
> At the Top Level Menu I implement a pad name 'Exit' which coding is
> _screen.activeform.release()
> do form 'Main'
>
>Is there any thing wrong in program design or otherwise, the coding is incorrect??
>
>
>With regards,
>
>Ransome

So,
A top level window cannot be modal. You have workarounds though :

thisform.hide
do form OtherTopLevel with thisform

OtherTopLevel during release checks if caller exists, release itself and shows Caller.

Or an easier approach is to have a TopLevel as a container of other forms which are 'in top level' and modal.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform