Mikayil Abdullayev
Mikayil Abdullayev

Reputation: 12376

Delphi application resolution problem

I have written an application in Delphi. To the window state of a form I've given wsMaximized. There are three buttons on the form which are anchored to the left, top and bottom. When I run the app on my own laptop I can see all three buttons but when I run it on other computers sometimes the buttons are completelely not visible, sometimes i can see only one. And I can't anyhow reach hose buttons. However, if I change the screen resolution I can see them. But with some computers I can't see them even with the maximum resolution provided. What sould I do with this problem?

Upvotes: 0

Views: 1115

Answers (3)

David Heffernan
David Heffernan

Reputation: 613491

Buttons generally have a fixed height and width. This in turn implies that they should be anchored to top or bottom, but not both. Likewise they should be anchored to left or right, but not both.

Your buttons are anchored to both top and bottom which seems wrong. I'd guess your solution is to pick just one of top or bottom anchors.

Upvotes: 5

James
James

Reputation: 9985

The bottom anchor is squishing the buttons effectively giving them a negative height. You could set a Minimum height for the button to prevent this from happening or you could remove the bottom anchor.

Upvotes: 1

mystery
mystery

Reputation: 19523

Your only real option is to make the buttons smaller.

Upvotes: 1

Related Questions