Page 1 of 1
The shape of option button on iOS is ugly...
Posted: Fri Sep 20, 2013 2:22 pm
by ECNU4271

- 屏幕快照 2013-09-20 下午2.17.57.png (8.02 KiB) Viewed 5663 times
This is the shape of an option button shown on live code.

- 屏幕快照 2013-09-20 下午2.18.05.png (7.16 KiB) Viewed 5663 times
This is the shape of the same option button shown on iOS device.
The shape of the button shown on iOS is terrible. How can I get rid of the right part to just show the number?
Is this default look of a button changeable in livecode?
Thanks,
Michael
Re: The shape of option button on iOS is ugly...
Posted: Fri Sep 20, 2013 2:28 pm
by Klaus
Hi Michael,
unfortunately the Livecode native "Look and feel" of objects on iOS
is "Emulated motif" and you cannot do anything against this.
Except "rolling your own" or using this:
http://mobgui.com
Or this:
http://tmtools.tactilemedia.com/tmcontrol/
Supplying native mobile controls is on the to do list, but might take a while
before its is ready...
Best
Klaus
Re: The shape of option button on iOS is ugly...
Posted: Fri Sep 20, 2013 10:47 pm
by Simon
Hi Michael,
You don't have to use buttons to get a button...errr... OK, what I mean is an image can be used instead of a button. It's all in scripting as to what the object does.
I've attached a simple stack for you to see.
Simon
Re: The shape of option button on iOS is ugly...
Posted: Sun Sep 22, 2013 12:12 am
by ECNU4271
Klaus wrote:Hi Michael,
unfortunately the Livecode native "Look and feel" of objects on iOS
is "Emulated motif" and you cannot do anything against this.
Except "rolling your own" or using this:
http://mobgui.com
Or this:
http://tmtools.tactilemedia.com/tmcontrol/
Supplying native mobile controls is on the to do list, but might take a while
before its is ready...
Best
Klaus
Hi, Klaus, thanks for the links. I've tried other ways to make buttons look better in iOS devices. That would be probably enough on "looking" level.
Michael
Re: The shape of option button on iOS is ugly...
Posted: Sun Sep 22, 2013 12:16 am
by ECNU4271
Simon wrote:Hi Michael,
You don't have to use buttons to get a button...errr... OK, what I mean is an image can be used instead of a button. It's all in scripting as to what the object does.
I've attached a simple stack for you to see.
Simon
Hi, Simon
I've read the script in the livecode file you provided. That was really a great clue for me. I did not need to have a button, one image with scripts will achieve the goal.
Thanks! By the way, do you know how activate the keyboard of "number only" and display the value in a field?
Michael
Re: The shape of option button on iOS is ugly...
Posted: Sun Sep 22, 2013 1:49 am
by Simon
Look up mobileSetKeyboardType in the dictionary.
Simon