LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PhillipBrooks

XControls - Inherit the properties/methods of a base control

Status: Declined

National Instruments will not be implementing this idea. There is no further feature development planned for XControls.

Inspired by this idea... Changing the fill colour of thermometer according to the temperature

 

You want to customize the behavior of a LabVIEW control or indicator. The normal answer is to create an XControl. The problem is that you want to the XControl to have the same properties and methods as the base control. You have to recreate all the methods and properties yourself and then handle them all in your facade.

 

It would be nice to be able to create an XControl from a base control with all of it's properties and methods created for you. The you could then extend a base control instead of recreating one from scratch.


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

5 Comments
elset191
Active Participant
If I'm not mistaken, it does inherit all the properties and methods.  I've only made one XControl using the ActiveX 3D Surface, and when I right click to create Property Node it lists all of the default properties as well as my custom ones.
--
Tim Elsey
Certified LabVIEW Architect
TCPlomp
Trusted Enthusiast

It will only give back the properties which are valid for any control.

An XControl inherits from the Base Control class.

It would be very nice if you could inherit from a specific class.

It will mean that you have to select a control in the facade VI which is linked to the specific object.

 

I have once made a toolkit to inherit all the properties. However i am not sure it will even work correctly in all cases.

 

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Peter_B
Member

I've just searched a bit further and discovered the following tool written by Ton Plomp and posted to LAVA.  I'll report back once I try it out.

 

XControl Inheritance

 

>Right now I'm writing my first Xcontrol. I was amazed to see that they don't inherit the properties and methods from the specific control class selected for the Xcontrol.

>Has there been any update to this three year old problem?  With such a limitation I'm seriously considering not moving ahead with my Xcontrol since

>it will create a lot of extra work for me to re-write all the properties and methods I assumed would be exported.

>

>thanks

>Peter

Peter
X.
Trusted Enthusiast
Trusted Enthusiast

I am new to XControls, but I have received some interesting feedback from Aristos Queue (related to this very question applied to Graph controls) here.

Darren
Proven Zealot
Status changed to: Declined

National Instruments will not be implementing this idea. There is no further feature development planned for XControls.