phileoseda
phileoseda

Reputation: 292

How to make wrap content push button for show label on Oracle Forms

Label on the push button is "Choose Something That Has a Long Name". But as you can see it does not fit. I want to make it wrap content somehow. ( can be in 2 rows) How can I do it?

Button

Button

Property Palette

Property Palette

Property Palette...

Property Palette...

Upvotes: 0

Views: 813

Answers (2)

Littlefoot
Littlefoot

Reputation: 143103

Create a PRE-FORM trigger and put something like this in there:

set_item_property('btn_so',label,'This is a very long label'||chr(10)||'which does not fit');

As you can resize the button (simply by dragging its resize handler on the canvas, you can adjust button's width & height so that that very long label fits.

Upvotes: 3

nightfox79
nightfox79

Reputation: 2129

You can do this by setting it dynamically with a CHR(10) or CHR(13) in between

Upvotes: 0

Related Questions