1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Write Text On Desktop

Discussion in 'Delphi Programming' started by AdminDF, Feb 14, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Code:
    private 
    DeskTopCanavas:TCanvas; 
    public 
    {public declarations here} 
    
    {now a procedure must be added OnFormCreate} 
    
    procedure TForm1.FormCreate(Sender: TObject); 
    begin 
    DeskTopCanavas:=TCanvas.Create; 
    DeskTopCanavas.Handle:=GetDC(Hwnd_Desktop); 
    {We have seted the DeskTopCanavas values} 
    end; 
    
    {now fun time} 
    
    procedure TForm1.Button1Click(Sender: TObject); 
    begin 
    {This coomand will show the current text in the screen corner} 
    DeskTopCanavas.TextOut(0,0,'DelphiTips is great!'); 
    end; 
    
    {Using a timer control you can generate a arc that will eat from the desktop } 
    
    procedure TForm1.Timer1Timer(Sender: TObject); 
    begin 
    with DeskTopCanavas do 
    begin 
    Pen.Width:=Pen.Width+5; 
    Pen.Color:=clBackGround; 
    Arc(100,90,80,100,50,80,60,50); 
    end; 
    end;
     
  2. superborg
    Online

    superborg DF Member

    RE:

    Very good! thanks
     

Share This Page