Author Topic: Menu Icon Missing  (Read 5342 times)

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Menu Icon Missing
« on: April 02, 2007, 07:58:54 am »
Hi all,

There is a missing icon in dynamically created menu. Please look at the following screenshot for details.



It seems to be a stupid wx bug and is present in Windows only. This works fine in Linux.

After patching (I've not applied the patch in repo), you'll get the following screenshot which is the correct behaviour.



Can anyone confirm whether this is a known wx bug or not?  :?  I don't want to patch a properly working code.



According to me, the bug is in wxMenu::Remove function which is supposed to remove the menu without deleting associated object. But I'm not very sure.



BTW, please inform me if it has already been discussed previously. :)

Thanks & Regards,

Biplab
« Last Edit: April 02, 2007, 08:06:45 am by Biplab »
Be a part of the solution, not a part of the problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Menu Icon Missing
« Reply #1 on: April 12, 2007, 05:41:45 pm »
I don't see the icon with 2.8.3 and C::B with no patches on either one.
I am trying it with patches on C::B now, it still did not show the icon with my patches on C::B and wxW2.8.3.
Trying, 2.8 branch CVS and C::B with patches now,


Tim S
« Last Edit: April 12, 2007, 06:11:30 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Menu Icon Missing
« Reply #2 on: April 12, 2007, 05:49:07 pm »
Many thanks Tim for your reply. :)

If you wish, please apply the attached patch. It will fix the issue.

The strange thing is, the icon is available in Linux without any patch, which points that this could be a wx bug.

Please feel free to ask any doubts regarding my patch.

Thanks & Regards,

Biplab

[attachment deleted by admin]
Be a part of the solution, not a part of the problem.