NOAhgomes Posted April 30, 2019 Posted April 30, 2019 How do I get rid of the blue outer border surrounding a button? I don't want the blue killing the GUI >< Also, how can I customize the mouseover/onclick colors of the button? If I specify GUICtrlSetBkColor or GUICtrlSetColor the button loses the default mouseover properties (mouseover=gold inner border, onclick=no inner border). I tried using the style/exstyle stuff and nothing I tried worked. Created a second button so that I could tab off of my main button's focus. Example: (forgive my bored humor) #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("This is a test GUI",300,100) GUISetBkColor(0x000000) GUICtrlCreateButton("X",0,0,1,1) GUICtrlSetBKColor(-1,0x000000) GUICtrlSetColor(-1,0x000000) $BTN = GUICtrlCreateButton("This is not a test",25,25,250,50) GUICtrlSetBKColor(-1,0x000000) GUICtrlSetColor(-1,0x00FF00) GUISetState() While 1 Switch GUIGetMsg() Case $BTN MsgBox(16,"EXPLOSION!","Told you it wasn't a test. You die in the explosion.") Case $GUI_EVENT_CLOSE MsgBox(0,"SAFE!","Congratulations: Curiosity didn't kill you...this time...") Exit EndSwitch Wend
Nine Posted April 30, 2019 Posted April 30, 2019 Please read this comment from M23 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
kurtykurtyboy Posted May 2, 2019 Posted May 2, 2019 Have a look at my GuiFlatButton UDF. I wanted to do exactly as you describe and dove deep into the depths of owner drawn buttons and subclassing. If that's not the look you're going for, maybe it might give you some pointers for drawing your own.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now