I don't know what you do but there is probably something deeply wrong if you really need such a mechanism. I remember that even the drawing methods try to trigger the initialization if necessary.
The problem is that the (onscreen) canvas can't become realized when its parent isn't visible.