LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert tabulator into menu/text ring

Hello all,

 

I want to format the text in a text ring in a way, that it looks like there are two columns in the entries. The effect would be, that only the short text at the beginning of the entry is visible, when the menu is not shown. But the activated menu shows the full text with additional information. This is illustrated in the image below.

 

 

In this example i used "Courier New" for text Font, because it has fixed sizes for the characters, but preferrably I would like to use "Arial" which is a font with no fixed character size. But with this Font- Type I would have to use tabulators to create these two columns, like in Word. And the text ring is not able to display a tab- character in this way. Does anybody have a solution for this problem?

 

 

Greets, Dave
0 Kudos
Message 1 of 3
(2,331 Views)

Not directly, But...

 

You could trap a mousedown event on the control and put up your own "menu" which is really a two-column listbox on a separate VI. The row selected from the menu VI could be passed back to the main VI with a user event that would actually update the value that the user sees in the control.

 

This approach is more programming, but would give you a lot of control over what is displayed and how it is formatted.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,319 Views)

Hello Mike,

 

thank you for your reply. As a workaround I switch the Font, this works quite well. I attached a simple VI.

 

Thank you,

Greets, Dave
0 Kudos
Message 3 of 3
(2,308 Views)