C# Класс Blue.Windows.StickyWindow

A windows that Sticks to other windows of the same type when moved or resized. You get a nice way of organizing multiple top-level windows. Quite similar with WinAmp 2.x style of sticking the windows
Наследование: System.Windows.Forms.NativeWindow
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
RegisterExternalReferenceForm ( Form frmExternal ) : void

Register a new form as an external reference form. All Sticky windows will try to stick to the external references Use this to register your MainFrame so the child windows try to stick to it, when your MainFrame is NOT a sticky window

StickyWindow ( Form form ) : System.Collections

Make the form Sticky

UnregisterExternalReferenceForm ( Form frmExternal ) : void

Unregister a form from the external references. RegisterExternalReferenceForm

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

Метод Описание
Cancel ( ) : void
DefaultMsgProcessor ( Message &m ) : bool

Processes messages during normal operations (while the form is not resized or moved)

EndMove ( ) : void
EndResize ( ) : void
Move ( Point p ) : void
MoveMsgProcessor ( Message &m ) : bool
Move_Stick ( Rectangle toRect, bool bInsideStick ) : void

NormalizeInside ( int iP1, int iM1, int iM2 ) : int
OnHandleChange ( ) : void
OnNCLButtonDown ( int iHitTest, Point point ) : bool

Checks where the click was in the NC area and starts move or resize operation

Resize ( Point p ) : void
ResizeMsgProcessor ( Message &m ) : bool
Resize_Stick ( Rectangle toRect, bool bInsideStick ) : void
StartMove ( ) : void
StartResize ( ResizeDir resDir ) : bool
WndProc ( Message &m ) : void

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

RegisterExternalReferenceForm() публичный статический Метод

Register a new form as an external reference form. All Sticky windows will try to stick to the external references Use this to register your MainFrame so the child windows try to stick to it, when your MainFrame is NOT a sticky window
public static RegisterExternalReferenceForm ( Form frmExternal ) : void
frmExternal System.Windows.Forms.Form External window that will be used as reference
Результат void

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

Make the form Sticky
public StickyWindow ( Form form ) : System.Collections
form System.Windows.Forms.Form Form to be made sticky
Результат System.Collections

UnregisterExternalReferenceForm() публичный статический Метод

Unregister a form from the external references. RegisterExternalReferenceForm
public static UnregisterExternalReferenceForm ( Form frmExternal ) : void
frmExternal System.Windows.Forms.Form External window that will was used as reference
Результат void