AHK's GUI does a good job of knowing the height of the GUI, so that a Gui,Show command without specifying the Height (H) option displays nicely. However, the same is sometimes not true for the width of the GUI because of the Title. The GUI width, without specifying the Width (W) option, is auto-sized based on the controls that it contains, but if the Title, along with the other elements in the Title bar (Minimize, Maximize/Restore, Close buttons), is longer than the longest control, the Title will be cut off. Example code and result:
Code: Select all
Gui,Add,Text,,What to process:
Gui,Add,Radio,Checked,Root folder only
Gui,Add,Radio,,Recurse subfolders
Gui,Add,Radio,,Individual files
Gui,Add,Button,Default,&OK
Gui,Add,Button,x+10,&Cancel
Gui,Show,,Select folder or files
Return
GuiClose:
GuiEscape:
ButtonOK:
ButtonCancel:
ExitApp
Other than specifying the Width (W) option in Gui,Show, is there any way to make the auto-sizing take into account the Title bar width (something similar to the AutoHdr option in LV_ModifyCol)? Or is this a Wish List item?
Thanks much, Joe