on 06-23-2006 6:15 AM
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
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 dont 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.