12-03-2009 01:52 PM
On another thread a minute ago I saw a reference to the fact that the Foreground and Background color of a Decoration can bechnaged using a property node....
Hummer1
12-03-2009 02:04 PM
Hummer
When I place a decoration on my Front Panel an then flip to
the block diagram, there is no object and hence no way
of creating a property node.
12-03-2009 02:04 PM
frameless picture over frameless picture then.
Cludge?
If it ain't built in you have to get creative.
Ben
12-03-2009 02:15 PM - edited 12-03-2009 02:15 PM
12-03-2009 02:15 PM
I think it went something like this .... This vi... reference then per this thread...use the colors/FG or Colors BG to set the color.
http://forums.ni.com/ni/board/message?board.id=170&message.id=408888&query.id=344748#M408888
Hummer1
12-03-2009 02:20 PM - edited 12-03-2009 02:21 PM
Hi Hummer,
Yes that will work as well. The only complicatin with decorations is you can't right clcik and craete a porperty node or even name them. So we have to resort to which index for that decoration which is not to complicated unless you have more than one decoration and by the way their order is determined by there drop on the FP order and it someting get deleted then indexes shift so...
Tim's color box idea is good.
Ben
12-03-2009 02:22 PM
Pickey...Pickey...
If it was easy we would all work for NI.
Hummer1
12-03-2009 02:33 PM
12-03-2009 02:40 PM
Hummer & Ben
I my application I have from 1 to 24 picture controls that get moved, resized, content changed
and hidden or shown. Would I be able the do these operation with method?
12-03-2009 02:41 PM
Darin.K wrote:
What I am about to suggest may be too radical for your use, but it comes from years of delving into the inner workings of the Picture Indicator along with an in-depth knowledge of property nodes, scripting and Xcontrols. Now that you are prepared, I suggest that you draw a rectangle around the perimeter of your picture and use the color of your choice.
That was one of the other ideas I had but held my hand since it would complicate the draw. Performance wise that is about the best approach since there is no overlap of objects.
Ben