Code: Select all
gui, add, text, w100 h30 vMyText, Text
guicontrol, +border, MyText
gui, show
Code: Select all
gui, add, text, w100 h30 vMyText, Text
guicontrol, +border, MyText
gui, show
Code: Select all
WS_BORDER := 0x00800000
gui, add, text, w100 h30 hwndhText, Text
Gui, Add, Pic, Icon45 hwndhPic, Shell32.dll
Gui, Add, Button, gSetBorders, Set Borders
gui, show
Return
SetBorders:
WinSet, Style, +%WS_BORDER%, ahk_id %hText%
WinSet, Style, +%WS_BORDER%, ahk_id %hPic%
Return
Code: Select all
WS_BORDER := 0x00800000
gui, add, text, w100 h30 hwndhCtrl1, Text
Gui, Add, Pic, Icon45 hwndhCtrl2, Shell32.dll
n := 1
WinSet, Style, +%WS_BORDER%, % "ahk_id" hCtrl%n%
gui, show
Return
maybe not after all:
this works:Border: Provides a thin-line border around the control. Most controls do not need this because they already have a type-specific border. When adding a border to an existing control, it might be necessary to increase the control's width and height by 1 pixel.
Code: Select all
gui, add, text, w100 h30 vMyText, Text
guicontrol, +border, MyText
guicontrol, Move, MyText, w101 h31
gui, show
Code: Select all
WS_BORDER := 0x00800000
Gui, Add, Text, w100 h50 hwndhText
Gui, Add, Text, x+1 yp wp hp
WinSet, Style, +%WS_BORDER%, ahk_id %hText%
GuiControl, +border, Static2
GuiControl, Move, Static2, w101 h51
Gui, Show
Users browsing this forum: inseption86, mikeyww and 424 guests