Jump to content
Sign in to follow this  
Ocean West

Set Windows Size

Recommended Posts

These two custom functions will make it easier to determine the dimensions of a new window

all you need to do is to make a mental note of the size of your background image

or create a rectangle starting at 0 x 0 pixels (upper left) and then size it to fit the

area you want. Then the H & W of this rectangle is used when you create a new

window via a script.

Use the custom functions below in the window h & w fields of the dialog it will

take in to consideration the scroll bar/ & title bar and on both platforms.

SetWindowHeight (height)

height + Case (Get (SystemPlatform) = -1; 37;54)

SetWindowWidth (width)

width + Case (Get (SystemPlatform) = -1; 15;27)

Share this post

Link to post
Share on other sites

Also add 3 pixels to your width if your target layout is a List view

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.