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">日本語</font></p>
<p>Deutsch</p>
<p>Français</p>
How would I get that to display correctly in iPhonePick, if it's possible?
Thanks for all hints!
Alan
iphonePick and unicode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: iphonePick and unicode
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")
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
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
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
Re: iphonePick and unicode
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
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
Re: iphonePick and unicode
Cool, thanks Bernd for the notification and checking this. I'll give it a tryout sometime soon. Schönen Tag noch!
mfG
Alan
mfG
Alan
