The shape of option button on iOS is ugly...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

The shape of option button on iOS is ugly...

Post by ECNU4271 » Fri Sep 20, 2013 2:22 pm

屏幕快照 2013-09-20 下午2.17.57.png
屏幕快照 2013-09-20 下午2.17.57.png (8.02 KiB) Viewed 5654 times
This is the shape of an option button shown on live code.
屏幕快照 2013-09-20 下午2.18.05.png
屏幕快照 2013-09-20 下午2.18.05.png (7.16 KiB) Viewed 5654 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

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The shape of option button on iOS is ugly...

Post by Klaus » Fri Sep 20, 2013 2:28 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: The shape of option button on iOS is ugly...

Post by Simon » Fri Sep 20, 2013 10:47 pm

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
Attachments
Drop_down.zip
LC 6.1
(5.6 KiB) Downloaded 400 times
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: The shape of option button on iOS is ugly...

Post by ECNU4271 » Sun Sep 22, 2013 12:12 am

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. :D

Michael

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: The shape of option button on iOS is ugly...

Post by ECNU4271 » Sun Sep 22, 2013 12:16 am

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: The shape of option button on iOS is ugly...

Post by Simon » Sun Sep 22, 2013 1:49 am

Look up mobileSetKeyboardType in the dictionary.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply