menubutton.h File Reference
Go to the source code of this file.
Data Structures
Defines
- #define CTRL_MENUBTN ("menubutton")
- The class name of menubutton control.
- #define CTRL_MENUBUTTON ("menubutton")
- The class name of menubutton control.
- #define MB_OKAY 0
- #define MB_ERR -1
- #define MB_INV_ITEM -2
- #define MB_ERR_SPACE -3
- #define MB_WHICH_TEXT 0x01
- #define MB_WHICH_BMP 0x02
- #define MB_WHICH_ATTDATA 0x04
- #define MBS_SORT 0x0001
- If this bit is set, the items listed in the control are displayed in a specified order.
- #define MBS_LEFTARROW 0x0002
- The menu pull-down arrow will be display at the left of the text.
- #define MBS_NOBUTTON 0x0004
- The control have not push button.
- #define MBS_ALIGNLEFT 0x0000
- The text on menubutton is left-align (default).
- #define MBS_ALIGNRIGHT 0x0010
- The text on menubutton is right-align.
- #define MBS_ALIGNCENTER 0x0020
- The text on menubutton is center-align.
- #define MBS_ALIGNMASK 0x00F0
- The align mask of menubutton.
- #define MBM_ADDITEM 0xF200
- Sends to the control to add an item to the menu list.
- #define MBM_DELITEM 0xF201
- Sends to the control to delete an item in the menu list.
- #define MBM_RESETCTRL 0xF202
- Sends to the control to remove all items in the menu list.
- #define MBM_SETITEMDATA 0xF203
- Sends to the control to set the data of a specific item.
- #define MBM_GETITEMDATA 0xF204
- Sends to the control to retrive the data of a specific item.
- #define MBM_GETCURITEM 0xF206
- Sends to get the index of the current selected item.
- #define MBM_SETCURITEM 0xF207
- Sends to set the current selected item based on index.
- #define MBM_SETSTRCMPFUNC 0xF208
- Sets the STRCMP function used to sort items.
- #define MBN_ERRSPACE 255
- Sends when memory space error occures.
- #define MBN_CHANGED 1
- Sends when selected item changes.
- #define MBN_SELECTED 2
- Sends when an item is selected.
- #define MBN_STARTMENU 4
- Sends when starting tracking popup menu.
- #define MBN_ENDMENU 5
- Sends when ending tracking popup menu.
- #define MBN_CLICKED 6
- Sends when the user clicked the menubutton but not active the menu.
Typedefs
Detailed Description
- Author:
- Wei Yongming <ymwei@minigui.org>
- Date:
- 2001/12/29
Copyright (C) 2002-2008 Feynman Software.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
Definition in file menubutton.h.