Win10 wxChoice becomes invisible after ->SetSelection(idx) Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
fidoriel
Earned a small fee
Earned a small fee
Posts: 12
Joined: Thu Apr 09, 2020 6:10 pm

Win10 wxChoice becomes invisible after ->SetSelection(idx)

Post by fidoriel »

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
User avatar
doublemax
Moderator
Moderator
Posts: 19115
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Win10 wxChoice becomes invisible after ->SetSelection(idx)

Post by doublemax »

I can't reproduce this in the "widgets" sample that comes with wxWidgets. Can you try that?
Use the source, Luke!
fidoriel
Earned a small fee
Earned a small fee
Posts: 12
Joined: Thu Apr 09, 2020 6:10 pm

Re: Win10 wxChoice becomes invisible after ->SetSelection(idx)

Post by fidoriel »

Thank you. I tried again and set the fit command after setting the index. That did the trick.
Post Reply