How to use this button style Topic is solved
How to use this button style
Notice how the OK button has square edges and no shadow through its face like a regular button does which looks more like this:
On Windows 10 I believe the above image will have square edges as well, however that doesn't mean there aren't two different styles in effect and I would like to use the one in the first picture.
I have tried all the styles in the help file, notably BS_FLAT 0x8000 Specifies that the button is two-dimensional; it does not use the default shading to create a 3-D effect. , however it has no effect. The other styles do work so I don't believe it's an error on my part.
Thanks
Re: How to use this button style
Did you try ControlGet Style/ExStyle? It might reveal the difference.
Code: Select all
q::
vCtlClassNN := "Button1"
ControlGet, vCtlStyle, Style,, % vCtlClassNN, A
ControlGet, vCtlExStyle, ExStyle,, % vCtlClassNN, A
MsgBox, % Format("0x{:08X} 0x{:08X}", vCtlStyle, vCtlExStyle)
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: How to use this button style Topic is solved
Add -theme to the control's options.
Sample:
Sample:
Code: Select all
GUI, Add, Button, W100 -theme, % "Square"
GUI, Add, Button, W100, % "Regular"
GUI, Show
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Re: How to use this button style
Thank you SirRFI that works.
Thanks. ControlGet is showing styles 0x00000004 and 0x50030001 for me, but neither of them result in the style unfortunately.jeeswg wrote:Did you try ControlGet Style/ExStyle? It might reveal the difference.Code: Select all
q:: vCtlClassNN := "Button1" ControlGet, vCtlStyle, Style,, % vCtlClassNN, A ControlGet, vCtlExStyle, ExStyle,, % vCtlClassNN, A MsgBox, % Format("0x{:08X} 0x{:08X}", vCtlStyle, vCtlExStyle) return
Who is online
Users browsing this forum: Bing [Bot], jameswrightesq and 157 guests