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

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

Private Properties

Свойство Тип Описание
CreateToolStripRenderer System.Windows.Forms.ToolStripRenderer
GetResolvedPalette IPalette
KryptonResetCounters void
OnBaseChanged void
OnGlobalPaletteChanged void
OnUserPreferenceChanged void
PerformNeedPaint void
RecalculateComposition void
SendSysCommand void
SendSysCommand void
SetPalette void
ShouldSerializePaletteMode bool
UpdateComposition void
VisualForm System

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

Метод Описание
InvalidateNonClient ( ) : void

Request the non-client area be repainted.

RecalcNonClient ( ) : void

Request the non-client area be recalculated.

RedrawNonClient ( ) : void

Request the non-client area be repainted.

ResetPalette ( ) : void

Resets the Palette property to its default value.

ResetPaletteMode ( ) : void

Resets the PaletteMode property to its default value.

WindowChromeCompositionLayout ( ViewLayoutContext context, Rectangle compRect ) : void

Perform layout on behalf of the composition element using our root element.

WindowChromeCompositionPaint ( RenderContext context ) : void

Perform painting on behalf of the composition element using our root element.

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

Метод Описание
CreateRedirector ( ) : PaletteRedirect

Create the redirector instance.

Dispose ( bool disposing ) : void

Releases all resources used by the Control.

InvalidateNonClient ( Rectangle invalidRect ) : void

Request the non-client area be repainted.

InvalidateNonClient ( Rectangle invalidRect, bool excludeClientArea ) : void

Request the non-client area be repainted.

OnActivated ( EventArgs e ) : void

Raises the Activated event.

OnAllowFormChromeChanged ( object sender, EventArgs e ) : void

Occurs when the AllowFormChromeChanged event is fired for the current palette.

OnApplyCustomChromeChanged ( EventArgs e ) : void

Raises the ApplyCustomChrome event.

OnButtonSpecChanged ( object sender, EventArgs e ) : void

Processes a notification from palette storage of a button spec change.

OnCompWM_NCHITTEST ( Message &m ) : bool

Process the WM_NCHITTEST message when overriding window chrome.

OnDeactivate ( EventArgs e ) : void

Raises the Deactivate event.

OnHandleCreated ( EventArgs e ) : void

Raises the HandleCreated event.

OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

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

OnNonClientPaint ( IntPtr hWnd ) : void

Perform chrome window painting in the non-client areas.

OnPaintBackground ( PaintEventArgs e ) : void

Raises the PaintBackground event.

OnPaintNonClient ( Message &m ) : bool

Process a windows message that requires the non client area be repainted.

OnPaletteChanged ( EventArgs e ) : void

Raises the PaletteChanged event.

OnResize ( EventArgs e ) : void

Raises the Resize event.

OnShown ( EventArgs e ) : void

Raises the Shown event.

OnWM_LBUTTONUP ( Message &m ) : bool

Process the WM_LBUTTONUP message when overriding window chrome.

OnWM_MOUSEMOVE ( Message &m ) : bool

Process the OnWM_MOUSEMOVE message when overriding window chrome.

OnWM_NCACTIVATE ( Message &m ) : bool

Process the WM_NCACTIVATE message when overriding window chrome.

OnWM_NCCALCSIZE ( Message &m ) : bool

Process the WM_NCCALCSIZE message when overriding window chrome.

OnWM_NCHITTEST ( Message &m ) : bool

Process the WM_NCHITTEST message when overriding window chrome.

OnWM_NCLBUTTONDBLCLK ( Message &m ) : bool

Process the WM_NCLBUTTONDBLCLK message when overriding window chrome.

OnWM_NCLBUTTONDOWN ( Message &m ) : bool

Process the WM_NCLBUTTONDOWN message when overriding window chrome.

OnWM_NCLBUTTONUP ( Message &m ) : bool

Process the WM_LBUTTONUP message when overriding window chrome.

OnWM_NCMOUSELEAVE ( Message &m ) : bool

Process the WM_NCMOUSELEAVE message when overriding window chrome.

OnWM_NCMOUSEMOVE ( Message &m ) : bool

Process the WM_NCMOUSEMOVE message when overriding window chrome.

