Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Panel rot machen mit TStyleBook (https://www.delphipraxis.net/182025-panel-rot-machen-mit-tstylebook.html)

JRichmann 24. Sep 2014 21:00

Panel rot machen mit TStyleBook
 
Hallo zusammen,

ich hab eine primitive Frage....

Ich möchte ein Panel rot machen (panel.color:=clred).
In FMX muss ich dazu ein TStyleBook verwenden.
Im Designer bekomme ich das auch hin... (zusammen klicken)

Ich möchte aber TStyleBook im code erzeugen und die Farbe rot zuweisen.

Das klappt bei mir nicht.... ich weiß einfach nicht wie ich es machen muss.

...
...
public
{ Public-Deklarationen }
st_joerg: TStyleBook;
end;
...
...

st_joerg:=TStyleBook.Create(self);


Hier komnme ich nicht mehr weiter... ich weiß einfach nicht was ich machen muss

...
...

Garfield 27. Sep 2014 16:22

AW: Panel rot machen mit TStyleBook
 
st_joerg.Parent := Panel

JRichmann 27. Sep 2014 23:24

AW: Panel rot machen mit TStyleBook
 
Hallo und Danke für diesen Delphi / Firemonkey TIP


...Jörg Richmann


www.JRichmann.de


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:56 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz