Kirix Support Forums

wxAuiToolbar check and radio issues

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

wxAuiToolbar check and radio issues

Postby jacmoe on Sun Feb 22, 2009 7:58 am

Hi!
First of all: thank you for an excellent library! :)

However:
Why is wxITEM_RADIO not supported in a wxAuiToolBar?
And why is wxITEM_CHECK buttons not showed in the overflow dropdown list?

I can get around the first problem by setting all items in a radio group to wxITEM_CHECK, and then manually check/uncheck buttons in a handler. That's tedious, but I suppose it works OK.
I tried with a regular wxToolBar, but it flickers like mad. The wxAuiToolBar doesn't flicker at all. So I'd rather use that. :wink:
I am surprised that no-one else seems to be having this issue. (Besides the two on wxWidgets forum, whose topics are left unanswered).

I hope that your reply would be: We will fix it. :)
But, at the very least I'd like to hear why it is the way it is. :wink:

By the way: This is on Windows Vista. And wxWidgets 2.9.0 (SVN) Haven't run it on Linux, yet.
jacmoe
Registered User
 
Posts: 5
Joined: Sun Feb 22, 2009 7:48 am

Re: wxAuiToolbar check and radio issues

Postby Ben on Mon Feb 23, 2009 7:03 am

Hi,

The reason that wxITEM_RADIO doesn't work is that it's not implemented yet. The next release of wx is happening in a matter of a few days, which means that I don't have the time to implement it by the next release.

Would you consider implementing it and sending a patch? If so, we can get this all squared away for the next 2.8.10 and 2.9.0. If not, just let me know. I can't imagine that the implementation would be too hard.

Ben
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Re: wxAuiToolbar check and radio issues

Postby jacmoe on Mon Mar 16, 2009 5:15 am

Sorry about the long delay in answering - for some reason I wasn't notified. :(

Thanks for your answer - I'll see what I can do, when and if I get some time.
I really need this feature, so it would probably be easier for me to fix it, than trying to kludge around the issue.
Well, we'll see. :)
jacmoe
Registered User
 
Posts: 5
Joined: Sun Feb 22, 2009 7:48 am

Re: wxAuiToolbar check and radio issues

Postby jacmoe on Tue Mar 17, 2009 5:20 am

I surprised myself, and actually did it. :D

Was a small change, and since it's in auibar.cpp, it's not touching the interface at all.

I upload it here.

Do you want me to upload it to a tracker somewhere?
Maybe on wxWidgets?

Cheers! :)

radio_aui.zip
(959 Bytes) Downloaded 1019 times
jacmoe
Registered User
 
Posts: 5
Joined: Sun Feb 22, 2009 7:48 am

Re: wxAuiToolbar check and radio issues

Postby jacmoe on Tue Mar 17, 2009 6:48 am

I posted a ticket @ wxWidgets trac:
http://trac.wxwidgets.org/ticket/10602
:wink:
jacmoe
Registered User
 
Posts: 5
Joined: Sun Feb 22, 2009 7:48 am

Re: wxAuiToolbar check and radio issues

Postby jacmoe on Fri Mar 20, 2009 4:23 am

Thanks for applying my patch! :)
jacmoe
Registered User
 
Posts: 5
Joined: Sun Feb 22, 2009 7:48 am

Return to wxAUI Questions, Thoughts & Feedback