#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Hungary
    Posts
    43
    Rep Power
    11

    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. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,616
    Rep Power
    4247
    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

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Hungary
    Posts
    43
    Rep Power
    11
    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?

IMN logo majestic logo threadwatch logo seochat tools logo