Is there an easy way to add text to a chain control / indicator and keep the colors

Hello

Bassically I want to add text to a chain control / indicator without losing the formatting of the previous text.

For a part of a program that I create, data will be transmitted to and from a serial device. I want to display this data in a chain control / indicator and change the color of the text of certain strings depending on data type (sent, received). Basically as a nice log window.

At the moment, I update the chain control / indicator by reading the text and concatenated with the new string. However, this method removes the colors of previous text :-(

Is it possible to add data to the control of the chain / indicator without losing the text previous formatting?

I started to create a sub vi who reads a text both character and adds a new element in an array (offset color and text), if the color is distinguished by the previous character. Only problem is it seems to be quite time CPU.

Thanks in advance,

Matt

MattB-5906 wrote:

Is it possible to add data to the control of the chain / indicator without losing the text previous formatting?

Actually, no. This means that you will have to use workarounds. Your workaround solution seems a bit involved. Basically, all you need to do is just to keep track of the pairs of end start/selection selection that must be colored in a table. Then just you loop in this table to color the text marked by the power positions.

An alternative is to use a different indicator. Rather than an indicator of the string, you can use a table with a column. You can then set the foreground color on a cell by cell basis, and add a new line (row) will not affect the coloration of the previous lines.

Tags: NI Software

Similar Questions

  • Is there a faster way to add text repeated in addition to the hand tool?

    Every day I receive several documents to edit and to each, there is a page where I enter the date 3 times. The file come with me so I can't do the thing in javascript, others spoke. I just go to tools, add text (date) and then use the hand for copy/paste tool. However, since for some reason hand tool that she pours just in the middle of the screen and I have to drag it to the area I need, I found it faster just to keep clicking and typing in the date I need.

    Whenever I do this, I keep thinking, "there must be a better way." Are there?

    With the help of Adobe Acrobat Pro

    There is no shortcut for this.

    A faster way may be to click and paste instead of paste and drag.

    1. right click on the page, then select "add text".

    2. click on the place where you want to enter.

    3. Paste (Ctrl/Cmd + V)

  • Is there an easier way to add shares to executives? (except via the Code Snippets)

    Hello world...

    Am yet to learn Flash and find out the best workflow etc. I find it a bit awkward to add shares to executives. The only way I can find to do it is to select the image and use a Code snippet. There must be a quicker way? for example

    1. move the playback cursor to desired in the montage image

    2. right click and select 'Add Actions to this framework' (if it exists)

    But it doesn't seem to be something as simple as that. If there is not already a code within this framework, there seems to be no simple way in the Actions panel or flyout menu to edit the current image As.

    Did I miss something?

    Let's say I want to add a code to frame (see screengrab) 23. I know that the line of code, I need, and I have 23 Frame selected - I do to add an entry for scene 1 | Actions: 23 in the Actions panel frame?

    Thank you

    Richard

    Capture.JPG

    1. Add a keyframe to your actionscript layer

    2 start typing your code in the Panel actions

  • Is there an easy way to add arrows to the drop-down list for the style Accordion widget?

    I am looking for a simple way to make a drop-down arrow on the Accordion widget. The arrow pointing down when it is open and point at the time down? See the attached screenshot example.

    screenshot.jpg

    You can use an arrow to label image where with the normal state the image of the arrow must be different from the current state.

    Thank you

    Sanjit

  • Is there an easy way of permutation of batch process chain?

    I create an IR time-lapse, and I need an easy/effective way to exchange the red/blue channels and do a few other things in Photoshop before transferring to Lightroom to finish the job. I know that you can batch for recalibration and whatnot, but it would really help if you could batch process basically everything that you have done in the history of an image in a set of 300 + and press 'go '. Anyone know if this is possible and how?

    Do an action that uses the channel mixer adjustment to apply the swap to channel, and then use the batch processing command to apply to your images folder.

  • Is there an easy way to find the area of a shape?

    I paint a picture of the spyder using partitions in an XML file. I use drawing methods to connect a bunch of points along certain rays. Once the shape is drawn, I would like to find the area. I could use trig and get the size of each triangular wedge of the shape, but I would steer clear of that if possible. Is there an easier way to do this?

    Thanks in advance

    because for the loops and hitTest() run if soon there is no reason to use a monte carlo method to compute the area of a stage object. Indeed, using Math.Random () and 1/4 of the for loops is probably longer than the calculation of the area exactly:

  • Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. Thank you!

    Is there an easy way to create "the mouse on the text, to display the image" without coding it? I want an image to appear only when you move to a line of text. I found the code for it but I want to find an easier way. I'm creating a home page with a list of text links. I want to design as well as in the overview of one of the text links, a corresponding image is displayed to the right of the page. I also need a default image to rest all the time unless one of the other links text is hovered over. Thank you!

    Try to use a Widget for Composition in the Adobe Muse Widgets Panel.

    I would like to start with a blank publication.

    Place your text in the button area.

    Place your image in the display area.

  • Is there an easy way to create a table of contents in an actual table?

    I checked the forums and google and all the examples to create a table of contents just shows that he is in a paragraph format. I tried this, and then by converting the text in a table, but whenever I update the table of contents it converts it to text. This is a minor annoyance but a big problem with the fact in this way is the table that is made is without header. (I tried to use two cell styles, a header and one for the body and their distribution inside the table style, but it don't seem to work converting the text.)

    wondering just if theres a easier way to do this and if im in the right direction? Thank you!

    IN CS6 passing

    Well, you can add the race with cell styles. The number of columns in the tables are there? If it is an odd number, it is possible to move the title to the Center lettreN with a tab character or two, but for the same count I don't see an option to merge cells in the header row.

  • Is there an easy way to create the breadcrumbs in Muse?

    I create a new site and I would like to add a few links of breadcrumb navigation, in addition to using the widget menu bar.

    Is there an easy way to build the navigation bar links? Or I just create it manually?

    No, right now it is not a widget that creates links from the navigation bar.

    For now, you will need to manually create text links on each page to create the navigation bar navigation.

  • Hi, is there an easy way to copy an entire site from the desktop to the version of the tablet version?

    Hi, is there an easy way to copy an entire site from the desktop to the version of the tablet version?

    It is not possible to duplicate content en masse. You can copy the page structure, backgrounds, and metadata when you initially create mobile sites. The content should be created from the ground up; Although you can copy and paste (or drag and drop) Office-Tablet pages page and rework. You can also use the content panel to create a synchronized text - the scale of the site, which will save you a lot of time.

    David

  • Is there an easy way to remove faces metadata?

    I won't get in my frustrations of moving from iPhoto to Photos, but there more with him a bunch of incorrectly marked faces. Is there an easy way to delete all the metadata of faces of all my photos so I can start over? Thank you

    None

    You can tell Apple that you need to be included in future releases - http://www.apple.com/feedback/photos.html

    (and of course the identification wrong iPhoto has nothing to do with the Photos)

    As for frustration - the solution is to take the time to learn how to use pictures - it's a new and different program that, like all new software, does not exactly work as pref = vious PHotos and software has a learning curve - until you take the time to learn how to use it you will continue to be frustrated because you will be with any new product tha tyou don't understand

    LN

  • Is there an easy way to reconnect the iPad Pro to my iPhone 6s longer hot spot?

    Whenever the iPad Pro 'locks', connecting to my iPhone 6s hottest spot goes down, I can understand.  No need to have the connection when not to use the iPad Pro.  The problem is that you have to go all the way back in the reconnection of the hotspot settings.  Is there an easier way?  I wish it would just automatically reconnect.

    Thank you

    My 2 Air iPad automatically connects when I unlock it to the lock screen. You ask to join networks disabled in the WiFi settings?

  • Is there an easy way for me to go back to the old format for Mazilla Firefox?

    I have problems with the new version of Mozilla Firefox. Is there an EASY way for me to go back to the old format?
    Thank you!
    JES
    PS Please, please... Be very specific about what to click on and where to go... I'm still learning about computers. Thanks again.

    I suggest you another go to Firefox 4.0 comfortable for you, and it would be
    be faster for changes that will bring back to 3.6.17 or at least a lot more and the changes you need to do, sooner or later, whether for Firefox 4, Firefox 5 or Firefox 6...

    You can make Firefox 4.0.1 resemble Firefox 3.6.17, paragraphs numbered 1 to 10 in the next topic difficulty Firefox 4.0 UI toolbar, problems (make Firefox 4.0 look like 3.6)

    If still not convinced of the next section on this page is performing Fx3 Fx4 or returning to the Fx3 (#backto3pt6)

  • Is there an easy way to get a Date/time string seconds?

    I have 2 strings of the format depending on whether I would like to convert in seconds (since 1900). I need this value to set the t0 in a field.

    Date: ' 30/06/2014 '.

    "Time: '16:06 ' 08."

    Is there a CVI function that will do this conversion for me? If not, is there an easy way to do it?

    Thank you!

    This code should do what you want:



    static time_t calt;
    struct Shared tm tm;
    public static char msg [64];
    public static int AA, mm, DD, hh, mn ss;

    strcpy (msg, ' 2014/06/30 16:06:08 ');

    Extract the date/time string component
    Scan (msg, "%d [x] %d [x] %d [x] %d [x] [x] %d %d", & mm, dd, and yy, & hh, & mn, &ss);)

    Transfer to a struct tm components
    TM.tm_hour = hh;
    TM.tm_min = mn;
    TM.tm_sec = ss;
    TM.tm_year = yy - 1900;
    TM.tm_mon = mm - 1;
    TM.tm_mday = dd;

    Obrtain calendar
    CALT = 0;
    CALT = mktime (&tm);)

  • Is there an easy way to view all the elements of the façade which are hidden in a pragmatic way?

    Hello

    There were some cases where the new indicator that I created was actually overlaps the other indicator which was hidden at the time of development.

    I knew only when the program is operating normally and the hidden indicator will appear on the front panel.

    It would be great if I can see all the elements of hidden façade while in development mode.

    Is there an easy way to do this or am I missing something?

    Thank you.

    Steve

    See here: http://forums.ni.com/t5/LabVIEW/Darren-s-Weekly-Nugget-08-14-2006/m-p/403788

    You can also choose to vote in favour of this idea: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Show-all-hidden-controls-and-indicators/idi-p/1113431

Maybe you are looking for