Page 1 of 1

Behavior in different screen - error or properties?

Posted: Thu Mar 08, 2018 9:03 am
by Lubos
For developing PureBasic programs I use two machines: NB with 1280x768 resolution and PC with 1920x1080 monitor resolution. In a program that uses relatively small windows (480 x 390), I noticed that longer button descriptions (which are tight when using NB) are too long for a PC. I used PureBasic 5.24 LTS (x86).

Re: Behavior in different screen - error or properties?

Posted: Thu Mar 08, 2018 10:49 am
by Bitblazer
Check the Typography. Especially the used font and kerning settings.

Re: Behavior in different screen - error or properties?

Posted: Thu Mar 08, 2018 11:55 am
by Dude
Screenshots for comparison? In any case, always code your buttons and gadgets for the smallest resolution used, and allow extra space on left/right for higher resolutions.

Re: Behavior in different screen - error or properties?

Posted: Sun Mar 11, 2018 12:59 am
by Lubos
Dude wrote:Screenshots for comparison?......


http://people.fsv.cvut.cz/~svobodal/NB%201366x768.jpg

First machine (notebook) - it is OK.
http://people.fsv.cvut.cz/~svobodal/PC ... 1080.jpg


http://people.fsv.cvut.cz/~svobodal/PC%201280x720.jpg

Second machine (desktop computer) - problem independent of the set resolution.

So far, I have solved this by using Tahoma instead of Arial and mainly reducing the size of the font.

Re: Behavior in different screen - error or properties?

Posted: Sun Mar 11, 2018 2:35 am
by Dude
See here about DPI-awareness: http://www.purebasic.fr/english/viewtop ... 12&t=70344

It's easy and will fix your text-cropping issue. :)

Re: Behavior in different screen - error or properties?

Posted: Mon Mar 12, 2018 11:08 am
by Lubos
Dude wrote: It's easy and will fix your text-cropping issue.
Oh! :o That's what I wanted.

Big thanks.