GH_WindowsFormUtil
Exposes some static (Shared) utility functions for positioning custom windows.
Methods
CenterFormOnCursor
#Positions a Form so that it is centered around the cursor
CenterFormOnCursor
#Positions a Form so that it is centered around the cursor
Parameters:
| F (Window) | The Form to adjust |
| limitToScreen (bool) | If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor. |
CenterFormOnEditor
#Positions a Form so that it is centered on the active editor. If the editor doesn't exist or is hidden, the form will be centered on the screen instead.
CenterFormOnEditor
#Positions a Form so that it is centered on the active editor. If the editor doesn't exist or is hidden, the form will be centered on the screen instead.
Parameters:
| F (Window) | The Form to adjust |
| limitToScreen (bool) | If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor. |
CenterFormOnScreen
#Positions a Form so that it is centered on the current screen. The current screen being defined as the screen containing the cursor.
CenterFormOnScreen
#Positions a Form so that it is centered on the current screen. The current screen being defined as the screen containing the cursor.
Parameters:
| F (Window) | The Form to adjust |
| limitToScreen (bool) | If True, the Form won't be allowed to extend beyond the limits of the active screen. |
CenterFormOnWindow
#Positions a Form so that it is centered on the supplied window. If the window doesn't exist or is hidden, the form will be centered on the screen instead.
CenterFormOnWindow
#Positions a Form so that it is centered on the supplied window. If the window doesn't exist or is hidden, the form will be centered on the screen instead.
Parameters:
| F (Window) | The Form to adjust |
| parentWindow (Window) | |
| limitToScreen (bool) | If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor. |