C# Class SidebarLibrary.Menus.MenuControl

Inheritance: System.Windows.Forms.ContainerControl, IMessageFilter
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
WM_OPERATEMENU int
_chevronStartCommand MenuCommand
_direction Direction
_dismissTransfer bool
_drawCommands ArrayList
_drawUpwards bool
_ignoreEscapeUp bool
_ignoreMouseMove bool
_manualFocus bool
_menuCommands MenuCommandCollection
_menuImages ImageList
_mouseOver bool
_multiLine bool
_oldFocus IntPtr
_plainAsBlock bool
_popupMenu PopupMenu
_rowHeight int
_rowWidth int
_selected bool
_style VisualStyle
_supportsLayered bool
_trackItem int

Private Properties

Property Type Description
DrawSelectionUpwards void
DrawSingleCommand void
MenuControl System
OperateSubMenu void

Public Methods

Method Description
PreFilterMessage ( Message &msg ) : bool

Protected Methods

Method Description
DrawAllCommands ( Graphics g ) : void
DrawCommand ( int drawItem, bool tracked ) : void
GenerateShortcut ( Shortcut sc, MenuCommandCollection mcc ) : bool
GrabTheFocus ( ) : void
OnCollectionCleared ( ) : void
OnCollectionInserted ( int index, object value ) : void
OnCollectionRemoved ( int index, object value ) : void
OnCommandChanged ( MenuCommand item, MenuCommand prop ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPopupEnd ( MenuCommand mc ) : void
OnPopupStart ( MenuCommand mc ) : void
OnResize ( EventArgs e ) : void
OnWM_GETDLGCODE ( Message &m ) : void
OnWM_OPERATEMENU ( Message &m ) : void
ProcessMnemonicKey ( char key ) : bool
ProcessMoveDown ( ) : void
ProcessMoveLeft ( bool select ) : void
ProcessMoveRight ( bool select ) : void
Recalculate ( ) : void
ReturnTheFocus ( ) : void
SwitchTrackingItem ( int oldItem, int newItem ) : int
WndProc ( Message &m ) : void

Private Methods

Method Description
DrawSelectionUpwards ( ) : void
DrawSingleCommand ( Graphics g, DrawCommand dc, bool tracked ) : void
MenuControl ( ) : System
OperateSubMenu ( DrawCommand dc, bool selectFirst, bool trackRemove ) : void

Method Details

DrawAllCommands() protected method

protected DrawAllCommands ( Graphics g ) : void
g System.Drawing.Graphics
return void

DrawCommand() protected method

protected DrawCommand ( int drawItem, bool tracked ) : void
drawItem int
tracked bool
return void

GenerateShortcut() protected method

protected GenerateShortcut ( Shortcut sc, MenuCommandCollection mcc ) : bool
sc Shortcut
mcc SidebarLibrary.Collections.MenuCommandCollection
return bool

GrabTheFocus() protected method

protected GrabTheFocus ( ) : void
return void

OnCollectionCleared() protected method

protected OnCollectionCleared ( ) : void
return void

OnCollectionInserted() protected method

protected OnCollectionInserted ( int index, object value ) : void
index int
value object
return void

OnCollectionRemoved() protected method

protected OnCollectionRemoved ( int index, object value ) : void
index int
value object
return void

OnCommandChanged() protected method

protected OnCommandChanged ( MenuCommand item, MenuCommand prop ) : void
item MenuCommand
prop MenuCommand
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPopupEnd() protected method

protected OnPopupEnd ( MenuCommand mc ) : void
mc MenuCommand
return void

OnPopupStart() protected method

protected OnPopupStart ( MenuCommand mc ) : void
mc MenuCommand
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnWM_GETDLGCODE() protected method

protected OnWM_GETDLGCODE ( Message &m ) : void
m System.Windows.Forms.Message
return void

OnWM_OPERATEMENU() protected method

protected OnWM_OPERATEMENU ( Message &m ) : void
m System.Windows.Forms.Message
return void

PreFilterMessage() public method

public PreFilterMessage ( Message &msg ) : bool
msg System.Windows.Forms.Message
return bool

ProcessMnemonicKey() protected method

protected ProcessMnemonicKey ( char key ) : bool
key char
return bool

ProcessMoveDown() protected method

protected ProcessMoveDown ( ) : void
return void

ProcessMoveLeft() protected method

protected ProcessMoveLeft ( bool select ) : void
select bool
return void

ProcessMoveRight() protected method

protected ProcessMoveRight ( bool select ) : void
select bool
return void

Recalculate() protected method

protected Recalculate ( ) : void
return void

ReturnTheFocus() protected method

protected ReturnTheFocus ( ) : void
return void

SwitchTrackingItem() protected method

protected SwitchTrackingItem ( int oldItem, int newItem ) : int
oldItem int
newItem int
return int

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

Property Details

WM_OPERATEMENU protected_oe property

protected int WM_OPERATEMENU
return int

_chevronStartCommand protected_oe property

protected MenuCommand _chevronStartCommand
return MenuCommand

_direction protected_oe property

protected Direction _direction
return Direction

_dismissTransfer protected_oe property

protected bool _dismissTransfer
return bool

_drawCommands protected_oe property

protected ArrayList _drawCommands
return ArrayList

_drawUpwards protected_oe property

protected bool _drawUpwards
return bool

_ignoreEscapeUp protected_oe property

protected bool _ignoreEscapeUp
return bool

_ignoreMouseMove protected_oe property

protected bool _ignoreMouseMove
return bool

_manualFocus protected_oe property

protected bool _manualFocus
return bool

_menuCommands protected_oe property

protected MenuCommandCollection _menuCommands
return MenuCommandCollection

_menuImages protected_oe static_oe property

protected static ImageList _menuImages
return ImageList

_mouseOver protected_oe property

protected bool _mouseOver
return bool

_multiLine protected_oe property

protected bool _multiLine
return bool

_oldFocus protected_oe property

protected IntPtr _oldFocus
return IntPtr

_plainAsBlock protected_oe property

protected bool _plainAsBlock
return bool

_popupMenu protected_oe property

protected PopupMenu _popupMenu
return PopupMenu

_rowHeight protected_oe property

protected int _rowHeight
return int

_rowWidth protected_oe property

protected int _rowWidth
return int

_selected protected_oe property

protected bool _selected
return bool

_style protected_oe property

protected VisualStyle _style
return VisualStyle

_supportsLayered protected_oe static_oe property

protected static bool _supportsLayered
return bool

_trackItem protected_oe property

protected int _trackItem
return int