InsertTextBoxLine with different text colors

Hi all

I am upgrading an application using CVI2009 and I would like to use the InsertTextBoxLine function.

InsertTextBoxLine (int panelHandle, int controlID, int lineIndex, char text []);

I must say clearly two types of lines for the user, the lines of red text and green text, so that the user can easily see which line info is a good and that is a bad.

Does anyone know how to insert the line of text in a certain color?

Thanks in advance,

Unfortunately, the textbox control does not change the color of the text, and any other text, only part of its content attribute.

There are alternatives, you can use the simplest probably being the use of a ListBox instead: see the help for the ItemLable parameter in InsertListItem comand to figure how to get this. See also \userinf\listdelx.prj program example for an example of what you can get with this control.

You can also use a table, perhaps more flexible but somewhat more difficult to program with control.

Tags: NI Software

Similar Questions

  • different text color in the same line for staticText ScriptUI?

    is it possible to have different text color in the same line for staticText ScriptUI?

    for example, I don't want red color for the word 'RED' text below in the SAME line.

    var l is new window ('dialog', 'Sélection');.

    var s = w.add ('statictext', undefined, "It's a RED pen");
    w.Show ();

    Thank you!!

    Simple,

    var w = new Window ("dialog","Selection"),
         g = w.add('group'),
         s1 = g.add('statictext', undefined,"This is a"),
         s2 = g.add('statictext', undefined,"RED"),
         s3 = g.add('statictext', undefined,"pen");
    g.spacing = 4;
    s2.graphics.foregroundColor = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[1,0,0],  1);
    w.show();
    

    I'm sure that's the answer makes sense "only".

    Trevor

  • Make the same comp several times with different text

    Hello!

    I'm looking for a way to make my 100 + times with a different text in two layers. I thought batch replicate this model and then batch change text layers, but I've been Googling autour and found no solutions.

    I need is ready solution, just a direction on an approach I take to perform this task. Told me on another forum to ask here and there are a few scripts that are just what I need assistance excellent file as data. You could point me to them?

    Thank you!

    This is an old thread from Creative Cow that deals with a way to do what you want using a file text and Expressions:

    CreativeCOW

    There are also some commercial script tools that automate the process very well:

    CompsFromSpreadsheet 5 - aescripts + aeplugins - aescripts.com

    Templater - aescripts + aeplugins - Rig aescripts.com

  • Overprinting spot with white text color

    I have a problem that I have not faced many years and basically forgot to the solution. I have designed a work in color with white text on a green background, but the printer have now asked to provide the green like a spot with the "white" guy who comes out there. I guess that the white "knocks out" green but I don't see how to do this. I selected the type and set overprinting in the palette of colors but no - yes, you guessed it - it's now just a green. All suggestions welcome - I need it urgent that the printer needs the PDF separated this morning.

    Michael

    Set the fill color of the text as a hue of 0% of the task of green color.

  • different text color

    How can I change the color of a single piece of text without changing my basic settings?

    Ollie

    With CSS classes.

    .red {color: red}

    HTML:

    class = "red"> this text is red.

    It's normal paragraph and it's Red

    Nancy O.

  • Impossible to use two af:tables with different colors (skins)?

    Im trying to configure the Siebel self-service application and customize the counting. I have a few problems, because I need to show two af:tables on the same page, but with different colors. One with black background and white text (header and body) and the other with white background and black text. I tried to use styleClass: are, but the css settings defined for the table of the af are the substitution of those mentioned in the style sheets.

    Anyone with an idea how to solve this problem?

    Thank you
    / Jon-Erik

    Hello

    If the styleClass name is table1 then the skin selector would be something like

    .Table1 af | table

    mul afTable.af: table

    I don't see how this can be overloaded. If you hypothesis is that the style class reference must be to a definition of CSS on the page, then indeed, it does not. The styleClass name is an identifier of type named for the skin component and is used to describe more the component skin

    Frank

  • How can I change the beige tabs with white text to the text of the tabs beige with black (or another dark color)?

    Classic restoration changed by FF 29 tabs beige with black text on the tab active and beige with white text on other open tabs. The white text is not visible. How can I change the text in white with a darker color?
    If this cannot be done, is there a way to reinstall FF 29 with just the security updates (and not all the other stuff) so that I can keep my 28 FF settings? Thank you.

    1. Open the modules (Ctrl + Shift + A Manager; Mac: Command + shift + A), then the Extensions category.
    2. Beside the classical restaurant theme, click on the Options button.
    3. Click the custom colors tab, then the less than (active/hover/default) tab.
    4. Below (active) tab, check 'Text', then click on the color swatch and choose black.
    5. Click the tab (unread) / new tab.
    6. (Unread) tab, check 'Text', then click on the color swatch and choose black.
  • Why you do not have your products with different colors? compatible with the colors of the iPhone or the iPad? Example: Gold Earpods, silver, BLACK and Rose Gold.

    Why you do not have your products with different colors? compatible with the colors of the iPhone or the iPad? Example: Gold Earpods, silver, BLACK and Rose Gold.

    You say Apple your wishes on the link below.

    http://www.Apple.com/feedback/

  • Graph XY overlay multi field with different colors

    Hello

    I want to make a cyclic XY one track loop and plot the graph for each cycle in different colors.

    I want a field like XYgraph2 but with different colors and probably even without this line of tracing. How can I change my schema?

    Thank you for your time and your efforts.

    KOUYATÉ

    Try this.

  • Text prediction with different regional settings in Windows 7 - shows disabled in Korean

    prediction of title: original text with different regional settings in Windows 7

    Hello

    I have English as the main language and Korean as a language second.  Text prediction works very well with this configuration; However, if I change the regional settings (non-Unicode) in Korean, text prediction is disabled.

    There is no work around for this?

    Thank you.

    Michael

    Hello

    • Text prediction is only available in English, French, Italian, German and Spanish. To enable text prediction in a specific language, you must first install additional language files for that language. For more information, see install or change a display language.

    • Text prediction is not included in Windows 7 Home Basic Edition.

  • Desktop goes down with different COLOR SCREEN ERROR, PATTERNS of ERRORS

    My office always crashes (with different colors) at any time, it starts the stop then cut again, but still fact once again, and I also see a grounds checkerboards at the peak of the computer, videos and games, correct computer! TNX.

    My office is still blocking (with different colors) at any time, it starts the computer to stop then cut again, but don't always work again, and I also see a checkered patterns at the peak of the computer, videos and games , correct! TNX.

    Hello

    It is normally a sign of corrupt graphics drivers or graphics hardware fault.

    You should go to the website of your computer or the manufacturer of the graphics card > Search a drivers and download article > search your computer or your graphics card model number > your operating system > drivers for it: either video / graphic / Chipset (according to the wording it) > download and install the drivers.

    If that fixed it, it seems to me be a problem of graphic material.

    As it is a desktop, either Exchange your graphics card with a good.

    Or, if graphics card built-in, you will need to install a graphics card in a slot of the motherboard to see if this solves the problem.

    See you soon.

  • Draw text with different fronts in a RichTextField

    Hello

    Is it possible to use a rich text field to draw different text in different fonts. I can change the color of the fonts by the function

    graphics.setColor ();

    in the painting method but I can't change the font.

    Another thing... I want to create a line which contains several elements... like 2 bitmaps, 3 different texts, etc... I have manged to make horizontal use and vertical field managers... the problem is that it takes too long to make... and jerks... scrolling so I m using the paint function draw all these things in one control... but I can't seem to divide the text into two lines if the text exceeds the width of the screen... is it possible to do and does not affect performance.

    Sorry for the long post...

    Thank you

    Found! Field of ActiveRichText!

    Code following (not mine)

    compensates for the int [] = new int [] {0, 5, 12};
    Police fonts1 [] = new make [] {Font.getDefault (), Font.getDefault ()};
    int bg [] = new int [] {Color.BROWN, Color.WHITE};
    int fg [] = new int [] {Color.BLACK, Color.GREEN};
    Byte [] attributes = new byte [] {0, 1};

    mainScreen.add (new ActiveRichTextField ("Hello \nworld", offsets, attributes, fonts1, fg, bg, 0));

  • Displays a text ("sample application") Logo and Description ("this is a sample application") with different font size

    Hello


    I use the universal theme of apex 5.0 and tries to display logo text ("sample application") and description ("This is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - < span style = "" are-size: 3.8 rem; ' > Sample App </span > - < span style = "" Dimensions are: 1.8 rem; "> this is a sample application </span >" "

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    I tried to use the logo attribute, but what makes the whole logo & its description with the same size. I need size of different font for both, so it is unusable.

    Attribute logo - style = "" are-size: 3.8 rem; ""

    Really appreaciate help.

    Thank you

    Deepak

    DeepakJ wrote:

    I use the universal theme of apex 5.0 and tries to display the text of the logo ("sample application") and description ("this is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - application example - This is an example of application.

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    Cannot reproduce. Using the code above results in different format text as expected. (He looks terrible IMO)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    Including HTML tags in text in the 5.0/theme 42 APEX logos results in this behavior. I consider this as a bug as (a) it says nowhere that it is not possible to do so; (b) the text of the logo is not HTML - or attribute-escaped when used in the page.

    See How to avoid to show the logo on the navigation bar to get an explanation of the underlying cause and a workaround to allow the common use cases include the text and a picture in the logo. This particular solution is of no use here. The solution to this problem requires a custom with the theme the theme roller style sheet, which is the preferred way and support to customize and extend the universal theme.

    • Click the Thème Roller on the developer toolbar.
    • Expand the CSS custom section.
    • Add this style custom rule:
    .t-Header-logo a span {
      font-size: 3.8rem;
    }
    .t-Header-logo a span:after {
      font-size: 1.8rem;
      content: " - This is a sample application.";
    }
    
    • The page will automatically preview changes.
    • Click on record under and type a name for the style of custom theme.
    • Topic close Roller
    • I hope that decide that it is not a good idea and cancel the mods.
  • Change the text color with the eyedropper tool

    I've seen cc Photoshop tutorials where you can change the text color by using the eyedropper tool on the color swatch Panel. When the text is selected and the color swatch Panel is open. When I chose is which color I want out the color swatch Panel all them it does to change the foreground color and return to the soil box, why it changes the color of the text, as I have seen in tutorials?

    Any help would be appreciated.

    Thank you

    Rchjr

    When highlighted often is difficult to tell what color the text. You can work around this by doing the above, pressing ctrl-H or cmd - H on the keyboard and the highlight will be removed, but the text remains selected. Its exactly the same procedure that you use to make the mobile dotted lines disappear just leaving an active selection. Obviously the text tool must be still in use for all this to work with text.

  • Interactive report - with different colors column header

    Hi all

    I use the Application Express 4.0.2.00.07.

    Theme: 2 blue Builder

    I have the zoom before interactive reports in a page, in do I have to display each header of reports with different colors instead of having the same blue color given by theme for all reports.

    Also I need this color change of header for this page only, not for the entire application.

    can someone offer me please how to do this?

    Thank you for your help in advance.

    Kind regards

    Santini.

    Add a static region ID in each region report and include a stylesheet like the following in the HTML Header page:

    
    

    When the report 1, report 2, etc. are the static region ID.

Maybe you are looking for