Jump to content


Photo
- - - - -

XControls selectability

xcontrols

  • Please log in to reply
2 replies to this topic

#1 mzu

mzu

    Very Active

  • Members
  • PipPipPip
  • 53 posts
  • Location:USA
  • Version:LabVIEW 2011
  • Since:1997

Posted 02 May 2012 - 04:58 PM

When (in edit mode) you click on the border of a regular control it becomes selected.Not so for all XControls I've seen or created so far. The only way I found to mimic the behavior is to use Control refnum from the container state cluster and set "selected" (Scripting enabled) property to true.
Questions:
1. Is it safe to do so, as I recollect there some synchronization related limitations on what you can do with this refnum.
2. Do I really have to enable scripting; am I missing some much easier way to do it?
rm -rf /mnt/windows

CLD


#2 Jon Kokott

Jon Kokott

    Very Active

  • Members
  • PipPipPip
  • 176 posts
  • Location:Milwaukee, WI
  • Version:LabVIEW 2010
  • Since:2006

Posted 02 May 2012 - 06:50 PM

The best way I've found is to click on the (open) FP Background, and Drag a selection box over/into the XControl. You don't have to select the whole thing, just some of it, it is kind of annoying though.
Certified LabVIEW Architect

#3 mzu

mzu

    Very Active

  • Members
  • PipPipPip
  • 53 posts
  • Location:USA
  • Version:LabVIEW 2011
  • Since:1997

Posted 02 May 2012 - 09:14 PM

it, it is kind of annoying though.

That is what I am talking about. The trick with property node -> Selected sort of works works but I there might be some hidden problems. At least none of the XControls that ship with LabVIEW do that.

Edited by mzu, 02 May 2012 - 09:14 PM.

rm -rf /mnt/windows

CLD