Why doesn't my program look the same on my user's computer as it does on mine?
Perhaps your user's monitor is set for a different screen resolution? You can get the DisplayWidth and DisplayHeight from the user and use it to define your window as well as where your graphics and controls will be placed.
In this DEMO we open a WINDOW FOR GRAPHICS to full screen and display a simple animation, a line of text, and a single control to close the window. A full screen display is not required, you can choose any percentage of DisplayWidth and DisplayHeight by modifying the code. Sorry, you cannot open a window without a title bar in Just Basic, but you can do that in Liberty Basic using STYLEBITS.
Try changing the display settings for your monitor and running the program again. You'll find the setup of your GUI remains the same, regardless of screen resolution.
Feel free to adapt this code for your own use.
Use DISPLAY SETTINGS to Define Your GUI
-
Welopez
- Posts: 56
- Joined: Fri Jan 07, 2005 11:16 pm
- Location: Currently living in Riverside, CA
- Contact:
Use DISPLAY SETTINGS to Define Your GUI
- Attachments
-
FULL_SCREEN.zip- (36.27 KiB) Downloaded 958 times