C# Class ComponentFactory.Krypton.Ribbon.VisualPopupAppMenu

Inheritance: ComponentFactory.Krypton.Toolkit.VisualPopup
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
DoesCurrentMouseDownEndAllTracking ( Message m, Point pt ) : bool

Should a mouse down at the provided point cause an end to popup tracking.

DoesMouseDownGetEaten ( Message m, Point pt ) : bool

Should the mouse down be eaten when the tracking has been ended.

DoesStackedClientMouseDownBecomeCurrent ( Message m, Point pt ) : bool

Should a mouse down at the provided point cause it to become the current tracking popup.

Show ( Rectangle screenRect ) : void

Show the context menu relative to the provided screen rectangle.

VisualPopupAppMenu ( KryptonRibbon ribbon, RibbonAppButton appButton, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, Rectangle rectAppButtonTopHalf, Rectangle rectAppButtonBottomHalf, bool keyboardActivated ) : System

Initialize a new instance of the VisualPopupAppMenu class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void

Raises the Layout event.

OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

Processes a notification from palette of a paint and optional layout required.

Private Methods

Method Description
CalculatePreferredSize ( ) : Size
CreateAppButtonBottom ( ) : void
CreateButtonManager ( RibbonAppButton appButton ) : void
CreateButtonSpecView ( ) : void
CreateContextMenuView ( RibbonAppButton appButton ) : void
CreateInnerBacking ( ViewBase fillElement ) : void
CreateInsideCanvas ( ) : ViewDrawCanvas
CreateOuterBacking ( ) : void
CreateOutsideDocker ( ) : void
CreateRecentDocumentsView ( ) : void
GetResolvedPalette ( ) : IPalette
OnBaseChanged ( object sender, EventArgs e ) : void
OnButtonSpecPaint ( object sender, NeedLayoutEventArgs e ) : void
OnProviderClose ( object sender, CloseReasonEventArgs e ) : void
OnProviderClose ( object sender, EventArgs e ) : void
OnProviderClosing ( object sender, CancelEventArgs e ) : void
SetPalette ( IPalette palette ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DoesCurrentMouseDownEndAllTracking() public method

Should a mouse down at the provided point cause an end to popup tracking.
public DoesCurrentMouseDownEndAllTracking ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Client coordinates point.
return bool

DoesMouseDownGetEaten() public method

Should the mouse down be eaten when the tracking has been ended.
public DoesMouseDownGetEaten ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Screen coordinates point.
return bool

DoesStackedClientMouseDownBecomeCurrent() public method

Should a mouse down at the provided point cause it to become the current tracking popup.
public DoesStackedClientMouseDownBecomeCurrent ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Client coordinates point.
return bool

OnKeyDown() protected method

Raises the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
return void

OnLayout() protected method

Raises the Layout event.
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs An EventArgs that contains the event data.
return void

OnPaletteNeedPaint() protected method

Processes a notification from palette of a paint and optional layout required.
protected OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
sender object Source of notification.
e ComponentFactory.Krypton.Toolkit.NeedLayoutEventArgs An NeedLayoutEventArgs containing event data.
return void

Show() public method

Show the context menu relative to the provided screen rectangle.
public Show ( Rectangle screenRect ) : void
screenRect System.Drawing.Rectangle Screen rectangle.
return void

VisualPopupAppMenu() public method

Initialize a new instance of the VisualPopupAppMenu class.
public VisualPopupAppMenu ( KryptonRibbon ribbon, RibbonAppButton appButton, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, Rectangle rectAppButtonTopHalf, Rectangle rectAppButtonBottomHalf, bool keyboardActivated ) : System
ribbon KryptonRibbon Owning ribbon instance.
appButton RibbonAppButton Originating app button instance.
palette IPalette Local palette setting to use initially.
paletteMode PaletteMode Palette mode setting to use initially.
redirector ComponentFactory.Krypton.Toolkit.PaletteRedirect Redirector used for obtaining palette values.
rectAppButtonTopHalf System.Drawing.Rectangle Screen location of the upper half of the app button.
rectAppButtonBottomHalf System.Drawing.Rectangle Screen location of the lower half of the app button.
keyboardActivated bool Was the context menu activated by a keyboard action.
return System