Hi,
I want to position a form allways on the upper right corner of the screen undependent on the type of screen the user is using (800x600, 1024x768,...).
Any idea how i can find out the max screen resolution in Navision ?
Thanks
Francois
Consultant-Developper
http://www.CreaChain.com 0
Comments
Google on 'retrieve resolution dll'
I've done it once in a new table "Computer Setup" retrieving the computername via Windows DLL.
(I haven;t tried to put a form on the right but....
AutoPosition
Use this property to have the system automatically position the form in one of several places.
Applies to: Forms
Settings : The AutoPosition settings are:
To... Choose...
Center this form on the screen: CenterScreen
Center this form with respect to the active form: CenterActiveForm
Place this form outside the active form: OutsideActiveForm
Place this form outside the active control: OutsideActiveControl
Not have the system automatically position the form: None (default)
Comments
If you choose None, the system relies on the XPos and YPos properties to determine where to place the form. If you choose another setting, the system ignores the XPos and YPos settings.
If the form is displayed as a lookup (in lookup mode), the system automatically places it outside the active control.
The system checks this property when it opens the form.
Your entry here has no effect on any related subforms.
http://www.BiloBeauty.com
http://www.autismspeaks.org
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It is not possible in vbscript because it uses windows APIs :whistle:
How it works? Just reference the DLL and call the function:
The LocalIntWidth will have the maximum width of a navision form (thus the outer right x position).
I hope you have all necesarry functions here, i made this post by collection several code snippets from a much larger program. If not, let me now which (API) function you are missing i have all.[/code]