Public Member Functions | |
this (uint id, string t) | |
Constructs a new menu item displaying text. | |
this (uint id, Bitmap b) | |
Constructs a new menu item displaying a bitmap. | |
this (uint id=0) | |
Constructs a new menu item to be a horizontal separator. | |
void | refresh () |
Refreshes the information stored in this MenuItem object. | |
Properties | |
override string | toString () |
A textual representation of the menu item. | |
Menu | container () |
The menu that contains this item. | |
Bitmap | bitmap () |
The bitmap that is used to display this menu item. | |
Bitmap | bitmap (Bitmap b) |
The bitmap that is used to display this menu item. | |
string | text () |
The text of this menu item. | |
string | text (string t) |
The text of this menu item. | |
uint | id () |
The ID of the menu item, used in processing command messages. | |
uint | id (uint i) |
The ID of the menu item, used in processing command messages. | |
Bitmap | checkMark () |
A bitmap that will be displayed when the item is in an 'checked' state. | |
Bitmap | checkMark (Bitmap b) |
A bitmap that will be displayed when the item is in an 'checked' state. | |
Bitmap | uncheckMark () |
A bitmap that will be displayed when the item is in an 'unchecked' state. | |
Bitmap | uncheckMark (Bitmap b) |
A bitmap that will be displayed when the item is in an 'unchecked' state. | |
bool | checked () |
Whether this item is checked ('on'). | |
bool | checked (bool c) |
Whether this item is checked ('on'). | |
bool | enabled () |
Whether this item is enabled, as opposed to being 'greyed out'. | |
bool | enabled (bool e) |
Whether this item is enabled, as opposed to being 'greyed out'. | |
MenuPopup | subMenu () |
The submenu descended from this item. | |
MenuPopup | subMenu (MenuPopup m) |
The submenu descended from this item. | |
MFT | type () |
A combination of bit flags denoting what kind of menu item this is. | |
MFT | type (MFT t) |
A combination of bit flags denoting what kind of menu item this is. | |
MFS | state () |
A combination of bit flags denoting the current state of this menu item. | |
MFS | state (MFS s) |
A combination of bit flags denoting the current state of this menu item. | |
MENUITEMINFOA | info () |
Information on this menu item as a Windows API MENUITEMINFOA structure. | |
Protected Member Functions | |
void | update () |
smjg.libs.sdwf.menu.MenuItem.this | ( | uint | id, | |
string | t | |||
) |
smjg.libs.sdwf.menu.MenuItem.this | ( | uint | id, | |
Bitmap | b | |||
) |
smjg.libs.sdwf.menu.MenuItem.this | ( | uint | id = 0 |
) |
Constructs a new menu item to be a horizontal separator.
id | numeric ID of the separator (not that there's any point setting it) |
void smjg.libs.sdwf.menu.MenuItem.refresh | ( | ) |
override string smjg.libs.sdwf.menu.MenuItem.toString | ( | ) |
Bitmap smjg.libs.sdwf.menu.MenuItem.bitmap | ( | ) |
The bitmap that is used to display this menu item.
Bitmap smjg.libs.sdwf.menu.MenuItem.bitmap | ( | Bitmap | b | ) |
string smjg.libs.sdwf.menu.MenuItem.text | ( | ) |
string smjg.libs.sdwf.menu.MenuItem.text | ( | string | t | ) |
uint smjg.libs.sdwf.menu.MenuItem.id | ( | ) |
The ID of the menu item, used in processing command messages.
uint smjg.libs.sdwf.menu.MenuItem.id | ( | uint | i | ) |
The ID of the menu item, used in processing command messages.
Bitmap smjg.libs.sdwf.menu.MenuItem.checkMark | ( | ) |
A bitmap that will be displayed when the item is in an 'checked' state.
Bitmap smjg.libs.sdwf.menu.MenuItem.checkMark | ( | Bitmap | b | ) |
A bitmap that will be displayed when the item is in an 'checked' state.
If null
, then the standard tick (or bullet) will be used.
Bitmap smjg.libs.sdwf.menu.MenuItem.uncheckMark | ( | ) |
A bitmap that will be displayed when the item is in an 'unchecked' state.
Bitmap smjg.libs.sdwf.menu.MenuItem.uncheckMark | ( | Bitmap | b | ) |
A bitmap that will be displayed when the item is in an 'unchecked' state.
If null
, no image will be used.
bool smjg.libs.sdwf.menu.MenuItem.checked | ( | ) |
Whether this item is checked ('on').
bool smjg.libs.sdwf.menu.MenuItem.checked | ( | bool | c | ) |
Whether this item is checked ('on').
bool smjg.libs.sdwf.menu.MenuItem.enabled | ( | ) |
Whether this item is enabled, as opposed to being 'greyed out'.
bool smjg.libs.sdwf.menu.MenuItem.enabled | ( | bool | e | ) |
Whether this item is enabled, as opposed to being 'greyed out'.
MenuPopup smjg.libs.sdwf.menu.MenuItem.subMenu | ( | ) |
The submenu descended from this item.
MFT smjg.libs.sdwf.menu.MenuItem.type | ( | ) |
A combination of bit flags denoting what kind of menu item this is.
MFT smjg.libs.sdwf.menu.MenuItem.type | ( | MFT | t | ) |
MFS smjg.libs.sdwf.menu.MenuItem.state | ( | ) |
A combination of bit flags denoting the current state of this menu item.
MFS smjg.libs.sdwf.menu.MenuItem.state | ( | MFS | s | ) |
A combination of bit flags denoting the current state of this menu item.
MENUITEMINFOA smjg.libs.sdwf.menu.MenuItem.info | ( | ) |
Information on this menu item as a Windows API MENUITEMINFOA
structure.
void smjg.libs.sdwf.menu.MenuItem.update | ( | ) | [protected] |