Page 1 of 1
Ugly looking controls on iPhone
Posted: Fri Oct 12, 2018 5:18 pm
by kaveh1000
I am using default fields and buttons in LiveCode. In Simulator and on iPhone I get old style looking controls. See comparison
here (Viewed in LiveCode 9 Mac on left, XCode simulator right.
How can I get better looking controls?
Re: Ugly looking controls on iPhone
Posted: Fri Oct 12, 2018 6:33 pm
by richmond62
Personally, in none of my public release software do I use default controls.
This is because I deploy my software across multiple platforms: Macintosh, Linux and Windows, and have no way of guaranteeing that any end-user's system has the fonts I like installed.
I have a "thing" about Macintosh Charcoal.ttf. So I set up all my buttons using that font
on a Macintosh computer I use and take a snaspshot of it, so I end up with an image
that is an exact copy of the button and I can then use that image as a button which
will appear the way I like on whichever platform my software appears.
-

- BTNs.png (14.05 KiB) Viewed 3887 times
-
At the top there is the button "B1", and underneath it is an image that is
a snapshot of the button.
-
Import snapshot from btn "B1"
-
Re: Ugly looking controls on iPhone
Posted: Fri Oct 12, 2018 8:21 pm
by capellan
This is the image that Kaveh posted in google drive:
Screen Shot 2018-10-12 at 17.12.20.png
Font Metrics is a real headache for cross platform development.
Al
Re: Ugly looking controls on iPhone
Posted: Fri Oct 12, 2018 8:48 pm
by kaveh1000
Thank you so much both. Yes, I did some more research and I think the answer is to use images with a transparent button, so we know exactly what will be shown.
And thanks for pasting the image. I tried the img tag but it would not show in preview. No idea why.
So nice to continue using LiveCode, having used HyperCard since its beta version.
