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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

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