OnWM_NCPAINT ( Message &m ) : bool

Process the WM_NCPAINT message when overriding window chrome.

OnWindowActiveChanged ( ) : void

Called when the active state of the window changes.

ResumePaint ( ) : void

Resume processing of non-client painting.

ScreenToWindow ( Point screenPt ) : Point

Convert a screen location to a window location.

SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified ) : void

Performs the work of setting the specified bounds of this control.

StartCapture ( ViewBase element ) : void

Start capturing mouse input for a particular element that is inside the chrome.

SuspendPaint ( ) : void

Suspend processing of non-client painting.

WindowChromeEnd ( ) : void

Perform cleanup when custom chrome ending.

WindowChromeHitTest ( Point pt, bool composition ) : IntPtr

Perform hit testing.

WindowChromeLeftMouseDown ( Point pt ) : bool

Process the left mouse down event.

WindowChromeLeftMouseUp ( Point pt ) : bool

Process the left mouse up event.

WindowChromeMouseLeave ( ) : void

Perform mouse leave processing.

WindowChromeNonClientMouseMove ( Point pt ) : void

Perform non-client mouse movement processing.

WindowChromePaint ( Graphics g, Rectangle bounds ) : void

Perform painting of the window chrome.

WindowChromeStart ( ) : void

Perform setup for custom chrome.

WndProc ( Message &m ) : void

Process Windows-based messages.

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

Метод Описание
CreateToolStripRenderer ( ) : System.Windows.Forms.ToolStripRenderer
GetResolvedPalette ( ) : IPalette
KryptonResetCounters ( ) : void
OnBaseChanged ( object sender, EventArgs e ) : void
OnGlobalPaletteChanged ( object sender, EventArgs e ) : void
OnUserPreferenceChanged ( object sender, Microsoft.Win32.UserPreferenceChangedEventArgs e ) : void
PerformNeedPaint ( bool needLayout ) : void
RecalculateComposition ( ) : void
SendSysCommand ( int sysCommand ) : void
SendSysCommand ( int sysCommand, IntPtr lParam ) : void
SetPalette ( IPalette palette ) : void
ShouldSerializePaletteMode ( ) : bool
UpdateComposition ( ) : void
VisualForm ( ) : System

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

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

Create the redirector instance.
protected CreateRedirector ( ) : PaletteRedirect
Результат PaletteRedirect

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

Releases all resources used by the Control.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Request the non-client area be repainted.
public InvalidateNonClient ( ) : void
Результат void

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

Request the non-client area be repainted.
protected InvalidateNonClient ( Rectangle invalidRect ) : void
invalidRect System.Drawing.Rectangle Area to invalidate.
Результат void

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

Request the non-client area be repainted.
protected InvalidateNonClient ( Rectangle invalidRect, bool excludeClientArea ) : void
invalidRect System.Drawing.Rectangle Area to invalidate.
excludeClientArea bool Should client area be excluded.
Результат void

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

Raises the Activated event.
protected OnActivated ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Occurs when the AllowFormChromeChanged event is fired for the current palette.
protected OnAllowFormChromeChanged ( object sender, EventArgs e ) : void
sender object Source of the event.
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Raises the ApplyCustomChrome event.
protected OnApplyCustomChromeChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Processes a notification from palette storage of a button spec change.
protected OnButtonSpecChanged ( object sender, EventArgs e ) : void
sender object Source of notification.
e System.EventArgs An EventArgs containing event data.
Результат void

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

Process the WM_NCHITTEST message when overriding window chrome.
protected OnCompWM_NCHITTEST ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Raises the Deactivate event.
protected OnDeactivate ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Raises the HandleCreated event.
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs An EventArgs containing 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

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

Perform chrome window painting in the non-client areas.
protected OnNonClientPaint ( IntPtr hWnd ) : void
hWnd System.IntPtr Window handle of window being painted.
Результат void

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

Raises the PaintBackground event.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs containing event data.
Результат void

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

Process a windows message that requires the non client area be repainted.
protected OnPaintNonClient ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Raises the PaletteChanged event.
protected OnPaletteChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Raises the Resize event.
protected OnResize ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Raises the Shown event.
protected OnShown ( EventArgs e ) : void
e System.EventArgs An EventArgs containing event data.
Результат void

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

