Kylix
Tips

NEW TIPS
Database (135)
Files (612)
Forms (606)
Graphic (536)
IDE (456)
Indy (433)
Internet / LAN (590)
IntraWeb (443)
Kylix (447)
Math (561)
Misc (591)
Multimedia (496)
Objects/
ActiveX (503)

OpenTools API (438)
Printing (459)
Strings (583)
System (721)
VCL (586)

Search Tip
Top15
Add new Tip

Forum

...use the AnimateWindow function?
Author: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch
[ Print tip ]    

Tip Rating (5):  
     



{
  The AnimateWindow function enables you to produce
  special effects when showing or hiding windows.

  Mit der AnimateWindow Funktion kann man spezielle Effekte
  erzeugen beim Zeigen, Unsichtbarmachen (hide) einer Form.
}



procedure TForm1.Button1Click(Sender: TObject);
begin
  
Form2.BringToFront;
  AnimateWindow(Form2.Handle, 3000, AW_BLEND);
  Form2.Show;
 {
  The 3. parameter can be one or more of the following values:
  Der 3. parameter kan folgende Werte annehmen:

  AW_BLEND : Uses a fade effect
  AW_SLIDE : Uses slide animation.
  AW_ACTIVATE : Activates the window
  AW_HIDE : Hides the window.
  AW_CENTER : Makes the window appear to collapse inward
  AW_HOR_POSITIVE : Animates the window from left to right.
  AW_HOR_NEGATIVE : Animates the window from right to left
  AW_VER_POSITIVE : Animates the window from top to bottom
  AW_VER_NEGATIVE : Animates the window from bottom to top
 }
end;


{

Requirements:
  Windows NT/2000/XP: Included in Windows 2000 and later.
  Windows 95/98/Me: Included in Windows 98 and later.
}

Rate this tip:

poor
very good


Copyright © Torry's Delphi Pages Torry's Delphi Pages Maintained by Simon Grossenbacher Notes? Comments? Feel free to send... Copyright © 1996-2001