Gradient fill for non-rectangle shapes is allowed when enhanced graphics (wxGraphicsContext) is used only. Basic rectangles can be filled with a gradinet even in classic drawing mode. In both cases, overriding of virtual methods responsible for shape's drawing (as you mentioned above) is recommended way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to fill a wxSF shape with a gradient, but I am not sure of the best way of doing this.
or
If anyone has any suggestions they would be warmly appreciated
Gradient fill for non-rectangle shapes is allowed when enhanced graphics (wxGraphicsContext) is used only. Basic rectangles can be filled with a gradinet even in classic drawing mode. In both cases, overriding of virtual methods responsible for shape's drawing (as you mentioned above) is recommended way.
Thank you for taking the time to answer this, its good to know I am on the right way.