dbTalk Databases Forums  

Screen resolution, twips, X & Y co-ordinates

comp.databases.ms-access comp.databases.ms-access


Discuss Screen resolution, twips, X & Y co-ordinates in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil
 
Posts: n/a

Default Screen resolution, twips, X & Y co-ordinates - 08-29-2011 , 09:05 AM






I have a form with a background image and a number of image controls
superimposed over the background. The position of these images are defined by
X,Y co-ordinates held in a table, so I presume they are regarded as twips.
All works perfectly on a computer with a screen resolution of 1600 * 900,
though the effective size is 1600 * 860 allowing for the taskbar. If I view
the form on another screen say resolution 1920 * 1032 or 1280 *1024, the
images no longer overlay the background image in the correct relative
position. Using VBA, I can read the screen resolution.
How do I go about ensuring the form looks correct regardless of what monitor
it is being vir=ewed on Thanks
Phil

Reply With Quote
  #2  
Old   
imb
 
Posts: n/a

Default Re: Screen resolution, twips, X & Y co-ordinates - 08-30-2011 , 02:53 PM






On Aug 29, 4:05*pm, "Phil" <p... (AT) stantonfamily (DOT) co.uk> wrote:
Quote:
I have a form with a background image and a number of image controls
superimposed over the background. The position of these images are defined by
X,Y co-ordinates held in a table, so I presume they are regarded as twips..
All works perfectly on a computer with a screen resolution of 1600 * 900,
though the effective size is 1600 * 860 allowing for the taskbar. If I view
the form on another screen say resolution 1920 * 1032 or 1280 *1024, the
images no longer overlay the background image in the correct relative
position. Using VBA, I can read the screen resolution.
How do I go about ensuring the form looks correct regardless of what monitor
it is being vir=ewed on Thanks
Phil
Hi Phil,

Just a guess.
Calculate new X,Y coordinates in relation to the number of pixels
horizontally and vertically.


Imb.

Reply With Quote
  #3  
Old   
James A. Fortune
 
Posts: n/a

Default Re: Screen resolution, twips, X & Y co-ordinates - 08-30-2011 , 02:57 PM



On Aug 29, 10:05*am, "Phil" <p... (AT) stantonfamily (DOT) co.uk> wrote:
Quote:
I have a form with a background image and a number of image controls
superimposed over the background. The position of these images are defined by
X,Y co-ordinates held in a table, so I presume they are regarded as twips..
All works perfectly on a computer with a screen resolution of 1600 * 900,
though the effective size is 1600 * 860 allowing for the taskbar. If I view
the form on another screen say resolution 1920 * 1032 or 1280 *1024, the
images no longer overlay the background image in the correct relative
position. Using VBA, I can read the screen resolution.
How do I go about ensuring the form looks correct regardless of what monitor
it is being vir=ewed on Thanks
Phil
If the users have Windows 7, try the suggestions at:

http://msdn.microsoft.com/en-us/libr...71(VS.85).aspx

James A. Fortune
CDMAPoster (AT) FortuneJames (DOT) com

Reply With Quote
  #4  
Old   
Phil
 
Posts: n/a

Default Re: Screen resolution, twips, X & Y co-ordinates - 08-30-2011 , 04:56 PM



On 30/08/2011 20:53:48, imb wrote:
Quote:
On Aug 29, 4:05*pm, "Phil" <p... (AT) stantonfamily (DOT) co.uk> wrote:
I have a form with a background image and a number of image controls
superimposed over the background. The position of these images are define
d by
X,Y co-ordinates held in a table, so I presume they are regarded as twips
.
All works perfectly on a computer with a screen resolution of 1600 * 900,
though the effective size is 1600 * 860 allowing for the taskbar. If I vi
ew
the form on another screen say resolution 1920 * 1032 or 1280 *1024, the
images no longer overlay the background image in the correct relative
position. Using VBA, I can read the screen resolution.
How do I go about ensuring the form looks correct regardless of what moni
tor
it is being vir=ewed on Thanks
Phil

Hi Phil,

Just a guess.
Calculate new X,Y coordinates in relation to the number of pixels
horizontally and vertically.


Imb.

Hi Imb

Sounds sensible, but I think there is more to it than that.
Form keeps its proportion, but shrinks or expands to fill which ever is less
of height or width Will have a look at James Fortune's reply, thogh that
looks kile hravy going.

Thanks

Phil

Reply With Quote
  #5  
Old   
Phil
 
Posts: n/a

Default Re: Screen resolution, twips, X & Y co-ordinates - 08-30-2011 , 04:56 PM



On 30/08/2011 20:57:33, "James A. Fortune" wrote:
Quote:
On Aug 29, 10:05*am, "Phil" <p... (AT) stantonfamily (DOT) co.uk> wrote:
I have a form with a background image and a number of image controls
superimposed over the background. The position of these images are define
d by
X,Y co-ordinates held in a table, so I presume they are regarded as twips
.
All works perfectly on a computer with a screen resolution of 1600 * 900,
though the effective size is 1600 * 860 allowing for the taskbar. If I vi
ew
the form on another screen say resolution 1920 * 1032 or 1280 *1024, the
images no longer overlay the background image in the correct relative
position. Using VBA, I can read the screen resolution.
How do I go about ensuring the form looks correct regardless of what moni
tor
it is being vir=ewed on Thanks
Phil

If the users have Windows 7, try the suggestions at:

http://msdn.microsoft.com/en-us/libr...71(VS.85).aspx
James A. Fortune
CDMAPoster (AT) FortuneJames (DOT) com

Thanks James.

looks like hravy going, but I will study it.

Phil

Reply With Quote
  #6  
Old   
Peter's Software
 
Posts: n/a

Default Re: Screen resolution, twips, X & Y co-ordinates - 09-02-2011 , 01:44 PM



There are third-party form scaling solutions available that might
help:

A trial version of a form rescaling module I wrote called
ShrinkerStretcher is available at this web site: http://www.peterssoftware.com/ss.htm

There's a form resizer at http://www.jamiessoftware.tk/resizeform/rf_jump.html
..

Another one: http://sourceforge.net/projects/modscaleform

The Access Developer's Handbook has form resizing code included:
http://www.amazon.com/exec/obidos/IS...064361-7403703

Hope this helps,

Peter De Baets
Peter's Software - Microsoft Access Tools for Developers
http://www.peterssoftware.com

Quote:
How do I go about ensuring the form looks correct regardless of what monitor
it is being vir=ewed on Thanks
Phil

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.