Thats not true.Trond wrote:If you try to use them on Linux (with GTK) you will in fact get wrong colours every time (except for shades of gray), as the red and blue component are inversed compared to Windows. That's why defining them on Linux makes no sense: they are indeed Windows specific.
If you use the PB commands, you will get correct colors because they map the values to be compatible on every OS. If you use Gtk directly, you usually cannot use a rgb value directly anyway, as it uses the GdkColor structure in most places which uses 16bit per color, so you need a conversion anyway.
> Defining constants that has the same name but different values on different platforms is not an option in my opinion. They are called constants for a reason.
This is exactly what PB does to map event constants, keyboard codes etc between the different OS.
IceSoft:
> but I belive at least the nativ color constants should be usable on all supported OS.
And where does it stop ? Somebody else thinks some other value is "nativ" to him and he needs the value everywhere. We cannot just define a constant for every value somebody may ever need. PB only defines the constants needed for the PB commandset (#PB_...) + the constants for the OS API.
Defining a few constants for yourself is really no big deal. Calling PB not "crossplatform usable" because of it us just nonsense.


