Solved

Drawing On Screen

Posted on 2003-11-12
1
338 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dev Express grid collapse 2 45
Firemonkey DbLookupComboBox equivalent ? 2 56
Graphics32 under Delphi 10.1 Berlin 2 105
DBCtrlGrid, Delphi, Scroll 7 26
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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