cancel
Showing results for 
Search instead for 
Did you mean: 

u0131nsert a Label in the next line

Former Member
0 Kudos

Hi all,

how can İ ınsert a Label (WebDynpro Element) in the next line. İt will be placed always

in the same line near an existing element. İ would like place it in the next line.

Please notice İ am inside of a TransparentContainer.

How does it work ?

Regarsds

erdem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For TransparentContainer properties edit following properties,

layout="Grid Layout"

colCount=1

then each UI element you add come in next line.

Regards,

ramesh

Answers (1)

Answers (1)

vmadhuvarshi_
Contributor
0 Kudos

erdem,

Set layout of your TransparentContainer as MatrixLayout at design time or run time. Assign MatrixHeadData value to LayoutData property of label dynamically with this code.


	IWDTransparentContainer root = (IWDTransparentContainer)view.getRootElement(); 
       root.createLayout(IWDMatrixLayout.class)
       IWDLabel lb1 = view.createElement(IWDLabel.class, "label");
       lb1.setText("Up");
	IWDMatrixHeadData mathead = lb1.createLayoutData(IWDMatrixHeadData.class);
	root.addChild(lb1);

Hope this helps.

Vishwas.