Advertisement

05.11.2008 at 12:13AM PDT, ID: 23392430
[x]
Attachment Details

Form & TrayIcon....onMinimize and BringToFront question

Asked by Xyptilon2 in C++ Builder

Tags: C++ Builder 2007

How can i capture the Form1->Onminimze event? In other words, when somebody presses the minimize button of a form, i want to run some code. (in this case hide it from the taskbar) with

Application->Minimize();
Form1->Hide();

This works fine, though i want it ran when the user presses the normal minimize button.

Second... why does this not bring the window to the front? (from a hidden and minimized state)

Form1->Show();
Application->Restore();
Application->BringToFront();

Any ideas? This code runs from a popummenuitem in the tray icon.Start Free Trial
 
 
[+][-]05.12.2008 at 08:44PM PDT, ID: 21552162

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:33AM PDT, ID: 21555424

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C++ Builder
Tags: C++ Builder 2007
Sign Up Now!
Solution Provided By: Xyptilon2
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628