C# Class SidebarLibrary.Menus.MenuControl

Inheritance: System.Windows.Forms.ContainerControl, IMessageFilter
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство 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

Свойство Type Description
DrawSelectionUpwards void
DrawSingleCommand void
MenuControl System
OperateSubMenu void

Méthodes publiques

Méthode Description
PreFilterMessage ( Message &msg ) : bool

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected DrawAllCommands ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

DrawCommand() protected méthode

protected DrawCommand ( int drawItem, bool tracked ) : void
drawItem int
tracked bool
Résultat void

GenerateShortcut() protected méthode

protected GenerateShortcut ( Shortcut sc, MenuCommandCollection mcc ) : bool
sc Shortcut
mcc SidebarLibrary.Collections.MenuCommandCollection
Résultat bool

GrabTheFocus() protected méthode

protected GrabTheFocus ( ) : void
Résultat void

OnCollectionCleared() protected méthode

protected OnCollectionCleared ( ) : void
Résultat void

OnCollectionInserted() protected méthode

protected OnCollectionInserted ( int index, object value ) : void
index int
value object
Résultat void

OnCollectionRemoved() protected méthode

protected OnCollectionRemoved ( int index, object value ) : void
index int
value object
Résultat void

OnCommandChanged() protected méthode

protected OnCommandChanged ( MenuCommand item, MenuCommand prop ) : void
item MenuCommand
prop MenuCommand
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnLostFocus() protected méthode

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPopupEnd() protected méthode

protected OnPopupEnd ( MenuCommand mc ) : void
mc MenuCommand
Résultat void

OnPopupStart() protected méthode

protected OnPopupStart ( MenuCommand mc ) : void
mc MenuCommand
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnWM_GETDLGCODE() protected méthode

protected OnWM_GETDLGCODE ( Message &m ) : void
m System.Windows.Forms.Message
Résultat void

OnWM_OPERATEMENU() protected méthode

protected OnWM_OPERATEMENU ( Message &m ) : void
m System.Windows.Forms.Message
Résultat void

PreFilterMessage() public méthode

public PreFilterMessage ( Message &msg ) : bool
msg System.Windows.Forms.Message
Résultat bool

ProcessMnemonicKey() protected méthode

protected ProcessMnemonicKey ( char key ) : bool
key char
Résultat bool

ProcessMoveDown() protected méthode

protected ProcessMoveDown ( ) : void
Résultat void

ProcessMoveLeft() protected méthode

protected ProcessMoveLeft ( bool select ) : void
select bool
Résultat void

ProcessMoveRight() protected méthode

protected ProcessMoveRight ( bool select ) : void
select bool
Résultat void

Recalculate() protected méthode

protected Recalculate ( ) : void
Résultat void

ReturnTheFocus() protected méthode

protected ReturnTheFocus ( ) : void
Résultat void

SwitchTrackingItem() protected méthode

protected SwitchTrackingItem ( int oldItem, int newItem ) : int
oldItem int
newItem int
Résultat int

WndProc() protected méthode

protected WndProc ( Message &m ) : void
m Message
Résultat void

Property Details

WM_OPERATEMENU protected_oe property

protected int WM_OPERATEMENU
Résultat int

_chevronStartCommand protected_oe property

protected MenuCommand _chevronStartCommand
Résultat MenuCommand

_direction protected_oe property

protected Direction _direction
Résultat Direction

_dismissTransfer protected_oe property

protected bool _dismissTransfer
Résultat bool

_drawCommands protected_oe property

protected ArrayList _drawCommands
Résultat ArrayList

_drawUpwards protected_oe property

protected bool _drawUpwards
Résultat bool

_ignoreEscapeUp protected_oe property

protected bool _ignoreEscapeUp
Résultat bool

_ignoreMouseMove protected_oe property

protected bool _ignoreMouseMove
Résultat bool

_manualFocus protected_oe property

protected bool _manualFocus
Résultat bool

_menuCommands protected_oe property

protected MenuCommandCollection _menuCommands
Résultat MenuCommandCollection

_menuImages protected_oe static_oe property

protected static ImageList _menuImages
Résultat ImageList

_mouseOver protected_oe property

protected bool _mouseOver
Résultat bool

_multiLine protected_oe property

protected bool _multiLine
Résultat bool

_oldFocus protected_oe property

protected IntPtr _oldFocus
Résultat IntPtr

_plainAsBlock protected_oe property

protected bool _plainAsBlock
Résultat bool

_popupMenu protected_oe property

protected PopupMenu _popupMenu
Résultat PopupMenu

_rowHeight protected_oe property

protected int _rowHeight
Résultat int

_rowWidth protected_oe property

protected int _rowWidth
Résultat int

_selected protected_oe property

protected bool _selected
Résultat bool

_style protected_oe property

protected VisualStyle _style
Résultat VisualStyle

_supportsLayered protected_oe static_oe property

protected static bool _supportsLayered
Résultat bool

_trackItem protected_oe property

protected int _trackItem
Résultat int