Check the dimensions of the Screen object. If there are multiple monitors attached to the machine, you can iterate over them with ScreenCount and Screen(n).
Thanks Tim … now for the difficult part… any way to globally change window sizes, font settings, etc, etc … or maybe a simple resolution is to not hire people with vision issues LOL
You could create an array of classes to store many properties for each Screen. Ie. Available width, available height, etc. Then you would have the Screen number as your Array element # which would have all of your properties attached.
I made a quick little demo to show you how to capture the screens in an array along with forming a property class for each along the way. Once you have the screen information in a good format you can do what ever you want to the windows/container controls.
My Screen 0 is my 15 inch MBP and my Screen 1 is a 27" iMac
Elastic window won’t help as it would shrink everything to fit. The problem here is you will need to rearrange the layout to accomodate different sizes, especially as the lower resolution implies that everything needs to be bigger (otherwise, you defeat the purpose).
In the past I’ve created some projects using different window sizes. Application’s main window is set to “None”, and in the app.open event, the screen.width and screen.heigth results determine which window will be used as main window in the first place. Also I’ve added some menu items to let the user select another window size, as long as it fits into the screen.
i have use elastic window and i have a screen setup window with some common screen resolution. i use percentage on the screen setup and save the information to a config file sitting next to the program. when i open the application, i check what is the percentage, anything between -15 to +75. Tim is right about shrink everything to fit but most of the time for my client, it is sizing up from my default windows size which 1024x768
Hi Detlef, Can you please advise how to call the window to be used in first place. I was able to calculate the screen size however i get error when opening a window, while my other window is hidden. Also i don’t see a none selection on windows.
I am okay with the screen resolution calculation, just i am not able to figure out how to initialise a window from multiple windows.