C# Класс ComponentFactory.Krypton.Toolkit.VisualPopup

Наследование: System.Windows.Forms.ContainerControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CalculateBelowPopupRect System.Drawing.Rectangle
CreateToolStripRenderer System.Windows.Forms.ToolStripRenderer
GetResolvedPalette IPalette
OnPerformRefresh void
PerformNeedPaint void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
CalculateBelowPopupRect ( Rectangle parentScreenRect, Size popupSize ) : Rectangle
CreateToolStripRenderer ( ) : System.Windows.Forms.ToolStripRenderer
GetResolvedPalette ( ) : IPalette
OnPerformRefresh ( ) : void
PerformNeedPaint ( bool needLayout ) : void

Описание методов

AllowMouseMove() публичный Метод

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.
Результат bool

DefineShadowPaths() публичный Метод

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.
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

DoesCurrentMouseDownContinueTracking() публичный Метод

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.
Результат bool

DoesCurrentMouseDownEndAllTracking() публичный Метод

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.
Результат bool

DoesMouseDownGetEaten() публичный Метод

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.
Результат bool

DoesStackedClientMouseDownBecomeCurrent() публичный Метод

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.
Результат bool

GetViewManager() публичный Метод

Gets access to the view manager of the popup.
public GetViewManager ( ) : ViewManager
Результат ViewManager

OnDoubleClick() защищенный Метод

Raises the DoubleClick event.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs A KeyEventArgs that contains the event data.
Результат void

OnKeyDown() защищенный Метод

Raises the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Результат void

OnKeyPress() защищенный Метод

Raises the KeyPress event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data.
Результат void

OnKeyUp() защищенный Метод

Raises the KeyUp event.
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Результат void

OnLayout() защищенный Метод

Raises the Layout event.
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs A LayoutEventArgs that contains the event data.
Результат void

OnMouseDown() защищенный Метод

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
Результат void

OnMouseLeave() защищенный Метод

Raises the MouseLeave event.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

OnMouseMove() защищенный Метод

Raises the MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
Результат void

OnMouseUp() защищенный Метод

Raises the MouseUp event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
Результат void

OnNeedPaint() защищенный Метод

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.
Результат void

OnPaint() защищенный Метод

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data.
Результат void

ProcessDialogKey() защищенный Метод

Processes a dialog key.
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the Keys values that represents the key to process.
Результат bool

Show() публичный Метод

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.
Результат void

Show() публичный Метод

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.
Результат void

VisualPopup() публичный Метод

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.
Результат System

VisualPopup() публичный Метод

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.
Результат System

VisualPopup() публичный Метод

Initialize a new instance of the VisualPopup class.
public VisualPopup ( bool shadow ) : System
shadow bool Does the popup need a shadow effect.
Результат System

WndProc() защищенный Метод

Processes Windows messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message The Windows Message to process.
Результат void