Hello,
after calling choice->SetSelection(index); the wcChoice widget becomes invisible. After moving the cursor on the space where it should be it becomes visible again. This only happens on Windows. It cannot be that the index is wrong because after becoming visible, the correct string is selected. It also becomes visible if the frame size is changed through resizing.
TIA
fidoriel
Win10 wxChoice becomes invisible after ->SetSelection(idx) Topic is solved
Re: Win10 wxChoice becomes invisible after ->SetSelection(idx)
I can't reproduce this in the "widgets" sample that comes with wxWidgets. Can you try that?
Use the source, Luke!
Re: Win10 wxChoice becomes invisible after ->SetSelection(idx)
Thank you. I tried again and set the fit command after setting the index. That did the trick.