Forum > General

Form not displaying properly in other PCs

(1/2) > >>


It has been a while since I was last using this forum which helped me a lot before.  I am back now with a problem I do not know where to start with.

I have compiled a program that has one main form mostly taken up with a tabbed pagecontrol which has three stringrids and two charts across the tabs.  For the stringgrids I have adjusted the column widths to encapsulate the header row text nicely, at runtime, and it looks perfect when run on my PC.  When it runs on other PCs, there is a change to "something" like text size or similar that makes the size of the columns, or the overall stringgrid, change such that scrollbars appear at the side and bottom of the stringrid.  Today whilst trying to demonstrate to other users I noticed that there is a simple label that wont display the text properly and I am noticing scales on my charts seem cluttered and unreadable.

My monitor is widescreen and the scaling in the display properties is 100%.  I am trying to get info from my colleagues as to their display settings on their PCs or laptops, but I can say that I have not experienced this before with other programs I have created and used on different machines.

I am not able to produce a screen shot of this at the moment as the forms have commercially controlled company information, if need be I will remove this if it helps.

Thanks in advance.


Not everyone uses 96 dpi settings so u need to design your app to adjust at runtime.

Using anchors works well and there is scaling functions

What do you have in Project options/Application, 'Use LCL scaling (Hi-DPI)' and 'DPI awareness'? See attachment.

On what OS is that? What Lazarus version?

It would be more clear if you included 'wrong' and 'right' screenshots (problem screen and how it should look).

Thanks for the comments.

Jamie - I don't know where to start with anchors, scaling functions that can be changed at runtime.  Is there anywhere  I can look for such info?

dseligo - my settings are as per your image in my application.  As I said in my original post, the data on the form is commercially sensitive however i have taken snapshots of the problem with the stringgrid which is the main issue.  See attached.  I did find out that one of my colleagues has his settings at 250% for "Change the size of text, apps and other items" in the display settings, cannot think why anyone would have this setting.

Any advice is much appreciated.


Lazarus wiki:


[0] Message Index

[#] Next page

Go to full version