AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Auf TabSheet zeichnen

Ein Thema von CReber · begonnen am 2. Feb 2005 · letzter Beitrag vom 2. Feb 2005
 
Benutzerbild von CReber
CReber

Registriert seit: 26. Nov 2003
Ort: Berlin
343 Beiträge
 
Delphi 2006 Professional
 
#1

Auf TabSheet zeichnen

  Alt 2. Feb 2005, 11:01
Warum zeigt der mir nix an?

Delphi-Quellcode:
procedure DrawAAText(Text : String; X, Y : Integer; SendTo : TTabSheet);
  var bmp : TBitmap;
begin
  bmp := TBitmap.Create;
  with bmp do begin
    //Transparent := True;
    Handle := GetDC(SendTo.Handle);
    Width := 200;
    Height := 50;
    Canvas.Font.Name := 'Microsoft Sans Serif';
    Canvas.Font.Size := 12;
    Canvas.Font.Style := [fsBold, fsItalic];
    Canvas.Brush.Color := $00FBE8DD;
    //Canvas.FillRect(Rect(0,0,200,50));
    try
      Canvas.TextOut(x, y, Text);
    finally
      Free;
    end;
    //BmpGBlur(bmp, 2);
    {try
      Handle := GetDC(SendTo.Handle);
      Canvas.Draw(X, Y, bmp);
    finally
      //ReleaseDC(MyCanvas.Handle, TabSheet1.Handle);
      Free;
    end;                             }


  end;
end;
Christian Reber
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:23 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz