Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: afb on April 26, 2007, 03:12:36 pm

Title: Mac OS X wxWidgets 2.8 issues
Post by: afb on April 26, 2007, 03:12:36 pm
Ongoing thread about switching from wxWidgets 2.6.3 to wxWidgets 2.8.3, for the wxMac build.
Major items might eventually get up filed as proper bug reports, if they can be isolated enough.
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on April 26, 2007, 03:14:14 pm
First up is a problem with the toolbars:

wxWidgets 2.6:
(http://www.algonet.se/~afb/wx/cb-toolbars-wx26.png)

wxWidgets 2.8:
(http://www.algonet.se/~afb/wx/cb-toolbars-wx28.png)

That is, all the menus are missing...
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: bnilsson on May 01, 2007, 04:42:19 pm
Another one here.
After building and launching CB3912, I got a number of wxWidgets Alerts, as shown below.
The last one came up at CB quit.
How can this be tracked down?
Is it wxWidgets itself or CB calls to wxWidgets?

[attachment deleted by admin]
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 04, 2007, 12:56:15 pm
After building and launching CB3912, I got a number of wxWidgets Alerts, as shown below.

Those alerts are normal when you run with wxWidgets compiled in debugging mode,
I've fixed the bitmap sizes and other stuff locally - using the patches from BerliOS.
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: Game_Ender on May 05, 2007, 04:26:12 pm
You mean they are normal "flaws" in CB right?  Shouldn't the program run completely clean with no debug mode assertions?
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 06, 2007, 08:37:45 pm
You mean they are normal "flaws" in CB right?
Yup.

Quote
Shouldn't the program run completely clean with no debug mode assertions?
Probably ?

Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: Game_Ender on May 08, 2007, 05:23:18 am
Makes mental note to develop against debug version of wxWidgets ;).

EDIT: Forgot "note"
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 09, 2007, 04:07:21 pm
Makes mental to develop against debug version of wxWidgets ;).

Yes, it can make you that way. :-)
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 14, 2007, 10:30:32 am

Here is an error at startup:
Code
../src/mac/carbon/toolbar.cpp(1218): assert "count == 3" failed in Realize(): Reference Count of native tool was not 3 after insertion

And there's also at shutdown:
Code
../src/mac/carbon/toolbar.cpp(643): assert "IsValidControlHandle(viewRef)" failed in ControlToolbarItemHandler().

Each appears four times, so I think it's related to the four missing toolbar widgets.
This was with wxWidgets 2.8.4-rc1, since wxWidgets 2.8.4-rc2 doesn't even compile.
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 14, 2007, 10:46:59 am
This wxWidgets bug seems related too: #1638728: Toolbar on a floating AUI pane (Mac) (http://sourceforge.net/tracker/index.php?func=detail&aid=1638728&group_id=9863&atid=109863)
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 14, 2007, 11:39:04 am
Toolbar works OK in wxWidgets 2.8.4 when you set wxMAC_USE_NATIVE_TOOLBAR=0:
(http://www.algonet.se/~afb/wx/cb-toolbars-wx28-nonnative.png)

(never mind the gradients outside the toolbars, those are just a side-effect of UNO (http://gui.interacto.net/))
Title: Re: Mac OS X wxWidgets 2.8 issues
Post by: afb on May 14, 2007, 03:58:35 pm
Also, maybe the large icons from 32x32 to 24x24 instead:

32x32: (current)
(http://www.algonet.se/~afb/wx/cb-toolbars-wx28-32x32.png)

24x24: (native)
(http://www.algonet.se/~afb/wx/cb-toolbars-wx28-24x24.png)

They look a little blurred, though, from the mandatory scaling.

16x16: (small)
(http://www.algonet.se/~afb/wx/cb-toolbars-wx28-16x16.png)