on 01-26-2007 12:52 PM
Hi.
How to change the colour of the Textview component?
Regards
Bala
hi,
try out this code.
IWDTextView <Name>=(IWDTextView)view.createElement(IWDTextView.class, "<Name>");
<Name>.setText("Name");
<Name>.setDesign (WDTextViewDesign.HEADER2);<Name>.setSemanticColor(WDTextViewSemanticColor.DIMINISHED);
Regards,
gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balachandar,
For a text view, a simple method to change its appearance is to use its 2 properties:
Design: which allows you to change the font-size(style) of the text in the text view
and
SemanticColor: which allows you to change the color of the text.
(positive - green, negative - red, etc.)
And if you just want to display a title or so then you can use UI element CAPTION.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
AS per my understanding you can change the color of the Textview to red ..and also you can make some style of the text ...
or else you may need to use application specific themes.
giving below the blog that you can go through
/people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific
Regards
AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Context:
- TextColor (attribute, type=com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor)
Data binding:
TextView.semanticColor -> TextColor
Code:
wdContext.currentContextElement().setTextColor(WDTextViewSemanticColor.POSITIVE);
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balachandar,
You can change the color of the Text View by changing the property <b>semanticColor</b> to the required color.
Regards,
Jhansi
null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.