LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you programmatically change a picture control frame/border

Solved!
Go to solution

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

 

 

0 Kudos
Message 11 of 28
(1,712 Views)

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.

 

0 Kudos
Message 12 of 28
(1,705 Views)

frameless picture over frameless picture then.

 

Cludge?

 

If it ain't built in you have to get creative.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 28
(1,705 Views)
frameless picture over color box control?  The color constant in the classic pallette does not have a border around it.
Message Edited by elset191 on 12-03-2009 02:15 PM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 14 of 28
(1,693 Views)

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

0 Kudos
Message 15 of 28
(1,690 Views)

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...

 

Smiley Very Happy

 

 

Tim's color box idea is good.

Ben

Message Edited by Ben on 12-03-2009 02:21 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 16 of 28
(1,680 Views)

Pickey...Pickey...

If it was easy we would all work for NI.

 

Hummer1

Message 17 of 28
(1,676 Views)
Solution
Accepted by Ben_01880
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.
0 Kudos
Message 18 of 28
(1,666 Views)

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?

 

 

0 Kudos
Message 19 of 28
(1,653 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 20 of 28
(1,649 Views)