[Gambas-user] Background

Matti math.eber at ...221...
Sun Sep 5 23:32:35 CEST 2010


Aaah, now I see!
Was always searching in the help, and did't find anything, but it is as easy as
.Background = Color.LightForeground
Matti

Am 05.09.2010 22:27, schrieb Benoît Minisini:
>> When I create a control, for example a panel, in the IDE, I can choose for
>> background between system colors (like "LightForeground") or free colors
>> (like 00FF00).
>> When I create a control in code, only integer values are accepted for
>> background. So I can set only "hard" colors like 00FF00, but not "soft"
>> colors depending on the user's theme.
>> Does anybody know the integer values for system colors? Can't find anything
>> in the help.
>> Thanks
>> Matti
>>
> 
> Look at the properties of the Color class.
> 
> Everything done in the IDE form editor can be done by code!
> 
> Regards,
> 




More information about the User mailing list