Process the WM_LBUTTONUP message when overriding window chrome.
protected OnWM_LBUTTONUP ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the OnWM_MOUSEMOVE message when overriding window chrome.
protected OnWM_MOUSEMOVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCACTIVATE message when overriding window chrome.
protected OnWM_NCACTIVATE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCCALCSIZE message when overriding window chrome.
protected OnWM_NCCALCSIZE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCHITTEST message when overriding window chrome.
protected OnWM_NCHITTEST ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCLBUTTONDBLCLK message when overriding window chrome.
protected OnWM_NCLBUTTONDBLCLK ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCLBUTTONDOWN message when overriding window chrome.
protected OnWM_NCLBUTTONDOWN ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_LBUTTONUP message when overriding window chrome.
protected OnWM_NCLBUTTONUP ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCMOUSELEAVE message when overriding window chrome.
protected OnWM_NCMOUSELEAVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCMOUSEMOVE message when overriding window chrome.
protected OnWM_NCMOUSEMOVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Process the WM_NCPAINT message when overriding window chrome.
protected OnWM_NCPAINT ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
Результат bool

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

Called when the active state of the window changes.
protected OnWindowActiveChanged ( ) : void
Результат void

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

Request the non-client area be recalculated.
public RecalcNonClient ( ) : void
Результат void

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

Request the non-client area be repainted.
public RedrawNonClient ( ) : void
Результат void

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

Resets the Palette property to its default value.
public ResetPalette ( ) : void
Результат void

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

Resets the PaletteMode property to its default value.
public ResetPaletteMode ( ) : void
Результат void

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

Resume processing of non-client painting.
protected ResumePaint ( ) : void
Результат void

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

Convert a screen location to a window location.
protected ScreenToWindow ( Point screenPt ) : Point
screenPt Point Screen point.
Результат Point

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

Performs the work of setting the specified bounds of this control.
protected SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified ) : void
x int The new Left property value of the control.
y int The new Top property value of the control.
width int The new Width property value of the control.
height int The new Height property value of the control.
specified BoundsSpecified A bitwise combination of the BoundsSpecified values.
Результат void

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

Start capturing mouse input for a particular element that is inside the chrome.
protected StartCapture ( ViewBase element ) : void
element ViewBase Target element for the capture events.
Результат void

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

Suspend processing of non-client painting.
protected SuspendPaint ( ) : void
Результат void

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

Perform layout on behalf of the composition element using our root element.
public WindowChromeCompositionLayout ( ViewLayoutContext context, Rectangle compRect ) : void
context ViewLayoutContext Layout context.
compRect System.Drawing.Rectangle Rectangle for composition element.
Результат void

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

Perform painting on behalf of the composition element using our root element.
public WindowChromeCompositionPaint ( RenderContext context ) : void
context RenderContext Rendering context.
Результат void

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

Perform cleanup when custom chrome ending.
protected WindowChromeEnd ( ) : void
Результат void

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

Perform hit testing.
protected WindowChromeHitTest ( Point pt, bool composition ) : IntPtr
pt Point Point in window coordinates.
composition bool Are we performing composition.
Результат System.IntPtr

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

Process the left mouse down event.
protected WindowChromeLeftMouseDown ( Point pt ) : bool
pt Point Window coordinate of the mouse up.
Результат bool

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

Process the left mouse up event.
protected WindowChromeLeftMouseUp ( Point pt ) : bool
pt Point Window coordinate of the mouse up.
Результат bool

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

Perform mouse leave processing.
protected WindowChromeMouseLeave ( ) : void
Результат void

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

Perform non-client mouse movement processing.
protected WindowChromeNonClientMouseMove ( Point pt ) : void
pt Point Point in window coordinates.
Результат void

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

Perform painting of the window chrome.
protected WindowChromePaint ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics Graphics instance to use for drawing.
bounds System.Drawing.Rectangle Bounds enclosing the window chrome.
Результат void

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

Perform setup for custom chrome.
protected WindowChromeStart ( ) : void
Результат void

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

Process Windows-based messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows-based message.
Результат void