borgo
asked on
Minimizing a form
Hi Expert
With D5 I have lost the possibility to minimize the form without showing the animated window going down on the taskbar.
How Can I minimize my form without showing that animation ?
Can you understand me ?
Thank you.
With D5 I have lost the possibility to minimize the form without showing the animated window going down on the taskbar.
How Can I minimize my form without showing that animation ?
Can you understand me ?
Thank you.
heh note also that calling Application.Minimize from a modal form does not work anymore in d5 ..
Hi
ShowWindow(Form1.Handle, SW_HIDE);
Best Regards
ShowWindow(Form1.Handle, SW_HIDE);
Best Regards
also, in delphi 4, application.restore; does not work, i had to do a showwindow(form1.handle,sw _restore) have inprise neglected this basic workings of a form?
ASKER
Sorry but don't work
ASKER
Madshi wrote:
Add this to your form:
private
procedure SysCommand(var Message: TWMSYSCOMMAND); message WM_SYSCOMMAND;
procedure TForm1.SysCommand(var Message: TWMSYSCOMMAND);
begin
if Message.CmdType and $FFF0 = SC_MINIMIZE then begin
Message.result:=0;
Hide;
end else inherited;
end;
And this work fine !!!
Thank you again Madshi.
Andrea.
Add this to your form:
private
procedure SysCommand(var Message: TWMSYSCOMMAND); message WM_SYSCOMMAND;
procedure TForm1.SysCommand(var Message: TWMSYSCOMMAND);
begin
if Message.CmdType and $FFF0 = SC_MINIMIZE then begin
Message.result:=0;
Hide;
end else inherited;
end;
And this work fine !!!
Thank you again Madshi.
Andrea.
Hmmm... Where did I post that? Can't remember... :-)
Well, but that isn't the answer to your problem, is it?
Well, but that isn't the answer to your problem, is it?
ASKER
Hi Madshi
Yes I use it to hide my form without showing the minimizing animation.
Any other good solutions are welcome :-)
Yes I use it to hide my form without showing the minimizing animation.
Any other good solutions are welcome :-)
Hmm... In the moment I have no other idea...
ASKER
Ok, please Madshi reply for the points, the answer is one of yours.
Bye.
Bye.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
procedure TMainForm.FormCreate(Sende
begin
Application.OnMinimize := FormDblClick;
ShowWindow(Application.Han
end;
procedure TMainForm.FormDblClick(Sen
begin
Icons.Show; // taskbar icon..
ShowWindow(Handle, SW_HIDE);
ShowWindow(GetWindow (Handle, GW_OWNER),SW_HIDE);
ShowWindow(Application.Han
end;
ASKER
Many thanks to all of you who have helped me
Have a nice day.
Andrea.
Have a nice day.
Andrea.