Page 1 of 1

Problem with text displaying

Posted: Sun Dec 24, 2017 10:46 am
by jcc75
Hello.
Thanks to you I can read a text file. But now here is another problem :(
Capture.png
Capture.png (8.14 KiB) Viewed 3816 times
The text of the label is set in the properties. The text of the field is read from a file. The font is the same in both ("system").
I can display the file in any other app without problem (Windows or Android).
I think that LiveCode doesn't like me :( :( :(
Thanks for help.

Re: Problem with text displaying

Posted: Sun Dec 24, 2017 11:23 am
by jmburnod
Hi,
Glad to know you can open and read a file.
It seems your need to decode your file.
I never did something for androïd but I met similar problems on iOS and for exchanges between OS X and Windows.
Fortunately, LiveCode forum help us.
Best regards
Jean-Marc

Re: Problem with text displaying

Posted: Sun Dec 24, 2017 12:20 pm
by jcc75
Strange. I display my file in a data grid, and it's ok ! I don't understand why.
I didn't change anything else.
Capture.png
Capture.png (15.72 KiB) Viewed 3805 times

Re: Problem with text displaying

Posted: Sun Dec 24, 2017 1:27 pm
by bogs
It looks to me like the 'file' is in csv format? "System" I believe uses the fonts that your system is set to display for various objects (differences vary from os to os). Whether you are using Windows, Mac, or Linux, title-bars, labels, buttons, and text fields in particular display slightly differently depending on the 'theme' the os is using, unless you have changed your system settings. The data grid top line is more likely to be displaying the same as a text field I believe, not a label.

Re: Problem with text displaying

Posted: Mon Dec 25, 2017 4:02 am
by MaxV
The problem is how you load the text in the field. See http://livecode.wikia.com/wiki/TextDecode