Ocean West Posted November 5, 2004 Posted November 5, 2004 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)
Ocean West Posted November 5, 2004 Author Posted November 5, 2004 Also add 3 pixels to your width if your target layout is a List view
Recommended Posts
This topic is 7390 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now