C# Class ComponentFactory.Krypton.Toolkit.VisualForm

Inheritance: System.Windows.Forms.Form, IKryptonDebug
Afficher le fichier Open project: ComponentFactory/Krypton

Private Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

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

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

Create the redirector instance.
protected CreateRedirector ( ) : PaletteRedirect
Résultat PaletteRedirect

Dispose() protected méthode

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

InvalidateNonClient() public méthode

Request the non-client area be repainted.
public InvalidateNonClient ( ) : void
Résultat void

InvalidateNonClient() protected méthode

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

InvalidateNonClient() protected méthode

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

OnActivated() protected méthode

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

OnAllowFormChromeChanged() protected méthode

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

OnApplyCustomChromeChanged() protected méthode

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

OnButtonSpecChanged() protected méthode

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

OnCompWM_NCHITTEST() protected méthode

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

OnDeactivate() protected méthode

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

OnHandleCreated() protected méthode

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

OnNonClientPaint() protected méthode

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

OnPaintBackground() protected méthode

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

OnPaintNonClient() protected méthode

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

OnPaletteChanged() protected méthode

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

OnResize() protected méthode

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

OnShown() protected méthode

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

OnWM_LBUTTONUP() protected méthode

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

OnWM_MOUSEMOVE() protected méthode

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

OnWM_NCACTIVATE() protected méthode

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

OnWM_NCCALCSIZE() protected méthode

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

OnWM_NCHITTEST() protected méthode

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

OnWM_NCLBUTTONDBLCLK() protected méthode

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

OnWM_NCLBUTTONDOWN() protected méthode

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

OnWM_NCLBUTTONUP() protected méthode

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

OnWM_NCMOUSELEAVE() protected méthode

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

OnWM_NCMOUSEMOVE() protected méthode

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

OnWM_NCPAINT() protected méthode

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

OnWindowActiveChanged() protected méthode

Called when the active state of the window changes.
protected OnWindowActiveChanged ( ) : void
Résultat void

RecalcNonClient() public méthode

Request the non-client area be recalculated.
public RecalcNonClient ( ) : void
Résultat void

RedrawNonClient() public méthode

Request the non-client area be repainted.
public RedrawNonClient ( ) : void
Résultat void

ResetPalette() public méthode

Resets the Palette property to its default value.
public ResetPalette ( ) : void
Résultat void

ResetPaletteMode() public méthode

Resets the PaletteMode property to its default value.
public ResetPaletteMode ( ) : void
Résultat void

ResumePaint() protected méthode

Resume processing of non-client painting.
protected ResumePaint ( ) : void
Résultat void

ScreenToWindow() protected méthode

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

SetBoundsCore() protected méthode

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

StartCapture() protected méthode

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

SuspendPaint() protected méthode

Suspend processing of non-client painting.
protected SuspendPaint ( ) : void
Résultat void

WindowChromeCompositionLayout() public méthode

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

WindowChromeCompositionPaint() public méthode

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

WindowChromeEnd() protected méthode

Perform cleanup when custom chrome ending.
protected WindowChromeEnd ( ) : void
Résultat void

WindowChromeHitTest() protected méthode

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

WindowChromeLeftMouseDown() protected méthode

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

WindowChromeLeftMouseUp() protected méthode

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

WindowChromeMouseLeave() protected méthode

Perform mouse leave processing.
protected WindowChromeMouseLeave ( ) : void
Résultat void

WindowChromeNonClientMouseMove() protected méthode

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

WindowChromePaint() protected méthode

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

WindowChromeStart() protected méthode

Perform setup for custom chrome.
protected WindowChromeStart ( ) : void
Résultat void

WndProc() protected méthode

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