Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67078

Retain display font format when appending a string

$
0
0

I am trying to emulate an old DOS program with VGA monitor that does exactly what the original poster requested::  Append substrings to a displayed string without loosing the font color format.  The problem is as soon as you perform the concatenate, you loose the font color format!.   The DOS program and VGA dispaly has a host of font color and background color options on a character by character basis which is what I am having diffuclty replicating in LV.

 

I can accomplish this by either embedding a format stirng into my front panel display sting or maintain a "a 2-D color array" that indicates the offset into the diaplay string where the colors are to change.  In either case I get unsatisfactory results  because once a few differnet color substrings get into the Diaplay string, the display flicker that occurs while the sting color updates is annoying and it really boggs down the program. 

 

Anybody figure out how to do this easily in LV?  How about an  RTF activeX control that can be embedded as my VGA monitor emulator? Any ideas? 

 

Here is the VI that sets alternating line colors based on the 2-D color array where values indicate the last number of the last character of a strng of INPUT (ODD) and OUPUT(EVEN) colors,  works fine if you dont care about performanc, but not nearly as well as an old VGA monitor!  Gets much more complicated if you dont have alternating color substirngs, then you'd probably want use the srting search which quickly becomes extremely slow.

.


Viewing all articles
Browse latest Browse all 67078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>