cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic UI controls- Properties

0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

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

Former Member
0 Kudos

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

uday_gubbala2
Active Contributor
0 Kudos

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/