This gives just a thin white border around the Edit control, but no padding around the text:
Code: Select all
Gui, new, HwndGuiHwnd , newgui
Gui, Color, red, green
Gui, Show, Center w300 h200, ahk_id%GuiHwnd%
Gui, Add, Text, x19 y19 w152 h52 +9
Gui, Add, Edit, x20 y20 w150 h50 -Multi -Border -E0x200
This adds "padding" using an extra Edit control for the green background:
Code: Select all
Gui, new, HwndGuiHwnd , newgui
Gui, Color, red, green
Gui, Show, Center w300 h200, ahk_id%GuiHwnd%
Gui, Add, Text, x19 y19 w152 h52 +9
Gui, Add, Edit, x20 y20 w150 h50 -Multi -Border -E0x200 -Tabstop
Gui, Add, Edit, x22 y22 w146 h46 -Multi -Border -E0x200
There may be other styles listed in the help file (under "styles for GUI command") that can help.
Edit: Also, if you don't mind the classic "sunken" border style, you can just add
-Theme to the Edit control's options.