adjust_len = 300 Gui, Add, Progress, x0 y0 w%adjust_len% h50 backgroundWhite +Theme ; white header Gui, Add, Text, x0 yp+38 +Backgroundtrans, ___________________________________________________________ ; enough to exceed length of window Gui, Add, Picture, xp+5 yp-30, %A_AhkPath% Gui, Font, bold Gui, Add, Text, xp+35 yp+10 +Backgroundtrans, Title Gui, Font, norm width := adjust_len - 10 Gui, Add, Text, xp-35 yp+45 w%width%, This is an exmple of a GUI that has a white header with an icon and title contained inside of it. Gui, Show, w%adjust_len%Pic:
==Orig. Message==
Many programs feature a GUI where the top is white and stylized. I found a way to produce that in AHK, but it's inperfect, using an edit control. Code is below.
See example here:
In Fig. 1, the line is blue where it should be black. Ok that's not a huge problem but there's more. If you mouse over it you get an 'I' cursor. Also, if clicked upon the edit goes above the text; very undesired. I have tried making the edit Disabled and ReadOnly but then it is no longer white.
Can anyone think of a better fix/approach to this?
Gui, +ToolWindow Gui, Add, Edit, w350 h50 x0 y0 Gui, Add, Picture, xp+5 yp+10, media\globalsuggestion.ico Gui, Add, Text, BackgRoundtrans xp+35 yp+10, Add a Suggestion: Gui, Add, Text, BackgRoundtrans xp-35 yp+40, Username: Gui, Add, Edit, xp+75 yp-3 vtxtusername w200, stevem Gui, Add, Text, BackgRoundtrans xp-75 yp+30, Suggestion: Gui, Add, Edit, xp+75 yp-3 vtxtsuggestion r5 w200 Gui, Add, Button, xp+50 yp+75 w75 gButtonAddSuggestionOK, OK Gui, Add, Button, xp+75 yp+0 w75 gButtonAddSuggestionCancel, Cancel Gui, Show, w290, Add a Suggestion