![]() |
Abschieds "Animation"
Hu,
wenn man meine Applikation schließt, soll das Fenster "in sich hingehen" und verschwinden, ich habe das auf einfache Art gelöst, aber es ruckelt leicht.
Delphi-Quellcode:
Kann man das Ruckeln entfernen?
// Timer auf 200
procedure TForm1.Timer2Timer(Sender: TObject); begin if Form1.Width < 50 then Application.Terminate; Form1.Height := Form1.Height-20; Form1.Width := Form1.Width -20; end; |
Re: Abschieds "Animation"
Timer Intervall auf 1 stellen und nur 10 abziehen, dann sollte es flüssiger sein.
|
Re: Abschieds "Animation"
Ein Intervall von 1 schaffst Du aber nicht :zwinker:
|
Re: Abschieds "Animation"
Zitat:
Du könntest anstatt dem Timer auch die Funktion AnimateWindow nehmen, z.B. so:
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
begin AnimateWindow(Handle, 2000, AW_HOR_NEGATIVE or AW_VER_NEGATIVE or AW_HIDE); Close; end; |
Re: Abschieds "Animation"
Zitat:
|
Re: Abschieds "Animation"
du kannst das AnimateWindow auch einfach in tform1.close reinschreiben
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz