MiniGUI API Reference (MiniGUI-Processes)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | MBM_ADDITEM 0xF200 |
Sends to the control to add an item to the menu list. More... | |
#define | MBM_DELITEM 0xF201 |
Sends to the control to delete an item in the menu list. More... | |
#define | MBM_RESETCTRL 0xF202 |
Sends to the control to remove all items in the menu list. More... | |
#define | MBM_SETITEMDATA 0xF203 |
Sends to the control to set the data of a specific item. More... | |
#define | MBM_GETITEMDATA 0xF204 |
Sends to the control to retrive the data of a specific item. More... | |
#define | MBM_GETCURITEM 0xF206 |
Sends to get the index of the current selected item. More... | |
#define | MBM_SETCURITEM 0xF207 |
Sends to set the current selected item based on index. More... | |
#define | MBM_SETSTRCMPFUNC 0xF208 |
Sets the STRCMP function used to sort items. More... | |
#define MBM_ADDITEM 0xF200 |
Sends to the control to add an item to the menu list.
pos | The position at which to add the item. If the control was created with the style of MBS_SORT, this parameter will be ignored. If this parameter is less than 0, the new item will be append to the tail of the menu list. |
newitem | Pointer to the menubutton item info structure. |
Definition at line 202 of file menubutton.h.
#define MBM_DELITEM 0xF201 |
Sends to the control to delete an item in the menu list.
del | The index of the item to be deleted. |
Definition at line 220 of file menubutton.h.
#define MBM_GETCURITEM 0xF206 |
Sends to get the index of the current selected item.
Definition at line 296 of file menubutton.h.
#define MBM_GETITEMDATA 0xF204 |
Sends to the control to retrive the data of a specific item.
index | The index of the specific item. |
pmbi | Pointer to the MENUBUTTONITEM structure for storing the menubutton item data. |
Definition at line 280 of file menubutton.h.
#define MBM_RESETCTRL 0xF202 |
Sends to the control to remove all items in the menu list.
Definition at line 235 of file menubutton.h.
#define MBM_SETCURITEM 0xF207 |
Sends to set the current selected item based on index.
cur | The index to be the current item. |
Definition at line 314 of file menubutton.h.
#define MBM_SETITEMDATA 0xF203 |
Sends to the control to set the data of a specific item.
index | The index of the item to be altered. |
pmbi | Pointer to the MENUBUTTONITEM structure that stores the new menubutton item data. |
- MB_INV_ITEM\n Indicate that the index you passed is valid. - MB_ERR_SPACE\n No memory can be allocated for new item data.
Definition at line 259 of file menubutton.h.
#define MBM_SETSTRCMPFUNC 0xF208 |
Sets the STRCMP function used to sort items.
An application sends a MBM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the menubutton.
Note that you should send this message before adding any item to the menubutton control.
my_strcmp | Your own function to compare two strings. |
Definition at line 345 of file menubutton.h.