LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Method of sending format information of the character String Controls to the clipboard.

Solved!
Go to solution

Hello,
I want to send the format information of the character String Controls to the clipboard (RichTextBox).
Format information is font color, font size, font type.
It can not be done with the method which writes to the standard clipboard of LABVIEW.
Is there a way to send it from the prompt node of the String Controls to the clipboard (RichTextBox)?
I need your advice.

クリップボード(richtextbox)_02.png

0 Kudos
Message 1 of 5
(2,856 Views)
Solution
Accepted by KK-MAN

I don't know if this answers your question. But this might get you headed in the right direction. 

color.png

If you hover over the property node with the (help dialog) open it will reveal the .net class type that is required for those properties. Then you can use a .net constructor node to generate the necessary properties. (be sure to close the reference properly here (I left some open))

 

You probably want a 2015 snippet 😉

Example_VI1.png

Message 2 of 5
(2,769 Views)
Solution
Accepted by KK-MAN

The principle is good. Just be aware that the LabVIEW FontSize is in pixels while the .Net Font Size is in em.

 

https://www.w3schools.com/tags/ref_pxtoemconversion.asp

Rolf Kalbermatter
My Blog
Message 3 of 5
(2,762 Views)

Yea, I did overlook that. Thanks!

0 Kudos
Message 4 of 5
(2,759 Views)

Thank you for your detailed advice.

2015 Snippet too

0 Kudos
Message 5 of 5
(2,733 Views)