toxrocks Posted February 19, 2020 Share Posted February 19, 2020 Hi Guys, i have two checkboxes directly side by side. Local $Checkbox1 = GUICtrlCreateCheckbox("", 20, 60, 20, 20) Local $Checkbox2 = GUICtrlCreateCheckbox("", 32, 60, 20, 20) Both checkboxes have no text, but if i hover over them, there is an overlapping effect. This looks shitty and flickers as hell... any way to remove this ? Here are some screenshots: Default on startup When i hover over the left box, this happens: It seems even there is no text on the checkbox, there is still a placeholder, which overlays with the GUI element next to it. Anyone got an Idea how to fix this? Increase spacing between both checkboxes is not an option, they have to be together side by side. Thanks in advance Link to comment Share on other sites More sharing options...
BigDaddyO Posted February 19, 2020 Share Posted February 19, 2020 Pushing the label for the first checkbox to the left seems to work Local $idLabel = GUICtrlCreateCheckbox("", 20, 60, 13, 20, BitOR($BS_AUTOCHECKBOX, $BS_CHECKBOX, $BS_RIGHTBUTTON)) Local $idLabel2 = GUICtrlCreateCheckbox("", 33, 60, 13, 20) toxrocks 1 Link to comment Share on other sites More sharing options...
Nine Posted February 19, 2020 Share Posted February 19, 2020 If you have multiple checkboxes back to back, you will need to do something like this : #include <GUIConstants.au3> GUICreate ("") Local $Checkbox1 = GUICtrlCreatePic("UnCheck.bmp", 20, 60, 14, 14) Local $Checkbox2 = GUICtrlCreatePic("UnCheck.bmp", 34, 60, 14, 14) Local $bCheck1 = False, $bCheck2 = False, $iMsg GUISetState () While 1 $iMsg = GUIGetMsg () Switch $iMsg Case $GUI_EVENT_CLOSE ExitLoop Case $Checkbox1 GUICtrlSetImage ($Checkbox1, $bCheck1 ? "UnCheck.bmp" : "Check.bmp") $bCheck1 = Not $bCheck1 Case $Checkbox2 GUICtrlSetImage ($Checkbox2, $bCheck2 ? "UnCheck.bmp" : "Check.bmp") $bCheck2 = Not $bCheck2 EndSwitch WEnd There is easy ways to optimized this code, it is just an example. I included the bmp that I used. CheckBox.zip argumentum and toxrocks 2 “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
toxrocks Posted February 20, 2020 Author Share Posted February 20, 2020 Thank you very much for the information 👍 Link to comment Share on other sites More sharing options...
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