C# Class ComponentFactory.Krypton.Toolkit.VisualPopup

Inheritance: System.Windows.Forms.ContainerControl
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description
CalculateBelowPopupRect System.Drawing.Rectangle
CreateToolStripRenderer System.Windows.Forms.ToolStripRenderer
GetResolvedPalette IPalette
OnPerformRefresh void
PerformNeedPaint void

Méthodes publiques

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

Méthodes protégées

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

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

Method Details

AllowMouseMove() public méthode

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.
Résultat bool

DefineShadowPaths() public méthode

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.
Résultat void

Dispose() protected méthode

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

DoesCurrentMouseDownContinueTracking() public méthode

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.
Résultat bool

DoesCurrentMouseDownEndAllTracking() public méthode

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.
Résultat bool

DoesMouseDownGetEaten() public méthode

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.
Résultat bool

DoesStackedClientMouseDownBecomeCurrent() public méthode

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.
Résultat bool

GetViewManager() public méthode

Gets access to the view manager of the popup.
public GetViewManager ( ) : ViewManager
Résultat ViewManager

OnDoubleClick() protected méthode

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

OnKeyDown() protected méthode

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

OnKeyPress() protected méthode

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

OnKeyUp() protected méthode

Raises the KeyUp event.
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Résultat void

OnLayout() protected méthode

Raises the Layout event.
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs A LayoutEventArgs that contains the event data.
Résultat void

OnMouseDown() protected méthode

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

OnMouseLeave() protected méthode

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

OnMouseMove() protected méthode

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

OnMouseUp() protected méthode

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

OnNeedPaint() protected méthode

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.
Résultat void

OnPaint() protected méthode

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

ProcessDialogKey() protected méthode

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

Show() public méthode

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.
Résultat void

Show() public méthode

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.
Résultat void

VisualPopup() public méthode

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.
Résultat System

VisualPopup() public méthode

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.
Résultat System

VisualPopup() public méthode

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

WndProc() protected méthode

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