Controls not working in wxMAC but work in wxMSW - HELP!!! 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
cd_hodges
Earned some good credits
Earned some good credits
Posts: 145
Joined: Thu Feb 03, 2005 4:46 pm

Controls not working in wxMAC but work in wxMSW - HELP!!!

Post by cd_hodges » Fri Aug 12, 2005 12:51 pm

Hopefully someone has seen this before: I have a cross-platform application I'm building (Windows/MAC) and I'm finding some very quirky behavior in the Mac version.

For example I have a dialog that allows the user to enter their "profile" name, address, city, state, zip etc...

Code: Select all

_statePrimary = new wxComboBox(_addrPanelPrimary, ID__STATEPRIMARY, wxT(""),wxPoint(186,63), wxSize(50,25),0,NULL,wxCB_SORT|wxCB_READONLY);

//This utility method populates the combobox with a list of states
populateStateList((wxControlWithItems*)_statePrimary);
In wxMSW this works great. I can select something from the combobox, the list of states pop up with no problem at all. Under the MAC version the combobox selection button don't even WORK!. Its as if they were disabled.

First attempted workaround

I then thought that maybe the problem is that I have created the combobox with the read-only flag. So I removed it, recompiled and no change.

Here's what I'm using:

wxMAC version 2.6.1 compiled in release mode
OS X Tiger 10.4.2
XCode 2.1 w/ GCC 4.0

thanks,

Chris Hodges

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Fri Aug 12, 2005 3:59 pm

Try using wxDefaultSize instead of a specific size. Why are you using absolute positioning and sizing rather than sizers?

cd_hodges
Earned some good credits
Earned some good credits
Posts: 145
Joined: Thu Feb 03, 2005 4:46 pm

Post by cd_hodges » Fri Aug 12, 2005 6:56 pm

That did it. thanks for your help. And yeah you're right I will be delving into using sizers better than I have so far.


Chris

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Sat Aug 13, 2005 5:25 am

Hi, again it would be great if you could accept my answer instead of your "thank you" reply to me. :) Moderator?

User avatar
Ryan Norton
Moderator
Moderator
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Post by Ryan Norton » Sun Aug 14, 2005 1:23 am

KevinHock wrote:Hi, again it would be great if you could accept my answer instead of your "thank you" reply to me. :) Moderator?
Currently with the system we can only assign a post as answered - we can't change it :\
[Mostly retired moderator, still check in to clean up some stuff]

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Sun Aug 14, 2005 3:42 am

This "unaccept" feature must be really well hidden and not very well known. Jorg managed to fix this same issue in another thread: http://forums.wxwidgets.org/viewtopic.php?t=3555

Or, maybe that's an admin feature rather than a moderator feature?

User avatar
Ryan Norton
Moderator
Moderator
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Post by Ryan Norton » Sun Aug 14, 2005 4:08 am

KevinHock wrote:Or, maybe that's an admin feature rather than a moderator feature?
OK, thanks. It just functions a bit differently then expected. I went ahead and fixed this thread too.
[Mostly retired moderator, still check in to clean up some stuff]

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Sun Aug 14, 2005 4:08 am

Thanks Ryan! :)

Post Reply