Home » Developer & Programmer » Forms » Button label?
Button label? [message #664941] Sun, 13 August 2017 08:06 Go to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
Hello I have a question can i set button label like 'Select'
Item like this is it possible if yes kindly guide me


Regards
Re: Button label? [message #664942 is a reply to message #664941] Sun, 13 August 2017 08:08 Go to previous messageGo to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
Means up and down select up on the button
Item down on the button
Re: Button label? [message #664943 is a reply to message #664942] Mon, 14 August 2017 01:20 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Did you check button's Property Palette window? It should contain the "Label" property, so - set it.

I don't understand your second message, sorry.
Re: Button label? [message #664948 is a reply to message #664943] Mon, 14 August 2017 08:48 Go to previous messageGo to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
Sir I know the label in property it is a single row which we can type but I want to type like below on same button

Select
 Item

[Updated on: Mon, 14 August 2017 08:50]

Report message to a moderator

Re: Button label? [message #664949 is a reply to message #664948] Mon, 14 August 2017 09:50 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Pretty sure you can have multi-line labels. You may need to write it in the style you want in notepad etc and then copy and paste
Re: Button label? [message #664963 is a reply to message #664949] Tue, 15 August 2017 05:02 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
CHR(10) might do the trick, such as
set_item_property('button_name', label, 'Select' || chr(10) || 'Item');
Re: Button label? [message #664965 is a reply to message #664963] Tue, 15 August 2017 05:09 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
It should. If you're using set_item_property you could just:
set_item_property('button_name', label, 'Select
Item');

It's just setting it in the property palette that's problem (I think, from memory) - hitting enter in there takes you to the next property.
Re: Button label? [message #664985 is a reply to message #664965] Wed, 16 August 2017 01:07 Go to previous messageGo to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
No sir same result in single row
Select item

Instead off


Select
 Item

Thanks
Re: Button label? [message #664986 is a reply to message #664985] Wed, 16 August 2017 02:46 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Is the button big enough to display the label in two lines?
Re: Button label? [message #664987 is a reply to message #664986] Wed, 16 August 2017 06:27 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Some additional questions:
  • Which Forms version do you use?
  • Which option produced the single line result, i.e.
    "Select Item"
    instead of
    "Select
    Item"

    Was it the CHR(10) method, or a simple "Press Enter at the end of the Select"?
Re: Button label? [message #665004 is a reply to message #664987] Thu, 17 August 2017 04:47 Go to previous messageGo to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
Sir I am using forms 6i below code doesn't work for forms 6i it works for 9i

set_item_property('button_name', label, 'Select' || chr(10) || 'Item');

Re: Button label? [message #665005 is a reply to message #665004] Thu, 17 August 2017 08:26 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Try chr(13)||chr(10) which is the windows EOL. If that doesn't work then probably nothing does in 6i.
Re: Button label? [message #665018 is a reply to message #665005] Thu, 17 August 2017 14:44 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
I just happen to have a 6i developer lying around. chr(10)||chr(13) and vice versa do not work.
Re: Button label? [message #665033 is a reply to message #665018] Fri, 18 August 2017 07:13 Go to previous messageGo to next message
cookiemonster
Messages: 13917
Registered: September 2008
Location: Rainy Manchester
Senior Member
Then I imagine there's no way to do this in 6i.
Re: Button label? [message #665041 is a reply to message #665033] Fri, 18 August 2017 14:50 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
How about an image button, the one which would use a JPG/GIF that displays text in two lines?
Re: Button label? [message #665176 is a reply to message #665041] Thu, 24 August 2017 04:47 Go to previous messageGo to next message
Amjad_1975
Messages: 82
Registered: January 2017
Member
Sir how can we call on button this image jpg/gif u think read_image is a different but event button how can we do this can we have to convert in a .ico from jpeg/gif kindly guide me.


Regards
Re: Button label? [message #665180 is a reply to message #665176] Thu, 24 August 2017 08:32 Go to previous message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What would you do with READ_IMAGE? I'm talking about button's Property Palette window.
Previous Topic: Configuration LAF with Forms
Next Topic: Dynamically format mask
Goto Forum:
  


Current Time: Thu Mar 28 09:55:31 CDT 2024