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?