Download uC/GUI user manual
Transcript
331 16.4.2 Notification codes The following events are sent from a button widget to its parent window as part of a WM_NOTIFY_PARENT message: Message Explanation WM_NOTIFICATION_CLICKED WM_NOTIFICATION_RELEASED WM_NOTIFICATION_MOVED_OUT Button has been clicked. Button has been released. Button has been clicked and pointer has been moved out off of the button without releasing. 16.4.3 Keyboard reaction The widget reacts to the following keys if it has the input focus: Key Reaction GUI_KEY_ENTER If the keys is pressed, the button reacts as it has been pressed and immediately released. GUI_KEY_SPACE If the keys is pressed, the button state changes to pressed. If the keys is released, the button state changes to unpressed. 16.4.4 BUTTON API The table below lists the available µC/GUI BUTTON-related routines in alphabetical order. Detailed descriptions of the routines follow. Routine BUTTON_Create() BUTTON_CreateAsChild() BUTTON_CreateEx() BUTTON_CreateIndirect() BUTTON_GetBitmap() BUTTON_GetBkColor() BUTTON_GetDefaultBkColor() BUTTON_GetDefaultFont() BUTTON_GetDefaultTextAlign() BUTTON_GetDefaultTextColor() BUTTON_GetFont() BUTTON_GetText() BUTTON_GetTextColor() BUTTON_IsPressed() BUTTON_SetBitmap() BUTTON_SetBitmapEx() BUTTON_SetBkColor() BUTTON_SetBMP() BUTTON_SetBMPEx() BUTTON_SetDefaultBkColor() Explanation Create the button. (Obsolete) Create the button as a child window. (Obsolete) Creates the button. Create the button from resource table entry. Returns a pointer to the BUTTON bitmap. Returns the background color of the BUTTON Returns the default background color for new BUTTON widgets. Returns the default font for new BUTTON widgets. Returns the default text alignment for new BUTTON widgets. Returns the default text color for new BUTTON widgets. Returns a pointer to the font of the BUTTON Retrieves the text of a specified BUTTON. Returns the text color of the specified BUTTON. Returns if a button is pressed or not. Set the bitmap used when displaying the BUTTON. Set the bitmap used when displaying the BUTTON. Set the background color of the button. Set the bitmap used when displaying the BUTTON. Set the bitmap used when displaying the BUTTON. Sets the default background color for new BUTTON widgets. Sets the default font for new BUTTON widgets. BUTTON_SetDefaultFont() BUTTON_SetDefaultTextAlign() Sets the default text alignment for new BUTTON widgets. User's & reference manual for μC/GUI © 2002-2006 Micrium Technologies Corporation
Related documents