jpm Posted January 4, 2005 Posted January 4, 2005 Thanks I hope that one day this will be solved. For now I found workaround for the combo prob. Combo appears in dark grey only when I change selection, but this become normal light grey when change state! So at once after changing selection I just change combo's state to enabled and back. This works fine.<{POST_SNAPBACK}>I am not sure to understand can you a small script to show your workaroundThanks
Lazycat Posted January 4, 2005 Author Posted January 4, 2005 Code below. While making this I found that bug appearance caused by setting CBS_DROPDOWNLIST style. #include <GUIConstants.au3> Global $CB_SETCURSEL = 0x014E GUICreate("GUI", 530, 432) GUICtrlCreateTab (5,5, 480, 380) GUICtrlCreateTabItem("Main") $combo = GUICtrlCreateCombo("", 85, 175, 200, -1, $CBS_DROPDOWNLIST) GUICtrlSetData(-1, "Item 1|Item 2|Item 3") $button1 = GUICtrlCreateButton("Click to change combo selection", 85, 205) $button2 = GUICtrlCreateButton("Click to change combo selection (with workaround)", 85, 235) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) GUICtrlSetState($combo, $GUI_DISABLE) While 1 $iResult=GUIGetMsg() Select Case $iResult = $GUI_EVENT_CLOSE Exit Case $iResult = $button1 GUICtrlSendMsg($combo, $CB_SETCURSEL, 1, 0) Case $iResult = $button2 GUICtrlSendMsg($combo, $CB_SETCURSEL, 2, 0) GUICtrlSetState($combo, $GUI_ENABLE) GUICtrlSetState($combo, $GUI_DISABLE) Endselect Wend Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
jpm Posted January 4, 2005 Posted January 4, 2005 Code below. While making this I found that bug appearance caused by setting CBS_DROPDOWNLIST style.<{POST_SNAPBACK}>Great Lazycat I have more idea to think about
jpm Posted January 5, 2005 Posted January 5, 2005 @Lazycat If the problem just occur when using the GuiCtrlSendMsg I cannot do anything it is the script responsability to do whatever is needed If you use GuiCtrlSetData I can do something
Lazycat Posted January 5, 2005 Author Posted January 5, 2005 No more prob for me. I use both methods where they are more suitable, SendMsg a bit often, because it's simpler working with indexes. Anyway, I satisfied with current state and simple workaround. So if this state will not disturb other people and because solving this prob is not simple, I propose leave it as is. Thanks! Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
jpm Posted January 5, 2005 Posted January 5, 2005 No more prob for me. I use both methods where they are more suitable, SendMsg a bit often, because it's simpler working with indexes. Anyway, I satisfied with current state and simple workaround. So if this state will not disturb other people and because solving this prob is not simple, I propose leave it as is. Thanks!<{POST_SNAPBACK}>I did a modification to have the GuiCtrlSetData when selecting an existing item working.I will upload the modification to JonThanks for your help.
Lazycat Posted January 6, 2005 Author Posted January 6, 2005 Just great! Thanks! Waiting for update... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
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