Jump to content

Painting bug?


Lazycat
 Share

Recommended Posts

Thanks :idiot: 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 workaround

Thanks :D

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 Jon

Thanks for your help. :idiot:

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...