viSci Posted November 11, 2008 Report Posted November 11, 2008 Does anyone know if it is possible to programatically access a xcontrols label text property. I have looked far and wide but cannot seem to find out how it is stored. Thanks, Quote
LAVA 1.0 Content Posted November 11, 2008 Report Posted November 11, 2008 QUOTE (sachsm @ Nov 10 2008, 03:31 PM) Does anyone know if it is possible to programatically access a xcontrols label text property. I have looked far and wide but cannotseem to find out how it is stored. Thanks, Please pardon my ignorance (I don't do XControls every day) but I thought we had to explicitly code every method we wanted to use for an XControl. Ben Quote
viSci Posted November 11, 2008 Author Report Posted November 11, 2008 Yes, I would like to read the xcontrol's label from within the xcontrol event structure. My goal is to be able to allow the label to be modified at edit time and have the text label used as a basis for a Network Shared Variable data binding URL. Quote
Dan DeFriese Posted November 11, 2008 Report Posted November 11, 2008 QUOTE (sachsm @ Nov 10 2008, 02:51 PM) Yes, I would like to read the xcontrol's label from within the xcontrol event structure. My goal is to be able to allow the label to be modified at edit time and have the text labelused as a basis for a Network Shared Variable data binding URL. I haven't tried it, but if you can't programatically set the label text of a built in control I'd be suprised if this would be possible with an Xcontrol. Could you use the caption text instead? Quote
viSci Posted November 11, 2008 Author Report Posted November 11, 2008 A XControl has both a Label and a Caption but it is not apparant which control reference it is attached to. Perhaps there is a Hidden subpanel, hmmm... I will take a look and get back to this thread. Quote
LAVA 1.0 Content Posted November 12, 2008 Report Posted November 12, 2008 QUOTE (sachsm @ Nov 10 2008, 11:42 PM) A XControl has both a Label and a Caption but it is not apparant which control reference it is attached to. The Container State.Refnum cluster element in the Facade VI returns the reference to the control on the owning VI pane. More info in the wiki on http://wiki.lavag.org/XControl:Abilities:Facade_Ability_VI' rel='nofollow' title='LabVIEW Wiki article on XControl:Abilities:Facade_Ability_VI' alt='Wiki article on XControl:Abilities:Facade_Ability_VI' style="border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">XControl:Abilities:Facade_Ability_VI. Ton Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.