LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output color message (text) to a message box (string)

Hi everyone..

Could anyone please teach me how to output color text in my demo program?

I want it to be displayed into a message box.

Please help and save it in Labview 6.02

Thanks,
keng
0 Kudos
Message 1 of 13
(4,507 Views)
hi,

try this.

(I didn't make any other changes to your vi except the property node for the message box)
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 13
(4,507 Views)
hi keng,

I have your vis modified to as the attached .llb

(Also, if you are having more UI, you may wanna consider using queue event etc.)

Cheers!

ian@ianfung.net
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 13
(4,507 Views)
Hi ian,

Thanks for your help on the VI.
Yes, it works fine as I wanted it to be.
I use it for my program on a scroll message box. But I go a problem.

If I click OK, it will display the BLUE message.
If I click Cancel, it will display RED message.
But what if I continuously or randomly click the OK and CANCEL buttons, the Last color message will overwrite the the previous one. I would like them to be separated coloured and update the scroll message box.

How can I do that?

Thanks again,
keng
0 Kudos
Message 4 of 13
(4,507 Views)
hi keng,

sorry but i just managed to read your update.
It's late now & my brain is not "functioning" now 😛

let me think about it. Meanwhile, would you mind using two separate message boxes?
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 13
(4,507 Views)
Hi Ian,
Thanks for your reply.
I am glad that you did look into my problem again.
Just to demonstrate of what I want to do, I have attached here a JPEG file for your viewing.

Other than that, I notice that there two functions in the message box properties, which are "Text selection start and Text Selection End". Do you know how to use it and does it do what I intend to do?

Thanks again,
keng
Download All
0 Kudos
Message 6 of 13
(4,507 Views)
I think it should be alright to have two separate message boxes, as long as, it will displayed and update the message onto the MAIN panel.

k
0 Kudos
Message 7 of 13
(4,507 Views)
hi

Jus for your info that I did look into these 2 property nodes (last nite).... not to discover anything yet... you may wanna try it first??

If 2 msg boxes is all right wiht you. All you need to do is to use a "Comparison>Select" to direct the message to OK/ Cancel message boxes respectively. (Also, you might wanna atdd a line of date/time string to increase tracability.

Sorry for not being able to provide u a demo.vi as I am really busy these days with my work.... hope you will get it done soon. If not, do feel free to drop me a note/ email at ian@ianfung.net

Cheers and have fun!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 8 of 13
(4,507 Views)
Instead of using a string indicator, one thing you use is a picture control to display your text. Or take each line of text and display it in a table/multicolumn listbox. You can control the text color of each cell separately. Format it so only one column is displayed, color the row separators transparent, hide the horizontal scrollbar and it'll look just like a string indicator.
0 Kudos
Message 9 of 13
(4,302 Views)

See the VI I posted in this thread [link removed; thread no longer available].



LabVIEW, C'est LabVIEW

0 Kudos
Message 10 of 13
(4,302 Views)