cancel
Showing results for 
Search instead for 
Did you mean: 

Caption properties

Former Member
0 Kudos

Hi Community,

I'm using UI element Caption and now I got the problem that I can not set the height, width or size of the text in this caption (see HTML header object h1, h2, h3...).

Is this somehow possible? Regards, Robert.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Robert,

Yes you cant set the height, width or size of the text in the caption. As an alternative, you can use Text View UI Element. You can use the method

<textview element>.setDesign(WDTextViewDesign.<select the size>);

Hope this helps,

Thanks and Regards,

Vishnu Prasad Hegde

Former Member
0 Kudos

Hi,

I can not find the properties for the caption defining the height, width or size of its text.

There are no such entries under "Element properties of Caption". Can you tell me? Regards, Robert.

Former Member
0 Kudos

As said, you can find these properties at the IWDTextView, not the IWDCaption element.

If you want <H1> use


IWDTextView text = ...;
text.setDesign(WDTextViewDesign.HEADER1);

Available are <H1>..<H4>. Note also that IWDTextView cannot display an icon.

Armin