Author Topic: Refixed wxWidget Patch: menu items with icon not correctly aligned (since wx263)  (Read 35454 times)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
The wxWidgets people have not done any thing yet, so I am starting work on the patch submission process.
I am looking at the wxWidgets sample going to try to compile and verify problem exists with ownerdrw sample. If anyone has a better sample to demo the bug please email me which one is better. Tim S

The menu sample in folder samples\menu shows the problem when I compile menu.cpp using Code::Blocks. Now I have to verify the problem exists using the makefile.gcc and that it is fixed with the patch applied.
Progress is being made on the patch submission. Note, I am using CVS Head for all of this testing.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Uploaded Patch to wxWidgets
  http://sourceforge.net/tracker/index.php?func=detail&aid=1626428&group_id=9863&atid=309863
Bug reported in:
  http://sourceforge.net/tracker/index.php?func=detail&aid=1626424&group_id=9863&atid=109863

Tim S

Edit: They rejected my patch, I think they rejected it too quick to have really looked at the issue.
« Last Edit: January 04, 2007, 11:15:47 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
I found a flaw in my patch that I am working to fix.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
great Tim  :D

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
It seems that you're patch is rejected....
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Someone applied it after they rejected it, by about a week.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
I see, probably rejected because it was incomplete (I think)
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
I see, probably rejected because it was incomplete (I think)

Actually it was a valid reason to reject (They said to remove the fix, by applying my patch, for something else would result in some bug returning) but I asked it to be applied to CVS head so someone would find out what it breaks, I just assumed it would be someone other than me that would get bitten by the breakage.

Tim S 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
I am testing my back port of the wxWidgets 2.8.1+ code to fix the issue on the 2.6 branch.
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
I have uploaded my back port of how this problem was fixed in CVS head. The fix is patch 1637808 which updates the file menu.cpp. I would apply the patch 1637804  before doing this patch because menu uses code in the file ownerdrw.cpp.

Tim S

[ 1637808 ] MSW: menu.cpp backport to 2.6_BRANCH from cvs head
http://sourceforge.net/tracker/index.php?func=detail&aid=1637808&group_id=9863&atid=309863

[ 1637804 ] MSW: ownerdrw.cpp backport to 2.6_BRANCH from cvs head
http://sourceforge.net/tracker/index.php?func=detail&aid=1637804&group_id=9863&atid=309863

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
these are based on the wx guys solution to the problem. Since I once tried an earlier attempt of you (graying out of icons), but then th first letter could duplicated. Is this now a new way. Just to be sure, I don't try out twice the same ;-)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Yes, this one does not double the first letters.

All my testing was with both of these patches applied.

Tim S

Edit: Before i was testing each patch by itself and discovered an problem of double the first letters happened when both patches where applied. This was because the alignment patch had code issues.



« Last Edit: January 20, 2007, 03:23:41 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
I have build  new wx dll by applying these 2 patches on the wx263p2 code and have tested with revision 3295 (rather old !!!). these are the results :
 - menus (with or without) icons alligned correctly
 - icons grayed out  in the menu as they should be
 - 90% of the icons are gone (due to keybinder)

updating my CB now to the latest revision, will adjust this post with the new results.
[EDIT : test finished]
with the latest svn revision 3516 : all is OK (all icons present) !!   :D :D :D
« Last Edit: January 20, 2007, 03:51:01 pm by killerbot »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
I have build  new wx dll by applying these 2 patches on the wx263p2 code and have tested with revision 3295 (rather old !!!). these are the results :
 - menus (with or without) icons alligned correctly
 - icons grayed out  in the menu as they should be
 - 90% of the icons are gone (due to keybinder)

updating my CB now to the latest revision, will adjust this post with the new results.

I think you'll find that TimS's fix to keybinder to match his wxWidgets fixes occured in SVN 3443.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
@Tim : did the wx guys already fix the issue that relates to our problem where the replace button on the toolbar in windows being incorrect and showing the find button ??