Solved

Drawing On Screen

Posted on 2003-11-12
1
340 Views
Last Modified: 2010-04-05
Hi Experts!

How To Hide Our Application's Form And Then Draw a (Example: Line,Arc,...) On The Current Screen?
Can I Use CANVAS?

I'm Using Delphi 5.0

Bye
Programmer-x
0
Comment
Question by:Hamidreza Vakilian
[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
1 Comment
 
LVL 2

Accepted Solution

by:
cqhall earned 20 total points
ID: 9733560
Try something along these lines...

Procedure EllipseOnDeskTop(X1, Y1, X2, Y2: integer; msDelay: word=3000; color: integer=clRed; fill: boolean=false);
var C : TCanvas;
  W : integer;
  diff: integer;
begin
 C:=TCanvas.Create;
 C.Handle:=GetDC(0);
 if fill then C.Brush.Color:=color else C.Brush.Style:=bsClear;
 C.Pen.color:=Color;
 C.Pen.Width:=2;
 C.Ellipse(X1, Y1, X2, Y2);
 W:=GetTickCount+msDelay;
 diff:=W-integer(GetTickCount);
 while diff>0 do
 begin
 if diff<>round(W - integer(GetTickCount)) then
 begin
  diff:=integer(W - integer(GetTickCount));
 end;
 end;
 ReleaseDC(0,C.Handle);
 C.Free;
 SystemParametersInfo(SPI_SETDESKWALLPAPER,0,nil,SPIF_SENDCHANGE);
end;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…

739 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