<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>31 Jul 2018 22:03:00 Z</lastBuildDate><pubDate>31 Jul 2018 18:40:00 Z</pubDate><description>Hi all&#13;
&#13;
Been beating my head against a wall all day today but finally worked out how to handle getting the DPI of any android device.... To help anyone else who may suffer in the same way, here's how..&#13;
&#13;
Identify a static control on your window (IMG_Menu in my case)&#13;
&#13;
Since in the WM editor everything is always based on 160DPI you can use the CoordinateScreenToEditor command to work out what the DPI is.&#13;
&#13;
all variables have 2 decimal places..&#13;
nX = CoordinateScreenToEditor(IMG_Menu..X)&#13;
gnDPIRatio = Round(IMG_Menu..X / nX,2)&#13;
&#13;
MyDPI = 160 * gnDPIRatio&#13;
&#13;
Boom!</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun/read.awp</link><title>Android DPI fun</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66435/read.awp</comments><pubDate>31 Jul 2018 22:03:00 Z</pubDate><description>Thanks Arie.&#13;
&#13;
That looks useful!&#13;
&#13;
Cheers&#13;
&#13;
Bob</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66435/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66435/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun/read.awp">Android DPI fun</source><title>Re: Android DPI fun</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66434/read.awp</comments><pubDate>31 Jul 2018 22:02:00 Z</pubDate><description>Fabrice,&#13;
&#13;
It's because I needed to change the fontsize in a listbox according to device resolution. Anchoring resizes the cont…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66434/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66434/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun/read.awp">Android DPI fun</source><title>Re: Android DPI fun</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66433/read.awp</comments><pubDate>31 Jul 2018 20:42:00 Z</pubDate><description>Bosher,&#13;
&#13;
I once found this piece of code. I use it to display the "density" of the screen in some kind of system-info screen i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66433/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66433/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun/read.awp">Android DPI fun</source><title>Re: Android DPI fun</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66432/read.awp</comments><pubDate>31 Jul 2018 19:50:00 Z</pubDate><description>Hi&#13;
&#13;
it's certainly interesting, but it begs the question: why?&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66432/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun-66432/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66430-android-dpi-fun/read.awp">Android DPI fun</source><title>Re: Android DPI fun</title></item></channel></rss>
