13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

776 CHAPTER Skinning<br />

19.9 CHECKBOX_SKIN_FLEX<br />

The following picture shows the details of the skin:<br />

S<br />

A<br />

B<br />

C<br />

The button area of the checkbox skin consists of a frame and a rectangular inner area<br />

which is filled by a gradient. The frame is drawn by 3 colors. If it is checked, a checkmark<br />

is shown in the center of the box:<br />

Detail Description<br />

A First color of frame.<br />

B Second color of frame.<br />

C Third color of frame.<br />

D Upper color of gradient.<br />

E Lower color of gradient.<br />

F Color of checkmark.<br />

R Focus rectangle.<br />

S Size in pixels of button area.<br />

T Optional text.<br />

19.9.1 Configuration structure<br />

To set up the default appearance of the skin or to change it at run time configuration<br />

structures of type CHECKBOX_SKINFLEX_PROPS are used:<br />

Elements of CHECKBOX_SKINFLEX_PROPS<br />

Data type Element Description<br />

U32 aColorFrame[3]<br />

[0] - Outer color of frame.<br />

[1] - Middle color of frame.<br />

[2] - Inner color of frame.<br />

U32 aColorInner[2]<br />

[0] - First (upper) color of gradient.<br />

[1] - Second (lower) color of gradient.<br />

U32 ColorCheck Color of checkmark.<br />

int ButtonSize Size in pixels of button area.<br />

19.9.2 Configuration options<br />

S<br />

D F E<br />

T<br />

The default appearance of the skin can be determined by setting custom configuration<br />

structures of the above type in GUIConf.h. The following table shows the available<br />

configuration options:<br />

Macro Description<br />

CHECKBOX_SKINPROPS_ENABLED Defines the default attributes used for enabled state.<br />

CHECKBOX_SKINPROPS_DISABLED Defines the default attributes used for disabled state.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG<br />

R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!