Method | Description | |
---|---|---|
GetInstance ( |
Creates or returns the menu instance for a given form.
|
Method | Description | |
---|---|---|
AttachHandlers ( ) : void |
Setup the handlers to reposition and resize the buttons when the parent is resized or styles are changed.
|
|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
OnLoad ( |
Raises the
|
|
ParentRefresh ( object sender, |
Handle changes to the parent, and make sure the menu is aligned to match.
|
Method | Description | |
---|---|---|
ActiveMenuImpl ( ) : System | ||
ActiveMenuImpl ( |
Constructor sets up the menu and sets the required properties in order thay this may be displayed over the top of it's parent form.
|
|
CalcSize ( ) : void |
Work out the buttons sizes based of sys diamensions. This doesn't work quite as expected as the buttons seem to have larger borders, which change per theme.
|
|
InitializeComponent ( ) : void |
The standard properties of the menu. Changing properties or when they are set can effect the ability to attach to a parent, and leave the menu flaoting on the desktop.
|
|
ItemsCollectionModified ( object sender, ListModificationEventArgs e ) : void |
Handles the CollectionModified event of the items control.
|
|
OnPosition ( ) : void |
Position the menu into the correct location, this varies per theme.
|
|
ParentFormActivated ( object sender, |
Enabled the tooltip control when the parent form is active. This is necessary because the menu form is never active.
|
|
ParentFormDeactivate ( object sender, |
Disables the tootips when the parent is activated.
|
|
ParentFormDisposed ( object sender, |
Remove the parent from the hashtable when disposed.
|
|
TitleButtonSystemColorsChanged ( object sender, |
When the style is changed we need to re-calc button sizes as well as positions.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
return | void |
public static GetInstance ( |
||
form | ||
return | IActiveMenu |
protected OnLoad ( |
||
e | An |
|
return | void |
protected ParentRefresh ( object sender, |
||
sender | object | |
e | ||
return | void |