[Implemented] ScreenHeight() and ScreenWidth()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

[Implemented] ScreenHeight() and ScreenWidth()

Post by IceSoft »

ScreenHeight() and ScreenWidth() will be useful with OpenWindowedScreen() (and Menues)
Of course ScreenDepth() too.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Re: ScreenHeight() and ScreenWidth() will be useful...?

Post by va!n »

this has discussed sometimes often! on the forum you will find some very small API calls for doing this. SystemMetrics...
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: ScreenHeight() and ScreenWidth() will be useful...?

Post by IceSoft »

va!n wrote:this has discussed sometimes often! on the forum you will find some very small API calls for doing this. SystemMetrics...
But this is Windows only!
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Yea. Would be a nice feature. (Not too hard I assume?)
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

If you want to do it right you'll need to do some monitor functions (in windows at least)

For my tool i was 'forced' to rewrite my code so when a parent window was on monitor 2, the popup should be centered on that same monitor as well.
(Center was preferred)

When i execute my app and mouse is on a different monitor, the app is executed on that monitor.
No hassle.
Post Reply