Behavior in different screen - error or properties?

Just starting out? Need help? Post your questions and find answers here.
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

Behavior in different screen - error or properties?

Post 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).
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86)
My mother tongue is Czech. I have a Czech version of Windows.
Who is not afraid of GOTO, the one need not afraid any things!
Bitblazer
Enthusiast
Enthusiast
Posts: 761
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Behavior in different screen - error or properties?

Post by Bitblazer »

Check the Typography. Especially the used font and kerning settings.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Behavior in different screen - error or properties?

Post 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.
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

Re: Behavior in different screen - error or properties?

Post 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.
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86)
My mother tongue is Czech. I have a Czech version of Windows.
Who is not afraid of GOTO, the one need not afraid any things!
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Behavior in different screen - error or properties?

Post 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. :)
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

Re: Behavior in different screen - error or properties?

Post by Lubos »

Dude wrote: It's easy and will fix your text-cropping issue.
Oh! :o That's what I wanted.

Big thanks.
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86)
My mother tongue is Czech. I have a Czech version of Windows.
Who is not afraid of GOTO, the one need not afraid any things!
Post Reply