on 11-03-2008 5:00 AM
Hi All,
I am creating dynamic UI text control. Is there any way to access the text properties like text size, bold, underline etc.,?
Below is the code which I am using:
cl_wd_matrix_layout=>new_matrix_layout( container = lo_container ).
lo_container->set_width( value = '100%' ).
lo_caption = cl_wd_caption=>new_caption( text = 'Header1').
cl_wd_matrix_head_data=>new_matrix_head_data( element = lo_caption ).
lo_container->add_child( the_child = lo_caption ).
Thanks in advance.
Chandan
instead of caption I used text view, which solved my problem.
Thanks for the solution
Edited by: JakasHudga on Nov 3, 2008 10:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You cann't assign,check the properties of caption and methods in cl_wd_caption.
http://help.sap.com/saphelp_erp2005/helpdata/en/5d/ad884118aa1709e10000000a155106/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandan,
You cannot set properties like bold/underline for the caption ui element. You can get the standard/light/emphasized properties for the Label ui element by setting the Design property of the element. You have the corresponding SET_DESIGN method in CL_WD_LABEL.
You can also similarly set such properties using the Design property of the TextView ui element like:
emphasized/header1/header2/header3/header4/label/label_small/legend
Regards,
Uday/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.