MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
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 |
Set 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 214 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 232 of file menubutton.h.
#define MBM_GETCURITEM 0xF206 |
Sends to get the index of the current selected item.
Definition at line 308 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 292 of file menubutton.h.
#define MBM_RESETCTRL 0xF202 |
Sends to the control to remove all items in the menu list.
Definition at line 247 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 326 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 271 of file menubutton.h.
#define MBM_SETSTRCMPFUNC 0xF208 |
Set 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 357 of file menubutton.h.