Home » Developer & Programmer » Forms » How to label a button from the next line in forms 6i.. (Windows Xp)
How to label a button from the next line in forms 6i.. [message #306535] Fri, 14 March 2008 10:34 Go to next message
sunny_ocp
Messages: 15
Registered: September 2007
Location: Pakistan
Junior Member

I have a push button, I want to write the name of it from the next line because its too long so how can we do it... I mean I think there's some coding or any thing else. Just if we want to label a button we take it properties and in the label properties we write its name but if the name is too long then it does not come from the next line..We have to maximize the button so the full name comes....How we can do this thing that the name comes from the next line....
Re: How to label a button from the next line in forms 6i.. [message #306538 is a reply to message #306535] Fri, 14 March 2008 10:59 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Code it! In the WHEN-NEW-FORM-INSTANCE trigger (for example), have something like this:
set_item_property('push_button_name', label,
                  'This is a button '  || chr(10) ||
                  'with a very, very ' || chr(10) ||
                  'long label'
                 );
Make sure that the button's height is large enough!
Re: How to label a button from the next line in forms 6i.. [message #306684 is a reply to message #306535] Sat, 15 March 2008 14:17 Go to previous messageGo to next message
sunny_ocp
Messages: 15
Registered: September 2007
Location: Pakistan
Junior Member

Hay thanks very much for the reply, but dear its working on a single line but if we enter into the another line a small box is appearing of square, I want the label in multiple lines so write the coding of it....thanks
Re: How to label a button from the next line in forms 6i.. [message #306703 is a reply to message #306684] Sun, 16 March 2008 00:55 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
sunny_ocp wrote on Sat, 15 March 2008 20:17
if we enter into the another line a small box is appearing of square

I can't imagine what you are talking about. Could you attach a screenshot, please? Make sure it is a JPG or a PNG image file.
Re: How to label a button from the next line in forms 6i.. [message #307458 is a reply to message #306684] Tue, 18 March 2008 23:22 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
You can't. All copies of a button have the same label. If you want a button on each line to have a different label then you have to define separate buttons and populate each one separately.

David
Previous Topic: Example of Passing record group to Report Builder 6i
Next Topic: loading images in forms10g
Goto Forum:
  


Current Time: Sun Dec 04 04:45:02 CST 2016

Total time taken to generate the page: 0.06166 seconds