08-16-2007 02:48 PM
Programmatic is not necessary (tho' it would be useful). Just an easier way to control the order while building the FP. Maybe something along the lines of the cluster reordering tool?
This comes from several months ago when I had to build a custom dial that had a center position as zero but went increasingly positive in both directions. The only way to do that is to have two dials, one with reversed numbers. Both had to have transparent backgrounds and a properly sized FP decoration provided the background for both. Actually it ended up as a Boolean that would change colors dependant upon the dial value. The customer also wanted other 'neat' things to happen like changing needle colors, movable markers, etc. In the final version there were three different dials and two boolean objects all in the same FP area. Getting all of them to appear in the 'correct' order was a challenge, to say the least.
02-10-2010 08:21 AM
Hi, some of you knows if it's possibleto use programmatically the distribute objects? as I'm doing my own VI's to dothe same and maybe isn't necessary...
Thanks,
Marc.
02-10-2010 11:48 AM
08-25-2010 04:43 PM
A very useful nugget.
Is there some way to tell which "layer" a front panel object is on? I have repeated "move backward" fifty times still never hit the bottom layer. I know I got "move to back" but layer information is EXTREMELY userful.
08-26-2010 02:33 AM
@wildcatherder wrote:
Is there some way to tell which "layer" a front panel object is on?
Not the last time I checked. I believe the request has been made and you can try looking in 2010 (you may need to activate scripting if it's defined as a scripting property), but I don't remember hearing anything about it.
There is one round-about way, though - the Selection List[] property returns the reference sorted in two levels - the first level is based on selections you made (i.e. if you select objects and then use Shift to select another group) and the second level (for reasons I can't fathom) is by reverse Z order. So, if you select all the objects on the FP (Ctrl+A) and use that property, you'll get the order.
You can also make the selection programmatically (there's a private Make Selection method), but then you would have to parse for nested controls. <vi.lib>\utility\traverseref.llb should have some useful VIs for that.
Also, note that you can't select while the VI is running, so you have to have it in edit mode and open a reference to it by name.