[quote=49345:@Dave S]I have a need to draw a control on to a picture object.
The problem is I need to do this from a function independant of any window that may have a similar control[/quote]
I’ve been think about that, too…
Let’s assume: I’d like to create a custom Canvas based Control, and I’d like to have a Checkbox drawn on it.
How can this be achieved? I obviously can’t place a Checkbox on the Canvas subclass. And since I don’t know where this custom Control is being used, I can’t reference a “control that is on a window”.
So how can this be done, if at all?
What might that be…? It seems there is some previous reply missing…
There is no Window if one creates a custom Canvas Subclass
One “workaround” I guess is to use a ContainerControl, put the Canvas on there (and place the Control(s) outside, such as you’ve described).
There’s really no way to have “just a Canvas subclass” draw Controls?
There is not. You cannot create a control on the fly. It must already be on the window or be part of a control set (one of which is already on the window).