Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: PaulS on March 16, 2008, 08:15:27 pm

Title: wxSmith - Extra code for a wxMenuItem
Post by: PaulS 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?
Title: Re: wxSmith - Extra code for a wxMenuItem
Post by: byo 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