Code: Select all
Gui, -Resize -MaximizeBox +LastFound ; Minimize Box active, Maximize Box greyed out.
; Gui, -Resize -MaximizeBox +MinimizeBox +LastFound ; Same behavior as above line.
; Gui, -Resize -MinimizeBox +MaximizeBox +LastFound ; Maximize Box active, Minimize Box greyed out.
; Gui, -Resize -MinimizeBox +LastFound ; Neither Minimize or Maximize boxes are present. Actually removed, which is what I would like to achieve, but I only wish to remove the Maximize Box.
Gui, Add, Text, , Hello Human!
Gui, Add, Edit, w250 vUser_Specified_Number
Gui, Add, Button, x10 y70 Default,Yes
Gui, Add, Button, x50 y70, No
Gui, Show, , Input Data
Return
ButtonYes:
ButtonNo:
GuiClose:
GuiEscape:
ExitApp
MinimizeBox (present by default): Enables the minimize button in the title bar.
MaximizeBox: Enables the maximize button in the title bar. This is also included as part of Resize below.
Resize: Makes the window resizable and enables its maximize button in the title bar. To avoid enabling the maximize button, specify +Resize -MaximizeBox.