Author Topic: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!  (Read 3874 times)

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Hello,
I have compiled the latest SVN C::B using wxWidgets v3.1.1, everything went OK except the toolbar is not drawing properly, and has transparent background.

also the SVN version is displayed as 0 instead of 11459 in the about box.

Could anyone tell me how to resolve this issue!

Thank you.
« Last Edit: September 09, 2018, 10:10:00 pm by tomay3000 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B Revision 11459, Menu bar is not drawing properly. it has transparency!
« Reply #1 on: September 09, 2018, 08:22:46 pm »
Are you talking about the toolbars?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #2 on: September 09, 2018, 10:11:01 pm »
Sorry  :-[
Yes I am talking about the toolbars, and I corrected my question.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #3 on: September 09, 2018, 10:22:28 pm »
Can you try to build against wx master?
If you search their history you'll see this recent commit: https://github.com/wxWidgets/wxWidgets/commit /ce903da7983be5dbb658f86ba89b5664413ce405
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #4 on: September 09, 2018, 11:10:30 pm »
I don't have wx master. I am currently waiting for wx 3.1.2 release (it could take longer I know).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #5 on: September 09, 2018, 11:39:54 pm »
git clone .../wxwidgets.git; build; install; rebuild cb. It is not that hard.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #6 on: September 10, 2018, 01:10:23 am »
Thanks for the hint, and the solution also.
The thing is I prefer the LAZY way  ;D

I have managed to subclass wxAuiManager in C::B code itself say: wxAuiManagerEx and overridden OnPaint and did the fixes without the need to rebuild wx.
I had to wait hours and hours to build wx, with all the configurations (debug, release, monolithic, static, shared, ...etc). because I have a slow computer.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: C::B Revision 11459, Toolbar is not drawing properly. it has transparency!
« Reply #7 on: September 10, 2018, 04:26:41 pm »
A known bug which is fixed in wx trunk, we have already discussed here: toolbar bottom edge is not shown corectly under C::B build with wx git master
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.