kyr
asked on
Smoothly Minimize
Does anyone know, why (correct me if i'm wrong) Delphi Apps do not minimize smoothly, like other windows application?
Does it have to do with the use of either VBL or MFC?
Is there anything I can do?
Does it have to do with the use of either VBL or MFC?
Is there anything I can do?
See
procedure TApplication.Minimize;
begin
if not IsIconic(FHandle) then
begin
NormalizeTopMosts;
SetActiveWindow(FHandle);
ShowWinNoAnimate(FHandle, SW_MINIMIZE); !!!!!!!!!!!! <- THIS IS CAUSE OF TROUBLE
if Assigned(FOnMinimize) then FOnMinimize(Self);
end;
end;
procedure TApplication.Minimize;
begin
if not IsIconic(FHandle) then
begin
NormalizeTopMosts;
SetActiveWindow(FHandle);
ShowWinNoAnimate(FHandle, SW_MINIMIZE); !!!!!!!!!!!! <- THIS IS CAUSE OF TROUBLE
if Assigned(FOnMinimize) then FOnMinimize(Self);
end;
end;
ASKER
Bying a book to get a single tip makes experts-exchange useless.
A am not interested in learning all the low level work needed to create a form.
I am just asking for some lines of code that will do this for me.
A am not interested in learning all the low level work needed to create a form.
I am just asking for some lines of code that will do this for me.
ASKER
Thanks very much for your efford anyway.
I will have in mind the book for the future.
I will have in mind the book for the future.
ASKER
vladika,
Do you mean that all we have to do is to replace the default minimize routine with a custom one?
If you know details I would appreciate an answer.
kyriacos
Do you mean that all we have to do is to replace the default minimize routine with a custom one?
If you know details I would appreciate an answer.
kyriacos
hi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanx
If this is a real big problem: Buy a copy of Petzold's book
and start at winmain(). Then you have full control.