Colors and Skins for GUI

General help with the Ecere Cross Platform GUI toolkit: Window, common controls, events, etc.
Help with the 2D Graphics library: Surface, Display, Bitmap, Font and others.
Post Reply
sacrebleu
Posts: 27
Joined: Sun Jan 17, 2010 12:37 pm

Colors and Skins for GUI

Post by sacrebleu »

Jerome, please expound upon setting custom colors for the GUI, and how to skin the GUI including the minimize/close/maximize buttons.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Colors and Skins for GUI

Post by jerome »

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
sacrebleu
Posts: 27
Joined: Sun Jan 17, 2010 12:37 pm

Re: Colors and Skins for GUI

Post by sacrebleu »

This does not directly address the issue.
Post Reply