Stefan Bender Posted December 2, 2022 Share Posted December 2, 2022 Dear developers, does anybody have an idea how to change the value of an enhanced pull-down menu in a VWDialog? I tried both GS_SelectChoice and VWPullDownMenuCtrl->SelectIndex, but neither worked. If I click on the menu, I can see that the correct item is selected (checkmark), but in the "closed" version of the pull-down menu the (redlined) area remains empty. A VIP user has submitted a bug because of this. Is there another function that makes the Enhanced pull-down menu draw itself correctly in closed state? Or maybe there is an "update/redraw" function for all controls that does the job? Thanks a lot for any help! Quote Link to comment
Hans Martin Kern Posted December 2, 2022 Share Posted December 2, 2022 Just off the top of my head - Did you supply a png for the "Keiner" option (even if it's a an empty png)? Quote Link to comment
JBenghiat Posted December 4, 2022 Share Posted December 4, 2022 Does it draw correctly if you manually change a value? Quote Link to comment
Stefan Bender Posted December 5, 2022 Author Share Posted December 5, 2022 Yes, an empty image is provided. And it does work if you change it manually. Quote Link to comment
Hans Martin Kern Posted December 5, 2022 Share Posted December 5, 2022 Just thinking out loud here: I assume you're passing in true for enhanced and showIconInMainWindow otherwise we wouldn't see the icons. Hmm. Are you using the markers to access the entries of the pulldown menu? Maybe there's something fishy there? Quote Link to comment
JBenghiat Posted December 5, 2022 Share Posted December 5, 2022 And just to make sure, after setting initial values, call: this->UpdateData(true); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.