 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
tinyabs Guest
|
Posted: Wed Feb 01, 2006 7:52 am Post subject: Hiding main form |
|
|
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
|
Posted: Wed Feb 01, 2006 9:32 am Post subject: Re: Hiding main form |
|
|
"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 |
|
 |
|
|
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
|
|