Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
Zooming effect when minimizing windows Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
23-Aug-02
Category
Win API
Language
Delphi 2.x
Views
85
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			 Author: Peter Below

In win95 or NT4, there's a 'zooming effect' when an application is minimized to the 
taskbar or restored from the taskbar. However, this zooming effect does not seem to 
be presented in Delphi applications.

Answer:

Yes, the reason for this is simple: if you click the minimize button of the main 
form in a Delphi app, the main form is not minimized but hidden. In its place the 
zero-size Application window is minimized. Having the animation in place here gives 
some rather weird visiual effects so the VCl designers decided to disable it.

You can switch the effect on or off with the following piece of code, which works 
for Win95 and for NT 4:
1   
2   procedure TForm1.SwitchEffect(Sender: TObject);
3   var
4     Inf: TAnimationInfo;
5   begin
6     Inf.cbSize := sizeof(Inf);
7     // 1 = switch it on,
8     // 0 = switch if off
9     Inf.iMinAnimate := 1;
10    SystemparametersInfo(SPI_SETANIMATION, 0, @Inf, SPIF_SENDWININICHANGE);
11  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC