Skip to Content
author's profile photo Former Member
Former Member

htmlb:textView

Hi All,

I'm using <htmlb:textView.. > tag inside a tabStrip control. when I change the color using textColor property, it is not displayed in the given color, instead it is always displaying in black only. The following code I'm using:

<htmlb:textView text = "<%= pqr_appl->sup_name %>"

textColor = "GREEN"

layout = "block"

design = "HEADER3" />

And also, can anybody pls let me know, how do I underline a text.

Thanks in advance

Raghav

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2006 at 05:33 AM

    Use this:

    <%

    data test type string.

    concatenate '<font color=red><u>' pqr_appl->sup_name '</u></font>' into test

    .%>

    <htmlb:textView text = "<%= test %>"

    layout = "block"

    design = "HEADER3" />

    cheers!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Hemendra

      Thank alot. It is working now. But I would like to know the reason why textColor property didn't work inside Tabstrip control. Let me know if possible.

      Once again thanks alot for your timely help

      Regards

      Raghav

  • Posted on Jun 23, 2006 at 11:57 AM

    Hi Raghav,

    I don't know about the textView inside the tabStrip but I tested the textView only and here is my analysis.

    It works on Classic design and Design2002. But it won't in Design2003 due to Unified Rendering reasons. In fact, until Design2003, the color was specified as an CSS attribute (<i>style="color:green;..."</i>) of the HTML tag.

    Have a look at method IF_BSP_ELEMENT~DO_AT_BEGINNING of class CL_HTMLB_TEXTVIEW. You will see this this part of code :

    ** DESIGN > 2002
      rc = me->delegated_begin( ).
      if rc <> co_not_delegated.
        return.
      endif.

    This is precisely why it does not work anymore.

    Best regards,

    Guillaume

    Message was edited by: Guillaume Garcia

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 29, 2006 at 06:05 PM

    Hi Raghav,

    I think there is color miss configuring.

    If you say "CRITICAL" instead of "RED" it will work.

    The text colors available for the textView element when using DESIGN2003 don’t seem to be documented.

    Note: you cannot specify a color (e.g. “RED” when using DESIGN2003)

    textColor = DEFAULT / DIMINISHED / POSITVE / NEGATIVE / CRITICAL / MARKED1 / MARKED2

    design = LABELSMALL / GROUPTITLE (besides the usual)

    Example:

    <htmlb:textView text = "TEST"

    textColor = "CRITICAL"

    design = "REFERENCE" />

    Cheers,

    Yan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.