positioning of forms

smiler

Registered User.
Local time
Today, 15:39
Joined
Mar 24, 2011
Messages
10
Hi there, i'm new to this forum and this is my first post.
I am currently working on an Access project which has a main form with dedicated buttons aligned to the left as in Ms Outlook. Based on the menu button(aligned left) clicked, a modal form will come up for the user(whiles the main form stays behind) and this(modal form) can be closed for the user to go back to the main form to select another if desired. Now the only thing driving me nuts:mad: is the position of the forms that come up when a menu item is clicked on the main form. I want all the forms that come up to be shown at exactly the same position so that no form will cover the menu items aligned left on the main form.I have tried "docmd.movesize" but can not get it working the way I want with all forms:confused:. Please any help on this will be greatly appreciated, thanks.
 
Do all you other forms vary is size, both width and height?
 
Thank you for the reply. Yes, the other forms vary in both height and width. I presume it is difficult that way but if i could only get all the other forms to be positioned at the right edge of the menu buttons on the main form, then i will make do with it. I hope you understand what i mean, thanks a lot.
 
The next question is....

Are there going to by varying screen sizes/resolutions that arre going to be used by end users?

As a tip. if you know that the left of your screen takes up 15% of your screen width. then you need to find out the with of the screen (Do a search for Get Screen Resolution) and then use DoCmd.MoveSize to indent the form accordingly.
 
Yes, the program is intended to work on several computers with varying resolutions by the end users. i have been able to get my code to return the current screen resolution. Please can you tell me more about setting the width of the forms especially if i can set it by percentage like 15% so that it will work fine on all computers at the user's end.
 
So you can get the resolution of the screen, that's good.

Now you need to convert that to twips. 567 in a centimeter.

So now we know how many twips wide is the screen

Next it's just a simple calculation

LeftPos = ((Screen Width in Cm's * 567) / 100) * 15

DoCmd. MoveSize LeftPos
 

Users who are viewing this thread

Back
Top Bottom