TacFormMagnet component
Hierarchy Properties Methods Events |
The acFormMagnet allows to magnetize your forms to an edges of screen / work area, borders of parent window and to other forms. Forms can be attached each to others, so when user moves the form, others, "glued" forms will be moved too. With acFormMagnet, your forms can looks and feels like windows of famous WinAmp player.
|
1. | to be attracted to edges of screen or work area (considering placement of task / appbars)
|
2. | to be attracted to borders of parent form (for child windows).
|
3. | to attract other forms (with acFormMagnet on them) to itself.
|
4. | to glue other forms to itself (when user move form, others, "glued" forms will be moved too)
|
5. | to move forms, dragging by client area.
|
Active | activity flag. Means that this window can be magnetized to other forms and to screen edges;
|
FormDragable | allows to move forms, dragging by client area;
|
FormTopmost | controls Z-order of form and allow the form to stay on top over other windows;
|
Glue | enables or disables gluing feature. When Glue is True and user moves the form, others, attached forms will be moved too;
|
Options | specifies the behavior of the magnet (type of magnetization and gluing);
|
Power | maximum range (in screen pixels) to other object that attract the form;
|
ScreenMagnet | list of properties that allow the form to be magnetized to the screen edges.
|
OnDragMove | occurs when form changes the screen position;
|
OnGlue | occurs when form is about to be glued to other magnet;
|
OnMagnet | occurs when form is about to be magnetized to other magnet.
|
Just drop component onto your form, compile the program and try to move form near the screen edges. See description of properties for customization.
|