Solved

Using DrawAnimatedRects

Posted on 2000-02-23
2
392 Views
Last Modified: 2012-03-15
Does anyone know how to use DrawAnimatedRects ??

I have found 2 discussions on the Internet and no one seem to know how to use DrawAnimatedRects.
Does there exist another similar call ??

Regards
Peter
0
Comment
Question by:PeterLarsen
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
Comment Utility
Hi
here's an example:

procedure ShowWindowH(Show: boolean; Win: TWinControl);
var StartPos, EndPos: TRect;
    MPos: TPoint;
begin
GetCursorPos(MPos);
if Show=false then begin
   with Win do begin
        Hide;
        StartPos:=Rect(Left,Top,Left+Width,Top+Height);
        EndPos:=Rect(MPos.X,MPos.Y,MPos.X,MPos.Y);
        DrawAnimatedRects(Handle,3,StartPos,EndPos);
   end;
end else begin
   with Win do begin
        Hide;
        EndPos:=Rect(Left,Top,Left+Width,Top+Height);
        StartPos:=Rect(MPos.X,MPos.Y,0,0);
        DrawAnimatedRects(Handle,3,StartPos,EndPos);
        Show;
   end;
end;
end;
0
 
LVL 2

Author Comment

by:PeterLarsen
Comment Utility
Thanks - very nice !!

Regards
Peter
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now