Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi List of system colors (https://www.delphipraxis.net/166519-list-system-colors.html)

WojTec 16. Feb 2012 12:06

Delphi-Version: 2010

List of system colors
 
I want to have array with system colors. Is possible to build it in runtime without using cl* constants? I looked at TColorListBox, but I don't understand too much how it fill out. BTW: I don't want to use any component.

DeddyH 16. Feb 2012 13:29

AW: List of system colors
 
Have a look at GetSysColor.

WojTec 16. Feb 2012 14:46

Re: List of system colors
 
Hm, this one uses consts too. Ok, thanks buddy :)

uligerhardt 16. Feb 2012 15:01

AW: List of system colors
 
There is the Colors array in Graphics.pas. Unfortunately it's declared in the implementation section, so you can't access it directly. But you can fill your array with the GetColorValues function and get the TColor values from the color names via StringToColor.


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:41 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