Subclassed Control

Post Reply
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Subclassed Control

Post by UrbanCyborg »

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
ColinP
Posts: 939
Joined: Mon Aug 03, 2020 7:46 pm

Re: Subclassed Control

Post by ColinP »

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.
UrbanCyborg
Posts: 588
Joined: Mon Nov 15, 2021 9:23 pm

Re: Subclassed Control

Post by UrbanCyborg »

Ouch.
Cyberwerks Heavy Industries -- viewforum.php?f=76
ColinP
Posts: 939
Joined: Mon Aug 03, 2020 7:46 pm

Re: Subclassed Control

Post by ColinP »

Yeah.

I mean I could be wrong but I don't think so.
Post Reply

Return to “Module Designer”