Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Linie in abgeleiteter Komponente zeichnen (https://www.delphipraxis.net/160631-linie-abgeleiteter-komponente-zeichnen.html)

Andreas L. 24. Mai 2011 08:12

AW: Linie in abgeleiteter Komponente zeichnen
 
Zitat:

Zitat von EarlyBird (Beitrag 1102464)
ich habs mal getestet:
Delphi-Quellcode:
procedure TCsPageNavigation.Paint;
begin
  inherited Paint;
  if FStyle = cwsWin2000 then
    DrawBorderShadow;
  //Refresh;
end;

procedure TCsPageNavigation.Refresh;
begin

  case FStyle of
    cwsFlat:
    begin
      BorderTop.Visible := False;
    end;
    cwsWin2000:
    begin
      BorderTop.Visible := True;
      BorderTop.Color := clGray;


    end;
    cwsVista:
    begin
      BorderTop.Visible := True;
      BorderTop.Color := clSilver;
    end;
  end;

end;
da flackert nix
und gezeichnet wird es auch

So hatte ich das gestern schon und da hats wie verrückt geflackert. Jetzt gehts auf einmal :gruebel:

Danke an alle für eure Hilfe

Satty67 24. Mai 2011 08:17

AW: Linie in abgeleiteter Komponente zeichnen
 
Unschön bleibt allerdings, das Du in Paint einen Setter aufrufst (BorderTop) der u.U. auch erst in einer Ableitung Invalidate aufrufen könnte und damit nochmal Paint auslöst.

(Wobei, kann mich auch irren ;) )


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:48 Uhr.
Seite 2 von 2     12   

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