Ecere SDK/eC Forums
http://ec-lang.org/community/
Print view

Colors and Skins for GUI
http://ec-lang.org/community/viewtopic.php?f=5&t=56
Page 1 of 1
Author:  sacrebleu [ Sun Mar 21, 2010 12:42 pm ]
Post subject:  Colors and Skins for GUI

Jerome, please expound upon setting custom colors for the GUI, and how to skin the GUI including the minimize/close/maximize buttons.
Author:  jerome [ Sun Mar 21, 2010 4:20 pm ]
Post subject:  Re: Colors and Skins for GUI

If you look under sdk/samples/gui/skinning you will find a sample project with 3 different skins...

(Note that this is the current skinning system and we hope to have something much better in the future, but no ETA on when that will be).

You basically need to define a class that inherits from Skin.
You can skin the minimize/close/maximize button by overriding the UpdateClient() method.
See the 3 different skins for examples.

The ShowDecorations() method draws the window decorations. You can set up any color scheme, gradient or bitmap you like.

Cheers,

Jerome
Author:  sacrebleu [ Sun Mar 21, 2010 6:49 pm ]
Post subject:  Re: Colors and Skins for GUI

This does not directly address the issue.
All times are UTC-05:00 Page 1 of 1