C# Class SidebarLibrary.Menus.PopupMenu

Inheritance: System.Windows.Forms.NativeWindow, IDisposable
Datei anzeigen Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
WM_DISMISS int
_aboveScreenPos Point
_borderGap int
_childMenu PopupMenu
_currentPoint Point
_currentSize System.Drawing.Size
_direction Direction
_drawCommands System.Collections.ArrayList
_excludeOffset int
_excludeTop bool
_exitLoop bool
_extraSize int
_grabFocus bool
_imageHeight int
_imageWidth int
_lastMousePos Point
_layered bool
_leftScreenPos Point
_menuCommands SidebarLibrary.Collections.MenuCommandCollection
_menuImages System.Windows.Forms.ImageList
_mouseOver bool
_oldFocus System.IntPtr
_parentControl MenuControl
_parentMenu PopupMenu
_popupDown bool
_popupItem int
_popupRight bool
_position ].int[
_returnCommand MenuCommand
_returnDir int
_screenPos Point
_selectionDelay int
_showInfrequent bool
_style VisualStyle
_supportsLayered bool
_textFont System.Drawing.Font
_timer Timer
_trackItem int

Private Properties

Property Type Description
DrawSingleCommand void
IsComboBoxList bool
PopupMenu System
TrackPopup MenuCommand

Public Methods

Method Description
Dismiss ( ) : void
Dispose ( ) : void
TrackPopup ( Point screenPos ) : MenuCommand
TrackPopup ( Point screenPos, bool selectFirst ) : MenuCommand

Protected Methods

Method Description
ApplySizeToColumnList ( ArrayList columnList, int cellWidth ) : void
ApplyVerticalSeparators ( int sepHeight ) : void
CorrectPositionForScreen ( Size winSize ) : Point
CreateAndShowWindow ( ) : void
Dispose ( bool fDisposing ) : void
DrawAllCommands ( Graphics g ) : void
DrawBackground ( Graphics g, Rectangle rectWin ) : void
DrawColumn ( Graphics g, Rectangle main ) : void
GenerateDrawPositions ( ) : Size
GetShortcutText ( Shortcut shortcut ) : string
GrabTheFocus ( ) : void
InternalTrackPopup ( Point screenPosTR, Point screenPosTL, MenuCommandCollection menuCollection, PopupMenu parentMenu, bool selectFirst, MenuControl parentControl, bool popupRight, bool popupDown, int &returnDir ) : MenuCommand
InternalTrackPopup ( bool selectFirst ) : MenuCommand
OnTimerExpire ( object sender, EventArgs e ) : void
OnWM_ACTIVATEAPP ( Message &m ) : void
OnWM_DISMISS ( ) : void
OnWM_MOUSEACTIVATE ( Message &m ) : void
OnWM_MOUSELEAVE ( ) : void
OnWM_MOUSEMOVE ( Message &m ) : void
OnWM_PAINT ( Message &m ) : void
OnWM_SETCURSOR ( Message &m ) : void
OnWM_XBUTTONUP ( Message &m ) : void
OperateSubMenu ( int popupItem, bool selectFirst ) : void
ParentWantsMouseMessage ( System.Win32 &msg ) : bool
ProcessKeyDown ( ) : bool
ProcessKeyLeft ( ) : void
ProcessKeyRight ( ) : bool
ProcessKeyUp ( ) : bool
ProcessMnemonicKey ( char key ) : int
RefreshAllCommands ( ) : void
RegenerateExpansion ( ) : void
ReturnTheFocus ( ) : void
SetComboBoxesParent ( ) : void
SetWindowRegion ( Size winSize ) : void
SubMenuMovement ( ) : void
SwitchSelection ( int oldItem, int newItem, bool mouseChange, bool reverting ) : void
UnsetComboBoxesParent ( ) : void
UpdateLayeredWindow ( ) : void
UpdateLayeredWindow ( Point point, Size size ) : void
WantMouseMessage ( System.Win32 screenPos ) : bool
WndProc ( Message &m ) : void

Private Methods

Method Description
DrawSingleCommand ( Graphics g, DrawCommand dc, bool hotCommand ) : void
IsComboBoxList ( IntPtr hWnd ) : bool
PopupMenu ( ) : System
TrackPopup ( Point screenPos, Point aboveScreenPos, Direction direction, MenuCommandCollection menuCollection, int borderGap, bool selectFirst, MenuControl parentControl, int &returnDir ) : MenuCommand

Method Details

ApplySizeToColumnList() protected method

protected ApplySizeToColumnList ( ArrayList columnList, int cellWidth ) : void
columnList System.Collections.ArrayList
cellWidth int
return void

ApplyVerticalSeparators() protected method

protected ApplyVerticalSeparators ( int sepHeight ) : void
sepHeight int
return void

CorrectPositionForScreen() protected method

protected CorrectPositionForScreen ( Size winSize ) : Point
winSize System.Drawing.Size
return Point

CreateAndShowWindow() protected method

protected CreateAndShowWindow ( ) : void
return void

Dismiss() public method

public Dismiss ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

DrawAllCommands() protected method

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

DrawBackground() protected method

protected DrawBackground ( Graphics g, Rectangle rectWin ) : void
g System.Drawing.Graphics
rectWin System.Drawing.Rectangle
return void

DrawColumn() protected method

protected DrawColumn ( Graphics g, Rectangle main ) : void
g System.Drawing.Graphics
main System.Drawing.Rectangle
return void

GenerateDrawPositions() protected method

protected GenerateDrawPositions ( ) : Size
return System.Drawing.Size

GetShortcutText() protected method

protected GetShortcutText ( Shortcut shortcut ) : string
shortcut Shortcut
return string

GrabTheFocus() protected method

protected GrabTheFocus ( ) : void
return void

InternalTrackPopup() protected method

protected InternalTrackPopup ( Point screenPosTR, Point screenPosTL, MenuCommandCollection menuCollection, PopupMenu parentMenu, bool selectFirst, MenuControl parentControl, bool popupRight, bool popupDown, int &returnDir ) : MenuCommand
screenPosTR Point
screenPosTL Point
menuCollection SidebarLibrary.Collections.MenuCommandCollection
parentMenu PopupMenu
selectFirst bool
parentControl MenuControl
popupRight bool
popupDown bool
returnDir int
return MenuCommand

InternalTrackPopup() protected method

protected InternalTrackPopup ( bool selectFirst ) : MenuCommand
selectFirst bool
return MenuCommand

OnTimerExpire() protected method

protected OnTimerExpire ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWM_ACTIVATEAPP() protected method

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

OnWM_DISMISS() protected method

protected OnWM_DISMISS ( ) : void
return void

OnWM_MOUSEACTIVATE() protected method

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

OnWM_MOUSELEAVE() protected method

protected OnWM_MOUSELEAVE ( ) : void
return void

OnWM_MOUSEMOVE() protected method

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

OnWM_PAINT() protected method

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

OnWM_SETCURSOR() protected method

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

OnWM_XBUTTONUP() protected method

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

OperateSubMenu() protected method

protected OperateSubMenu ( int popupItem, bool selectFirst ) : void
popupItem int
selectFirst bool
return void

ParentWantsMouseMessage() protected method

protected ParentWantsMouseMessage ( System.Win32 &msg ) : bool
msg System.Win32
return bool

ProcessKeyDown() protected method

protected ProcessKeyDown ( ) : bool
return bool

ProcessKeyLeft() protected method

protected ProcessKeyLeft ( ) : void
return void

ProcessKeyRight() protected method

protected ProcessKeyRight ( ) : bool
return bool

ProcessKeyUp() protected method

protected ProcessKeyUp ( ) : bool
return bool

ProcessMnemonicKey() protected method

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

RefreshAllCommands() protected method

protected RefreshAllCommands ( ) : void
return void

RegenerateExpansion() protected method

protected RegenerateExpansion ( ) : void
return void

ReturnTheFocus() protected method

protected ReturnTheFocus ( ) : void
return void

SetComboBoxesParent() protected method

protected SetComboBoxesParent ( ) : void
return void

SetWindowRegion() protected method

protected SetWindowRegion ( Size winSize ) : void
winSize System.Drawing.Size
return void

SubMenuMovement() protected method

protected SubMenuMovement ( ) : void
return void

SwitchSelection() protected method

protected SwitchSelection ( int oldItem, int newItem, bool mouseChange, bool reverting ) : void
oldItem int
newItem int
mouseChange bool
reverting bool
return void

TrackPopup() public method

public TrackPopup ( Point screenPos ) : MenuCommand
screenPos Point
return MenuCommand

TrackPopup() public method

public TrackPopup ( Point screenPos, bool selectFirst ) : MenuCommand
screenPos Point
selectFirst bool
return MenuCommand

UnsetComboBoxesParent() protected method

protected UnsetComboBoxesParent ( ) : void
return void

UpdateLayeredWindow() protected method

protected UpdateLayeredWindow ( ) : void
return void

UpdateLayeredWindow() protected method

protected UpdateLayeredWindow ( Point point, Size size ) : void
point Point
size System.Drawing.Size
return void

WantMouseMessage() protected method

protected WantMouseMessage ( System.Win32 screenPos ) : bool
screenPos System.Win32
return bool

WndProc() protected method

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

Property Details

WM_DISMISS protected_oe property

protected int WM_DISMISS
return int

_aboveScreenPos protected_oe property

protected Point _aboveScreenPos
return Point

_borderGap protected_oe property

protected int _borderGap
return int

_childMenu protected_oe property

protected PopupMenu,SidebarLibrary.Menus _childMenu
return PopupMenu

_currentPoint protected_oe property

protected Point _currentPoint
return Point

_currentSize protected_oe property

protected Size,System.Drawing _currentSize
return System.Drawing.Size

_direction protected_oe property

protected Direction _direction
return Direction

_drawCommands protected_oe property

protected ArrayList,System.Collections _drawCommands
return System.Collections.ArrayList

_excludeOffset protected_oe property

protected int _excludeOffset
return int

_excludeTop protected_oe property

protected bool _excludeTop
return bool

_exitLoop protected_oe property

protected bool _exitLoop
return bool

_extraSize protected_oe property

protected int _extraSize
return int

_grabFocus protected_oe property

protected bool _grabFocus
return bool

_imageHeight protected_oe property

protected int _imageHeight
return int

_imageWidth protected_oe property

protected int _imageWidth
return int

_lastMousePos protected_oe property

protected Point _lastMousePos
return Point

_layered protected_oe property

protected bool _layered
return bool

_leftScreenPos protected_oe property

protected Point _leftScreenPos
return Point

_menuCommands protected_oe property

protected MenuCommandCollection,SidebarLibrary.Collections _menuCommands
return SidebarLibrary.Collections.MenuCommandCollection

_menuImages protected_oe static_oe property

protected static ImageList,System.Windows.Forms _menuImages
return System.Windows.Forms.ImageList

_mouseOver protected_oe property

protected bool _mouseOver
return bool

_oldFocus protected_oe property

protected IntPtr,System _oldFocus
return System.IntPtr

_parentControl protected_oe property

protected MenuControl,SidebarLibrary.Menus _parentControl
return MenuControl

_parentMenu protected_oe property

protected PopupMenu,SidebarLibrary.Menus _parentMenu
return PopupMenu

_popupDown protected_oe property

protected bool _popupDown
return bool

_popupItem protected_oe property

protected int _popupItem
return int

_popupRight protected_oe property

protected bool _popupRight
return bool

_position protected_oe static_oe property

protected static int[,] _position
return ].int[

_returnCommand protected_oe property

protected MenuCommand,SidebarLibrary.Menus _returnCommand
return MenuCommand

_returnDir protected_oe property

protected int _returnDir
return int

_screenPos protected_oe property

protected Point _screenPos
return Point

_selectionDelay protected_oe static_oe property

protected static int _selectionDelay
return int

_showInfrequent protected_oe property

protected bool _showInfrequent
return bool

_style protected_oe property

protected VisualStyle _style
return VisualStyle

_supportsLayered protected_oe static_oe property

protected static bool _supportsLayered
return bool

_textFont protected_oe property

protected Font,System.Drawing _textFont
return System.Drawing.Font

_timer protected_oe property

protected Timer _timer
return Timer

_trackItem protected_oe property

protected int _trackItem
return int