1/1/2024 0 Comments Aegisub gui resize![]() Whenever the GUI launches a new thread, A_Gui contains a HWND instead of a name.Special labels such as GuiClose have the default "Gui" prefix unless overridden by +Label Prefix in the options.If no name is given, the following applies: Sometimes it is more intuitive to set the window's title when the GUI is created instead of when it is shown. ![]() This can be especially useful if the script needs to create more than one GUI, or is intended to be included in other scripts. Gui New eliminates the need to pick a unique name or number for each GUI.It might also make the script's purpose clearer to other people who read your code (or future you). Calling Gui New ensures that the script is creating a new GUI, not modifying an existing one.Gui, % GuiHwnd%:Default can be used to make the other Gui commands operate on it by default. Use the +Hwnd GuiHwnd option to store the HWND of the new window in GuiHwnd. If the GUI has no name and is not the default GUI, it must be identified by its HWND.Although the new window is set as the default for the current thread, non-GUI threads still default to GUI number 1.In most cases the window is created automatically on demand, so it is usually unnecessary to call Gui New.This sub-command comes with the following caveats: If Title is omitted, the script's file name is used. Options can contain any of the options supported by the main GUI command. Otherwise, a new unnamed and unnumbered GUI will be created. If GuiName is specified, a new GUI will be created, destroying any existing GUI with that name. Gui, New, Options, Title Gui, GuiName:New, Options, Title Default: Changes the current thread's default GUI window name.Ĭreates a new window and sets it as the default for the current thread.Flash: Blinks the window and its taskbar button.Minimize / Maximize / Restore: Performs the indicated operation on the window.Options and styles for a window: Sets various options for the appearance and behavior of the window.Margin: Sets the margin/spacing used whenever no explicit position has been specified for a control.Color: Sets the background color for the window and/or its controls.Font: Sets the typeface, size, style, and text color for subsequently created controls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |