Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 1st, 2003, 04:06 PM
szgabor szgabor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Hungary
Posts: 43 szgabor User rank is Lance Corporal (50 - 100 Reputation Level)szgabor User rank is Lance Corporal (50 - 100 Reputation Level)szgabor User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 12 h 28 m 51 sec
Reputation Power: 6
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!

Reply With Quote
  #2  
Old November 1st, 2003, 08:49 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Click here for more information.
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,713 Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 11 h 21 m 11 sec
Reputation Power: 1179
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

Reply With Quote
  #3  
Old November 1st, 2003, 10:02 PM
szgabor szgabor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Hungary
Posts: 43 szgabor User rank is Lance Corporal (50 - 100 Reputation Level)szgabor User rank is Lance Corporal (50 - 100 Reputation Level)szgabor User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 12 h 28 m 51 sec
Reputation Power: 6
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Screen resolution problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT