Author Topic: wxSmith - Extra code for a wxMenuItem  (Read 3068 times)

Offline PaulS

  • Multiple posting newcomer
  • *
  • Posts: 25
wxSmith - Extra code for a wxMenuItem
« on: March 16, 2008, 08:15:27 pm »
I used the extra code item to add a call to SetBackgroundColour to a MenuItem.  The call is generated AFTER the Append call and does not cjange the color (WindowsXP).  If I move the call ahead of the Append all is well.  Could you generate the extra code before the append to appease windows (or wxWidgets) or would that break other stuff?

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith - Extra code for a wxMenuItem
« Reply #1 on: March 16, 2008, 09:39:15 pm »
There shouldn't be a problem with the change. In fact it should be added before appending (that was the original placement so it must have changed occasionally).

Regards
  BYO