Another thing to try out, how much space does your widget have inside its parent? I suggest setting up a brightly coloured background with SetBackgroundColour() for the widget upon construction, to see how big it is at runtime.