iphonePick and unicode

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 146
Joined: Mon Jul 31, 2006 1:39 am
Contact:

iphonePick and unicode

Post by strongbow » Thu Jul 05, 2012 8:56 am

Is it possible to display unicode in an iPhonePick native control? If so, how?

I have, for example, a field whose htmlText is:

<p>English</p>
<p><font face="Osaka" lang="en-UC">&#26085;&#26412;&#35486;</font></p>
<p>Deutsch</p>
<p>Fran&ccedil;ais</p>

How would I get that to display correctly in iPhonePick, if it's possible?

Thanks for all hints!

Alan

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4168
Joined: Sun Jan 07, 2007 9:12 pm

Re: iphonePick and unicode

Post by bn » Thu Jul 05, 2012 12:19 pm

Hi Alan,

I did not get the native iPhonePick to display unicode. However you can set the unicodeText of an option menu button to unicode.

I took your html and pasted it into a field (named "fErr"). Then I set the htmlText of that field to the field. Then I took the unicodeText of that field and put it into the unicodeText of the option menu button (named "bPick")

Code: Select all

on mouseUp
   set the htmlText of field "fErr" to field "fErr"
   set the unicodeText of btn "bPick" to the unicodeText of field "fErr"
end mouseUp
now the option menu displays the unicode in the IDE. If you run this in the simulator the option menu will pop up a pick wheel in iPhone simulation and a pop over on the iPad.

The downside of this approach is that the option menu does not work reliably on the iDevices :(
bug number #10254
(I just noticed that you have read the thread http://forums.runrev.com/phpBB2/viewtop ... =15#p58487 )

Maybe someone else found a way to display unicode in the native iPhonePick control. If no one comes up with a way to display unicode in iPhonePick control I will notch the severity of the bug up. Until now I thought the workaround was to use a native control instead of an option menu button.

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4168
Joined: Sun Jan 07, 2007 9:12 pm

Re: iphonePick and unicode

Post by bn » Wed Dec 05, 2012 10:01 am

Just a short follow-up.

The bug in using an option menu in iOS (Bug 10254) has been fixed in LiveCode 5.5.3.

One should now be able to use unicode in an iOS app for a pick following the above sample.

Kind regards
Bernd

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 146
Joined: Mon Jul 31, 2006 1:39 am
Contact:

Re: iphonePick and unicode

Post by strongbow » Wed Dec 05, 2012 10:21 am

Cool, thanks Bernd for the notification and checking this. I'll give it a tryout sometime soon. Schönen Tag noch!

mfG

Alan ;-)

Post Reply