Sizing/resizing window

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TerryHough.

Here is a real "newbie" question!

I know how to maximize a created window using system metrics
after the window is created.

However, let's say that the computer is set to 800 x 600 resolution
but my application is best displayed at 640 x 480 resolution
at maximum screen size.

Is it possible in PB to change the screen resolution during the
process of creating the window?

Thanks,
Terry
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Is it possible in PB to change the screen resolution during the
> process of creating the window?

If your app is for public release, then be warned that many people
won't appreciate it resizing their Desktop. It's far better to have
your app auto-resize itself rather than the Desktop. See here:

viewtopic.php?t=932

Note that the example at this URL is a bit dated now (it doesn't use
the ResizeGadget command) but you should be able to work out what it
does and how to use it with ResizeGadget.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TerryHough.
If your app is for public release, then be warned that many people won't appreciate it resizing their Desktop. It's far better to have your app auto-resize itself rather than the Desktop.
PB, your are right of course. I wasn't really wanting to resize the desktop, just the app so that it appears similarly irregardless of the resolution of the desktop. I will look at your suggestion and see if I can learn how to do it.

Thanks for your useful suggestions.

Terry
Post Reply