In autohotkey, how do you remove the black button border? I just want a button without any border on it.
I've tried all these style modifiers to no avail.
gui, add, button, hwndMyButton
Control, Style, -0x0,, ahk_id %MyButton% ;remove BS_PUSHBUTTON
Control, Style, -0x1,, ahk_id %MyButton% ;remove BS_DEFPUSHBUTTON
Control, Style, +0x8000,,ahk_id %MyButton% ;add BS_FLAT
Control, Style, +0x40,, ahk_id %MyButton% ;add BS_ICON
JoeDF has a nice example, but I didn't want to add such a big library (it does waaay more than I needed.
So, I just used a picture control.
And then I wrote up a teeny library called Mousey that will change the cursor into a hand so the user knows it is a button when the mouse passes over it. And it is easy to make the icon change when you click on it - so you can use this procedure to show "pressed" and "unpressed" states.
The effect is that I now have a nice little icon for a "button".