Unicode again, this time comboboxes
Malte Brill
revolution at derbrill.de
Fri Jul 15 05:25:36 EDT 2011
Ok,
getting a step further with this. This does work, but is rather ugly:
To Read out a current label of the comboBox:
on mouseUp
lock screen
local tProps,tSelection
select the text of btn "Combo"
focus on btn "Combo"
answer the selection
put the unicodeText of the selection into tProps
set the unicodeText of fld "Test" to tProps
unlock screen
end mouseUp
I have no idea why this works. I have no idea why setting the focus is necessary. Without the focus, it might break every once in a while.
It works for both ANSII and UTF16 inputs. It works for mixed inputs. Just totally puzzled as to the why...
Now trying to set stuff by script.
Cheers,
Malte
More information about the use-livecode
mailing list