mutleey Posted 12 hours ago Posted 12 hours ago Hello everyone, I'm trying to remove (deactivate) the frame that is on the combobox button, I can even start the GUI without it but when selecting a value in the control it reappears as in the image where the arrow points, how can I completely remove this box? #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <ComboConstants.au3> Local $hGUI = GUICreate("COMBOBOX", 500, 500) GUISetBkColor(0xE9E6DF) Local $idComboBox = GUICtrlCreateCombo("Item 1", 100, 200, 260, 20, $CBS_DROPDOWNLIST) GUICtrlSetFont(-1, 18, 700, 0, "Segoe UI", 4) GUICtrlSetData($idComboBox, "COMBOBOX|COMBOBOX1|COMBOBOX2|COMBOBOX3", "COMBOBOX") GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI)
Solution WildByDesign Posted 12 hours ago Solution Posted 12 hours ago GUICtrlSendMsg($idComboBox, $WM_CHANGEUISTATE, 65537, 0) Try this. argumentum and mutleey 2
mutleey Posted 12 hours ago Author Posted 12 hours ago 35 minutes ago, WildByDesign said: GUICtrlSendMsg($idComboBox, $WM_CHANGEUISTATE, 65537, 0) Try this. thanks WildByDesign, it worked perfectly! WildByDesign 1
argumentum Posted 12 hours ago Posted 12 hours ago #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <ComboConstants.au3> Local $hGUI = GUICreate("COMBOBOX", 500, 500) GUISetBkColor(0xE9E6DF) Local $idBttnFocus = GUICtrlCreateButton("=P", -20, -20, 5, 5) ; my trick Local $idComboBox = GUICtrlCreateCombo("Item 1", 100, 200, 260, 20, $CBS_DROPDOWNLIST) GUICtrlSetFont(-1, 18, 700, 0, "Segoe UI", 4) GUICtrlSetData($idComboBox, "COMBOBOX|COMBOBOX1|COMBOBOX2|COMBOBOX3", "COMBOBOX") ; WildByDesign ;~ Global Const $WM_CHANGEUISTATE = 0x0127 ;~ GUICtrlSendMsg($idComboBox, $WM_CHANGEUISTATE, 65537, 0) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI) ..am a bit late but, this is what I use. WildByDesign and mutleey 2 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
mutleey Posted 12 hours ago Author Posted 12 hours ago A very good trick too argumentum. argumentum 1
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