BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modal - NoModal

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Silvana
Guest





PostPosted: Fri Nov 21, 2003 6:56 pm    Post subject: Modal - NoModal Reply with quote



Is it possible to use a form to be modal even if it is a global form (i.e.
it is create during the appplication start) ?
It is useful to have a form modal so users can't go to other forms before
hiding it, but when it is hidden, it can keep its last changes.


Back to top
Hans Galema
Guest





PostPosted: Fri Nov 21, 2003 7:30 pm    Post subject: Re: Modal - NoModal Reply with quote



Silvana wrote:
Quote:
Is it possible to use a form to be modal even if it is a global form (i.e.
it is create during the appplication start) ?

Yes, yuo can both use Form->Show() and Form->ShowModal().

If the form is shown with Form->Show() then you first have to
call Form->Close() before you would call Form->ShowModal().

Be sure not to delete the form while closing. So do not
use the Action parameter in the OnClose event.

Hans.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.