MoriceGrene Posted 3 hours ago Posted 3 hours ago Hi, is it possible to have the buttons perfectly squared when a color is set on the button? because he always makes the corners rounded $idBtn=GUICtrlCreateButton("Exit", $guiWidth - 60, 1, 55, 20) GUICtrlSetBkColor($idBtn, 0x71A0FF) without colo BCK square perfect
WildByDesign Posted 3 hours ago Posted 3 hours ago I would strongly recommend the GuiFlatButton UDF. It's perfectly square buttons. And it also lets you control colors for all states. You can even color borders of each button. It's a fantastic UDF.
Nine Posted 2 hours ago Posted 2 hours ago Just use a label : #include <GUIConstants.au3> Example() Func Example() Local $hGUI = GUICreate("Example", 300, 200) Local $idBtn = GUICtrlCreateLabel("Exit", 120, 150, 85, 25, BitOR($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, 0x71A0FF) GUISetState() While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idBtn ConsoleWrite("button pressed" & @CRLF) EndSwitch WEnd EndFunc ;==>Example “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
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