Font select and display

Post Reply
User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Font select and display

Post 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.
Attachments
fontselect.txt
(5.28 KiB) Downloaded 364 times
Last edited by Dutchman on Thu Oct 03, 2013 3:48 pm, edited 2 times in total.

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Font select and display

Post 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'
Attachments
fonts.txt
(2.85 KiB) Downloaded 368 times

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Font select and display

Post 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.

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Font select and display

Post by Dutchman »

Thanks for the remarks.
I will make changes after the 'LIST BOX" object becomes available in version 2.6

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Font select and display

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Font select and display

Post 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 4937 times

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Font select and display

Post by Henko »

Ios7
Ios7
image.jpg (191.1 KiB) Viewed 4935 times

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Font select and display

Post 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.

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Font select and display

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Font select and display

Post 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:

Post Reply