Solved

Drawing On Screen

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…

760 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

18 Experts available now in Live!

Get 1:1 Help Now