Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

minimize bsnone windows !

Status
Not open for further replies.

masterDicanio

Programmer
May 14, 2005
18
IR
Hi

i have a bsnone border style window ! when i minimize window with code ! it will be a button near the taskbar and doesnt minimize to taskbar completely !

any idea , how i can minimize it completely ?

 
use:

application.Minimize instead of windowstate property.

Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.Minimize;
end;

Giovanni Caramia
 
Sorry i have no idea what's may be.
It seems a conflict in code inside your unit or it's due to a component code ...

I have D7 and i have tried with and empty form (borderstyle = none) and application.minimize works fine.

What does it happen if, (when the form is open), you left-click it's icon on the task bar?
Normaly first click minimize the form to the task bar, next click restore the form. What's in your case?

Giovanni Caramia
 
ok , dont u think it depends on operation system ?
i use win 2000 advanced server ! and application.minimize does nothing ! but in win xp it works !!!!!!!!!!!!!!!!!!

what about 9x ?

any idea ?
 
ok

finaly ! it worked !
gcaramia i found something strange in my code ! i had used aplication.minimize in response to a macromedia flash fscommand ! and it did nothing ! i found it works for a button click or something else ! i dont know what it depends on ! but finaly i made it work ! thanx for your comments !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top