Search found 20 matches

by Forbin
Sat Mar 11, 2017 12:17 am
Forum: Platform Related Issues
Topic: Mac 10.10+ Accessibility "Protocols" (NSAccessibility)
Replies: 4
Views: 178

Re: Mac 10.10+ Accessibility "Protocols" (NSAccessibility)

. Follow-up: For future readers... if you ever have this kind of problem with DontCreatePeer(), the answer is that you cannot skip that call. If you're going to replace the peer, you have to call this. Try the straightforward solution first, calling DontCreatePeer(), then either creating your own p...
by Forbin
Fri Feb 10, 2017 5:25 pm
Forum: Platform Related Issues
Topic: Mac 10.10+ Accessibility "Protocols" (NSAccessibility)
Replies: 4
Views: 178

Re: Mac 10.10+ Accessibility "Protocols" (NSAccessibility)

@OneEyeMan: I assume you mean "in wxWidgets" since OSX seems to have a whole, complicated, Objective-C based accessibility framework. @DoubleMax: That helped, but it turns out there are all sorts of other things that are necessary to "plug a control into" Mac accessibility. Progr...
by Forbin
Wed Feb 01, 2017 10:15 pm
Forum: Platform Related Issues
Topic: Mac 10.10+ Accessibility "Protocols" (NSAccessibility)
Replies: 4
Views: 178

Mac 10.10+ Accessibility "Protocols" (NSAccessibility)

Platform: Mac OSX 10.11.6,10.12 (and also maybe 10.9!) Compiler: Xcode 7.3.1 (7D1014) wxWidgets: OSX/cocoa 3.0.2 Colleagues: We're a shop of MS Windows programmers with only minimal Mac OSX knowledge... but we have an application we must field and support on both platforms. We also are required to ...
by Forbin
Wed Feb 01, 2017 9:34 pm
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]
Replies: 6
Views: 169

Re: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]

I have found a workaround to make the non-native combo box look native. I overrode the OnPaintEvent. Example: BEGIN_EVENT_TABLE(MyComboBoxCtrl, wxOwnerDrawnComboBox)#ifdef __WXMAC__    EVT_PAINT(MyComboBoxCtrl::OnPaintEvent)#endifEND_EVENT_TABLE()#ifdef __WXMAC__void MyComboBoxCtrl::OnPaintEvent(wxP...
by Forbin
Sun Jan 15, 2017 10:40 pm
Forum: C++ Development
Topic: wxComboBox - difference between GetStringSelection() and GetValue()
Replies: 1
Views: 82

wxComboBox - difference between GetStringSelection() and GetValue()

Forgive this somewhat noob-ish question, but what's the difference in behavior between the GetStringSelection() and GetValue() functions on wxComboBox? Does this vary by platform? (I've RTFM'ed -- the documentation wasn't really clear. And I've delved into the source code a bit, but the actual imple...
by Forbin
Fri Dec 23, 2016 11:55 pm
Forum: General Development
Topic: Why is wxComboBox not a wxComboCtrl?
Replies: 5
Views: 198

Re: Why is wxComboBox not a wxComboCtrl?

As far as the fact of the popup being virtually anything, I understood that, which is why I thought there should be a class just "North" of wxComboCtrl, and not something that drew together all three ancestors including wxItemContainer. What I was thinking was that even the popup can be ab...
by Forbin
Fri Dec 23, 2016 11:51 pm
Forum: General Development
Topic: Why is wxComboBox not a wxComboCtrl?
Replies: 5
Views: 198

Re: Why is wxComboBox not a wxComboCtrl?

BTW: This is a user forum, if you want to talk to the core wx developers, use https://groups.google.com/forum/#!forum/wx-users Thanks! That's useful to know. And thanks for the rest of the comments, too. If it's okay to continue the discussion, I think that would be valuable for refining my thought...
by Forbin
Fri Dec 23, 2016 4:05 am
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]
Replies: 6
Views: 169

Re: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]

Ugh, I was afraid of that. Thanks for the warning!!

What if I inherited directly from wxComboCtrl (meaning a bit of refactoring on my end)?
Does that look different on the Mac? The images in the online documentation imply it might.
by Forbin
Fri Dec 23, 2016 4:01 am
Forum: The Code Dump
Topic: wxComboBox and sharing a new lesson
Replies: 3
Views: 3345

Re: wxComboBox and sharing a new lesson

softport wrote:Soon you have your duck doing all sorts of tricks, and your neighbors aren't laughing at you anymore.


I'm late to the game, but swimming, quacking, flying ducks doing tricks for the neighbors is brilliant. It has been a long time since I've read such an amusing object-orientation analogy! :lol:
by Forbin
Fri Dec 23, 2016 3:50 am
Forum: General Development
Topic: Why is wxComboBox not a wxComboCtrl?
Replies: 5
Views: 198

Why is wxComboBox not a wxComboCtrl?

This question occurred to me when designing and building a new feature for some commercial software. "Why is wxComboBox not a wxComboCtrl?" Background info: I needed our application to check a setting in a configuration file, and if the setting was off , the code in one place would continu...
by Forbin
Fri Dec 23, 2016 12:01 am
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]
Replies: 6
Views: 169

Re: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]

Yes, I saw those and have been playing around with them. I'd like to avoid setting a bitmap if possible because that makes it more difficult to integrate with OS-native theming (coloring). But if I don't find a better way, and if it gets me where I need to go without me having to rewrite my subclass...
by Forbin
Thu Dec 22, 2016 8:57 pm
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - change button background? [SOLVED]
Replies: 6
Views: 169

Mac wxOwnerDrawnComboBox - change button background? [SOLVED]

Platform: Mac OSX 10.11.6 and 10.12 Compiler: Xcode 7.3.1 (7D1014) wxWidgets: OSX/cocoa 3.0.2 The wxOwnerDrawnComboBox on the Mac does not look the same as a wxComboBox: MacWrongCombo01.png Unfortunately, I'm required to preserve the same look & feel as a "regular" combo box, so I nee...
by Forbin
Thu Dec 22, 2016 6:15 pm
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - wxTextEntry doesn't get Peer [SOLVED]
Replies: 6
Views: 200

Re: Mac wxOwnerDrawnComboBox - wxTextEntry doesn't get Peer [SOLVED]

That will take a little research on my part; I don't configure the library, it is built by a different team at my employer and used by multiple teams here. So I will need to pick this up later (which rankles me a bit, because I'm a big believer in the principle of "the way you pay for the help ...
by Forbin
Wed Dec 21, 2016 8:22 pm
Forum: Component Writing
Topic: Extending wxComboBox - thin separator line between items
Replies: 6
Views: 553

Re: Extending wxComboBox - thin separator line between items

I ended up using wxOwnerDrawnComboBox and just extending the text list class within.
Thanks for the help and advice!
by Forbin
Tue Dec 20, 2016 7:46 pm
Forum: Platform Related Issues
Topic: Mac wxOwnerDrawnComboBox - wxTextEntry doesn't get Peer [SOLVED]
Replies: 6
Views: 200

Re: Mac wxOwnerDrawnComboBox - wxTextEntry doesn't get Peer [SOLVED]

How should I go about recommending this fix to the wxWidgets maintainers?

Go to advanced search