|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Screen resolution problem
Hi!
I made an app on a computer with screen resolution of 1024*768, and tested on another with 800*600. I found that a control which is on the bottom of the window with 1024*768 does not touch the window edge with 800*600. In other words the window is larger (in pixels, not only visually) than it should be (there is more workspace). This completely ruins my design concept. How can I get rid of this effect? Thanks! |
|
#2
|
||||
|
||||
|
Adjust the Anchors property of the button. Normally a button component has the anchors set for akLeft and akTop. You probably want to set akRight and akBottom and unset akLeft and akTop.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#3
|
|||
|
|||
|
Thanks, it works well with the button, but does not solve the actual task (a full-size background image).
I discovered that the problem is caused by the varying height of the window label: if it is thinner, the workspace (ClientHeight) gets larger with same window size. Setting ClientHeight on form's creation helps, but is a dirty solution. Does anyone know a better way to have a constant ClientHeight? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Screen resolution problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|