Issue: 14.2 (March/April 2016)
Author: Paul Lefebvre
Author Bio: Paul Lefebvre is the Xojo Developer Evangelist. He has developed software professionally for more than 20 years and has been using Xojo and prior versions since 2001.
Article Description: No description available.
Article Length (in bytes): 4,555
Starting Page Number: 84
Article Number: 14208
Related Web Link(s):
Excerpt of article text...
What is HiDPI? It stands for
high dots per inchand refers to displays that use many more dots per inch to render an extremely sharp display where it is difficult to see individual pixels. Apple uses the term Retinato identify their HiDPI displays.
If you have a Mac but don't have a Retina display, you can simulate it by changing your display resolution in System Preferences. Go to the Display section and select "Scaled." On my 27" 2560x1440 display, there are lots of options available but the one to note is the 1280x720 (HiDPI) setting (see Figure 1). When I choose this, my display resolution drops in half, but I get incredibly sharp text. A 1280x720 resolution display is not all that usable, but it can be helpful for testing. (By the way, if you Option-Click on the "Scaled" radio button, you'll see even more display resolutions in the list.)
On OS X you could enable HiDPI (retina) for your Xojo apps by manually editing the
Info.plistfile in the app bundle, but the next version of Xojo will make it even easier. There will be a "Supports Hi-DPI" property on the app settings that you can turn on to enable HiDPI support for your app.
In addition to that simple switch, there are several other enhancements and changes made to the Window, Graphics, and some other classes to allow you to handle your own images so that they display properly. For more information on this, refer to the Xojo Dev Center:
This also means that the Xojo IDE itself will also be using HiDPI graphics so that everything is sharp and crystal clear.
...End of Excerpt. Please purchase the magazine to read the full article.