on 06-11-2008 11:34 AM
hi all,
Can any one please tell how to put our own fonts i.e
EX:Times new Roman and BOLD etc to the text that is written in the textview.
Hi
U cant apply ur own font to anything.U can only play with sap's
predefined values provided for design property of TextView or
Label.In order to play with this property at runtime u need to
create a context variable say ctx_design of type
com.sap.ide.webdynpro.uielementdefinitions.TextViewDesign
apply it to design property of ur UI element and can use
following code to change it at runtime.
wdContext.currentContextElement().setCtx_designWDTextViewDesign.STANDARD);
regards
Surender Dahiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
If you want to change the font of a Text View go to the property sheet there you will find a property called "design" . Change the design to required one, you can see the changes in the view while changing the design property.
You cannot apply the required fonts like Times new Roman apart from the available designs in design property.
Thanks & Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.