Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to I get pull-down menus to work nicely in my wxToolBar?

menus Nicely pull-down
0
0 Posted

How to I get pull-down menus to work nicely in my wxToolBar?

0
0

Use my handy “wxMenuToolBar” class. Q: But I want to make the little down arrow a part of the actual button, so that it highlights when you mouse over it. Sorry, but you can’t. As far as I can tell, standard toolbar buttons are fixed in both width and height. You can’t create a toolbar button which is twice as wide as the others. So the alternative is to put an actual wxBitmapButton on the toolbar, as a control, right? But, unfortunately, it won’t behave as a normal toolbar button. It won’t highlight in response to a mouse over in the same way. You might be able to fake it out (with multiple images, and then test for mouse-over and change the image to one which has the box drawn around it), but unfortunately this wouldn’t appear the same on all of the different platforms. On Macintosh, especially, it would look silly. So, it’s best just to leave all of the toolbar buttons the same size. If you want, you can put a little down triangle inside the bitmap button, but only if the button sta

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123