C# Class ComponentFactory.Krypton.Toolkit.VisualPopup

Inheritance: System.Windows.Forms.ContainerControl
显示文件 Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
CalculateBelowPopupRect System.Drawing.Rectangle
CreateToolStripRenderer System.Windows.Forms.ToolStripRenderer
GetResolvedPalette IPalette
OnPerformRefresh void
PerformNeedPaint void

Public Methods

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

Should the mouse move at provided screen point be allowed.

DefineShadowPaths ( GraphicsPath path1, GraphicsPath path2, GraphicsPath path3 ) : void

Define the drawing paths for the shadow.

DoesCurrentMouseDownContinueTracking ( Message m, Point pt ) : bool

Should a mouse down at the provided point allow tracking to continue.

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.

GetViewManager ( ) : ViewManager

Gets access to the view manager of the popup.

Show ( Rectangle screenRect ) : void

Show the popup using the provided rectangle as the screen rect.

Show ( Rectangle parentScreenRect, Size popupSize ) : void

Show the popup with the given size but relative to the provided parent rectangle.

VisualPopup ( IRenderer renderer, bool shadow ) : System

Initialize a new instance of the VisualPopup class.

VisualPopup ( ViewManager viewManager, IRenderer renderer, bool shadow ) : System

Initialize a new instance of the VisualPopup class.

VisualPopup ( bool shadow ) : System

Initialize a new instance of the VisualPopup class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDoubleClick ( EventArgs e ) : void

Raises the DoubleClick event.

OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the KeyPress event.

OnKeyUp ( KeyEventArgs e ) : void

Raises the KeyUp event.

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

Raises the Layout event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the MouseDown event.

OnMouseLeave ( EventArgs e ) : void

Raises the MouseLeave event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the MouseMove event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the MouseUp event.

OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

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

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event.

ProcessDialogKey ( Keys keyData ) : bool

Processes a dialog key.

WndProc ( Message &m ) : void

Processes Windows messages.

Private Methods

Method Description
CalculateBelowPopupRect ( Rectangle parentScreenRect, Size popupSize ) : Rectangle
CreateToolStripRenderer ( ) : System.Windows.Forms.ToolStripRenderer
GetResolvedPalette ( ) : IPalette
OnPerformRefresh ( ) : void
PerformNeedPaint ( bool needLayout ) : void

Method Details

AllowMouseMove() public method

Should the mouse move at provided screen point be allowed.
public AllowMouseMove ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Client coordinates point.
return bool

DefineShadowPaths() public method

Define the drawing paths for the shadow.
public DefineShadowPaths ( GraphicsPath path1, GraphicsPath path2, GraphicsPath path3 ) : void
path1 System.Drawing.Drawing2D.GraphicsPath Outer path.
path2 System.Drawing.Drawing2D.GraphicsPath Middle path.
path3 System.Drawing.Drawing2D.GraphicsPath Inside path.
return void

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

DoesCurrentMouseDownContinueTracking() public method

Should a mouse down at the provided point allow tracking to continue.
public DoesCurrentMouseDownContinueTracking ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Client coordinates point.
return bool

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

GetViewManager() public method

Gets access to the view manager of the popup.
public GetViewManager ( ) : ViewManager
return ViewManager

OnDoubleClick() protected method

Raises the DoubleClick event.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs A KeyEventArgs that contains the event data.
return void

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

OnKeyPress() protected method

Raises the KeyPress event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data.
return void

OnKeyUp() protected method

Raises the KeyUp event.
protected OnKeyUp ( 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 A LayoutEventArgs that contains the event data.
return void

OnMouseDown() protected method

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
return void

OnMouseLeave() protected method

Raises the MouseLeave event.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnMouseMove() protected method

Raises the MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
return void

OnMouseUp() protected method

Raises the MouseUp event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
return void

OnNeedPaint() protected method

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

OnPaint() protected method

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data.
return void

ProcessDialogKey() protected method

Processes a dialog key.
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the Keys values that represents the key to process.
return bool

Show() public method

Show the popup using the provided rectangle as the screen rect.
public Show ( Rectangle screenRect ) : void
screenRect System.Drawing.Rectangle Screen rectangle for showing the popup.
return void

Show() public method

Show the popup with the given size but relative to the provided parent rectangle.
public Show ( Rectangle parentScreenRect, Size popupSize ) : void
parentScreenRect System.Drawing.Rectangle Screen rectangle of parent area.
popupSize System.Drawing.Size Size of the popup to show.
return void

VisualPopup() public method

Initialize a new instance of the VisualPopup class.
public VisualPopup ( IRenderer renderer, bool shadow ) : System
renderer IRenderer Drawing renderer.
shadow bool Does the popup need a shadow effect.
return System

VisualPopup() public method

Initialize a new instance of the VisualPopup class.
public VisualPopup ( ViewManager viewManager, IRenderer renderer, bool shadow ) : System
viewManager ViewManager View manager instance for managing view display.
renderer IRenderer Drawing renderer.
shadow bool Does the popup need a shadow effect.
return System

VisualPopup() public method

Initialize a new instance of the VisualPopup class.
public VisualPopup ( bool shadow ) : System
shadow bool Does the popup need a shadow effect.
return System

WndProc() protected method

Processes Windows messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message The Windows Message to process.
return void