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 

Hiding main form

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
tinyabs
Guest





PostPosted: Wed Feb 01, 2006 7:52 am    Post subject: Hiding main form Reply with quote



Hi,
When my users clicks the minimize button on my main form, it will minimize
into a trayicon. How to I hide the main form together with the button on the
task bar?

I can't access JEDI website to get JvTrayIcon as it got the methods to do
this.


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 01, 2006 9:32 am    Post subject: Re: Hiding main form Reply with quote




"tinyabs" <nospam (AT) me (DOT) com> wrote


Quote:
How to I hide the main form

Set the form's Visible property

Quote:
together with the button on the task bar?

Use the Win32 API ShowWindow() function, specifying the TApplication::Handle
property.

// to hide ...
::ShowWindow(Application->Handle, SW_HIDE);
Visible = false;

// to re-show ...
Visible = true;
::ShowWindow(Application->Handle, SW_SHOW);


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) 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.