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.

662 CHAPTER Window Objects (Widgets)<br />

RADIO_SetText() Sets the text<br />

RADIO_SetTextColor() Sets the text color used to show the text of radio button.<br />

RADIO_SetUserData() Sets the extra data of a RADIO widget.<br />

RADIO_SetValue() Set the button selection.<br />

RADIO_Create()<br />

(Obsolete, RADIO_CreateEx() should be used instead)<br />

Description<br />

Creates a RADIO widget of a specified size at a specified location.<br />

Prototype<br />

RADIO_Handle RADIO_Create(int x0, int y0,<br />

int xsize, int ysize,<br />

WM_HWIN hParent, int Id,<br />

int Flags, unsigned Para);<br />

Parameter Description<br />

x0 Leftmost pixel of the radio button widget (in parent coordinates).<br />

y0 Topmost pixel of the radio button widget (in parent coordinates).<br />

xsize Horizontal size of the radio button widget (in pixels).<br />

ysize Vertical size of the radio button widget (in pixels).<br />

hParent Handle of parent window.<br />

Id ID to be returned.<br />

Window create flags. Typically WM_CF_SHOW in order to make the widget visible<br />

Flags<br />

immediately (refer to WM_CreateWindow() in the chapter “The Window Manager<br />

(WM)” on page 325 for a list of available parameter values).<br />

Para Number of buttons in the group.<br />

Return value<br />

Handle of the created RADIO widget; 0 if the function fails.<br />

RADIO_CreateEx()<br />

Description<br />

Creates a RADIO widget of a specified size at a specified location.<br />

Prototype<br />

Routine Description<br />

RADIO_Handle RADIO_CreateEx(int x0, int y0,<br />

int xsize, int ysize,<br />

WM_HWIN hParent, int WinFlags,<br />

int ExFlags, int Id,<br />

int NumItems, int Spacing);<br />

Parameter Description<br />

x0 Leftmost pixel of the widget (in parent coordinates).<br />

y0 Topmost pixel of the widget (in parent coordinates).<br />

xsize Horizontal size of the widget (in pixels).<br />

ysize Vertical size of the widget (in pixels).<br />

Handle of parent window. If 0, the new RADIO widget will be a child of the desktop<br />

hParent<br />

(top-level window).<br />

Window create flags. Typically WM_CF_SHOW in order to make the widget visible<br />

WinFlags immediately (refer to WM_CreateWindow() in the chapter “The Window Manager<br />

(WM)” on page 325 for a list of available parameter values).<br />

ExFlags Not used, reserved for future use.<br />

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

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

Saved successfully!

Ooh no, something went wrong!