Page 1 of 1

Font select and display

Posted: Thu Oct 03, 2013 3:38 pm
by Dutchman
I made a program 'fontselect.txt' to select and display available fonts.
It uses an adapted version of the 'List box' object designed by Henko.
The fonts are stored in the file 'fonts.dat' which I made by the command 'LIST FONTS' and then copy and paste via the editor.
The content is attached to the following post.
I tried to make the program independent of screensize, but I only could test it on iPad-1.

Re: Font select and display

Posted: Thu Oct 03, 2013 3:41 pm
by Dutchman
Here is the file 'fonts.txt'
I could not upload 'fonts.dat', so I changed the name.
Change the name to 'fonts.dat' or change 'Filename$' in the program to 'fonts.txt'

Re: Font select and display

Posted: Fri Oct 04, 2013 5:07 am
by Mr. Kibernetik
Two notes:

1. This code creates buttons for each string in the list, but not deletes them - after creation they just put on top of each other and you see only last created button. But in iOS 7 buttons are transparent, so you will get a mess with buttons titles.

2. You can easily re-define array during run-time with another size if you need, there is no need to stop program and ask user to change variable.

Re: Font select and display

Posted: Fri Oct 04, 2013 8:47 am
by Dutchman
Thanks for the remarks.
I will make changes after the 'LIST BOX" object becomes available in version 2.6

Re: Font select and display

Posted: Fri Oct 04, 2013 9:00 pm
by Henko
Mr. Kibernetik wrote:Two notes:

1. This code creates buttons for each string in the list, but not deletes them - after creation they just put on top of each other and you see only last created button. But in iOS 7 buttons are transparent, so you will get a mess with buttons titles.
?? I run ios7, but do not have this problem with the program.

Re: Font select and display

Posted: Sat Oct 05, 2013 2:08 am
by Mr. Kibernetik
Can you please post screenshot?
On iOS 7 emulator all buttons have no body - just text labels.
Снимок экрана 05.10.2013, 8.09.22 с Симулятора iOS.png
Снимок экрана 05.10.2013, 8.09.22 с Симулятора iOS.png (99.76 KiB) Viewed 5002 times

Re: Font select and display

Posted: Sat Oct 05, 2013 7:02 am
by Henko
Ios7
Ios7
image.jpg (191.1 KiB) Viewed 5000 times

Re: Font select and display

Posted: Sat Oct 05, 2013 7:07 am
by Mr. Kibernetik
Very good, thanks!
Well, upcoming update is compiled for iOS 7, and its interface, and also all UI objects, will look very different on iOS 7.

Re: Font select and display

Posted: Sat Oct 05, 2013 4:44 pm
by Henko
Mr. Kibernetik wrote:Very good, thanks!
Well, upcoming update is compiled for iOS 7, and its interface, and also all UI objects, will look very different on iOS 7.
That's too bad. Buttons should look like buttons. Same goes for other objects. I don't like re-engeneering programs because someone decides to modify a underlying layer in the system.

Re: Font select and display

Posted: Sat Oct 05, 2013 4:50 pm
by Mr. Kibernetik
Henko wrote:That's too bad. Buttons should look like buttons. Same goes for other objects. I don't like re-engeneering programs because someone decides to modify a underlying layer in the system.
Well, all iOS 7 interface (buttons, sliders, lists,...) looks very differently. Of course this affects applications which use these UI objects.
Very interesting that before application was compiled for iOS 7, it still looks old-style even on iOS 7.
By the way, although I don't have iOS 7 device (and my iPad will never be able to upgrade to it), I already got accustomed to iOS 7 look :)

P.S. Congratulations with 100 posts on the forum! :lol: