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?
Ugly looking controls on iPhone
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Ugly looking controls on iPhone
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.
- -
At the top there is the button "B1", and underneath it is an image that is
a snapshot of the button.
-
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.
- -
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
This is the image that Kaveh posted in google drive:
Font Metrics is a real headache for cross platform development.
Al
Font Metrics is a real headache for cross platform development.
Al
-
- Livecode Opensource Backer
- Posts: 508
- Joined: Sun Dec 18, 2011 7:23 pm
- Location: London
- Contact:
Re: Ugly looking controls on iPhone
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.
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.
Kaveh