C# Class ComponentFactory.Krypton.Toolkit.VisualForm

Inheritance: System.Windows.Forms.Form, IKryptonDebug
ファイルを表示 Open project: ComponentFactory/Krypton

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

CreateRedirector() protected method

Create the redirector instance.
protected CreateRedirector ( ) : PaletteRedirect
return PaletteRedirect

Dispose() protected method

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.
return void

InvalidateNonClient() public method

Request the non-client area be repainted.
public InvalidateNonClient ( ) : void
return void

InvalidateNonClient() protected method

Request the non-client area be repainted.
protected InvalidateNonClient ( Rectangle invalidRect ) : void
invalidRect System.Drawing.Rectangle Area to invalidate.
return void

InvalidateNonClient() protected method

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.
return void

OnActivated() protected method

Raises the Activated event.
protected OnActivated ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnAllowFormChromeChanged() protected method

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.
return void

OnApplyCustomChromeChanged() protected method

Raises the ApplyCustomChrome event.
protected OnApplyCustomChromeChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnButtonSpecChanged() protected method

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.
return void

OnCompWM_NCHITTEST() protected method

Process the WM_NCHITTEST message when overriding window chrome.
protected OnCompWM_NCHITTEST ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnDeactivate() protected method

Raises the Deactivate event.
protected OnDeactivate ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnHandleCreated() protected method

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

OnNonClientPaint() protected method

Perform chrome window painting in the non-client areas.
protected OnNonClientPaint ( IntPtr hWnd ) : void
hWnd System.IntPtr Window handle of window being painted.
return void

OnPaintBackground() protected method

Raises the PaintBackground event.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs containing event data.
return void

OnPaintNonClient() protected method

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.
return bool

OnPaletteChanged() protected method

Raises the PaletteChanged event.
protected OnPaletteChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnResize() protected method

Raises the Resize event.
protected OnResize ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnShown() protected method

Raises the Shown event.
protected OnShown ( EventArgs e ) : void
e System.EventArgs An EventArgs containing event data.
return void

OnWM_LBUTTONUP() protected method

Process the WM_LBUTTONUP message when overriding window chrome.
protected OnWM_LBUTTONUP ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_MOUSEMOVE() protected method

Process the OnWM_MOUSEMOVE message when overriding window chrome.
protected OnWM_MOUSEMOVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCACTIVATE() protected method

Process the WM_NCACTIVATE message when overriding window chrome.
protected OnWM_NCACTIVATE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCCALCSIZE() protected method

Process the WM_NCCALCSIZE message when overriding window chrome.
protected OnWM_NCCALCSIZE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCHITTEST() protected method

Process the WM_NCHITTEST message when overriding window chrome.
protected OnWM_NCHITTEST ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCLBUTTONDBLCLK() protected method

Process the WM_NCLBUTTONDBLCLK message when overriding window chrome.
protected OnWM_NCLBUTTONDBLCLK ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCLBUTTONDOWN() protected method

Process the WM_NCLBUTTONDOWN message when overriding window chrome.
protected OnWM_NCLBUTTONDOWN ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCLBUTTONUP() protected method

Process the WM_LBUTTONUP message when overriding window chrome.
protected OnWM_NCLBUTTONUP ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCMOUSELEAVE() protected method

Process the WM_NCMOUSELEAVE message when overriding window chrome.
protected OnWM_NCMOUSELEAVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCMOUSEMOVE() protected method

Process the WM_NCMOUSEMOVE message when overriding window chrome.
protected OnWM_NCMOUSEMOVE ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWM_NCPAINT() protected method

Process the WM_NCPAINT message when overriding window chrome.
protected OnWM_NCPAINT ( Message &m ) : bool
m System.Windows.Forms.Message A Windows-based message.
return bool

OnWindowActiveChanged() protected method

Called when the active state of the window changes.
protected OnWindowActiveChanged ( ) : void
return void

RecalcNonClient() public method

Request the non-client area be recalculated.
public RecalcNonClient ( ) : void
return void

RedrawNonClient() public method

Request the non-client area be repainted.
public RedrawNonClient ( ) : void
return void

ResetPalette() public method

Resets the Palette property to its default value.
public ResetPalette ( ) : void
return void

ResetPaletteMode() public method

Resets the PaletteMode property to its default value.
public ResetPaletteMode ( ) : void
return void

ResumePaint() protected method

Resume processing of non-client painting.
protected ResumePaint ( ) : void
return void

ScreenToWindow() protected method

Convert a screen location to a window location.
protected ScreenToWindow ( Point screenPt ) : Point
screenPt Point Screen point.
return Point

SetBoundsCore() protected method

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.
return void

StartCapture() protected method

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.
return void

SuspendPaint() protected method

Suspend processing of non-client painting.
protected SuspendPaint ( ) : void
return void

WindowChromeCompositionLayout() public method

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.
return void

WindowChromeCompositionPaint() public method

Perform painting on behalf of the composition element using our root element.
public WindowChromeCompositionPaint ( RenderContext context ) : void
context RenderContext Rendering context.
return void

WindowChromeEnd() protected method

Perform cleanup when custom chrome ending.
protected WindowChromeEnd ( ) : void
return void

WindowChromeHitTest() protected method

Perform hit testing.
protected WindowChromeHitTest ( Point pt, bool composition ) : IntPtr
pt Point Point in window coordinates.
composition bool Are we performing composition.
return System.IntPtr

WindowChromeLeftMouseDown() protected method

Process the left mouse down event.
protected WindowChromeLeftMouseDown ( Point pt ) : bool
pt Point Window coordinate of the mouse up.
return bool

WindowChromeLeftMouseUp() protected method

Process the left mouse up event.
protected WindowChromeLeftMouseUp ( Point pt ) : bool
pt Point Window coordinate of the mouse up.
return bool

WindowChromeMouseLeave() protected method

Perform mouse leave processing.
protected WindowChromeMouseLeave ( ) : void
return void

WindowChromeNonClientMouseMove() protected method

Perform non-client mouse movement processing.
protected WindowChromeNonClientMouseMove ( Point pt ) : void
pt Point Point in window coordinates.
return void

WindowChromePaint() protected method

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.
return void

WindowChromeStart() protected method

Perform setup for custom chrome.
protected WindowChromeStart ( ) : void
return void

WndProc() protected method

Process Windows-based messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows-based message.
return void