?
Solved

Using DrawAnimatedRects

Posted on 2000-02-23
2
Medium Priority
?
415 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 2549964
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
ID: 2550017
Thanks - very nice !!

Regards
Peter
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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