Subclassed Control
-
- Posts: 588
- Joined: Mon Nov 15, 2021 9:23 pm
Subclassed Control
Just how do you insert a control you've subclassed, given that the subclass won't appear in VMD's Controls pane? Say, for instance, you've written a class that extends Knob, or Toggle Button. How, exactly, do you insert such a control in the Design pane?
Cyberwerks Heavy Industries -- viewforum.php?f=76
Re: Subclassed Control
It would be fantastic if VMD was extensible in the way you are describing. It would make life a lot easier but I'm not holding my breath.
As things stand AFAIK the only way to go is to DIY programmatically or to use an existing component as a placeholder and then call something like a register method to store a reference to the placeholder in your custom object. You can then automatically call SetVisible( false ) on the placeholder if required. At least this way you can manipulate the x, y, w, h interactively.
As things stand AFAIK the only way to go is to DIY programmatically or to use an existing component as a placeholder and then call something like a register method to store a reference to the placeholder in your custom object. You can then automatically call SetVisible( false ) on the placeholder if required. At least this way you can manipulate the x, y, w, h interactively.
-
- Posts: 588
- Joined: Mon Nov 15, 2021 9:23 pm