Get Desktop Size

BlitzMax Forums/BlitzMax Programming/Get Desktop Size

Grey Alien(Posted 2007) [#1]
I must be being dumb here but I don't see any easy Bmax code for get the DesktopSize on PCs, perhaps it's an API call. Anyone know? thx I presume people are using this code to work out the native screen aspect ratio.


Jake L.(Posted 2007) [#2]
Not my work, but here it is:



Now to something completely different...


PantsOn(Posted 2007) [#3]
doesn't this just work....
Print GadgetWidth(Desktop())
Print Gadgetheight(Desktop())



Grey Alien(Posted 2007) [#4]
Nice thanks! Is this from the code archives or here? Must've missed it.


Jake L.(Posted 2007) [#5]
Dunno. If I remember right this was posted in the german community.

@PantsOn: Your code needs MaxGUI, the mod works w/o it.


tonyg(Posted 2007) [#6]
That looks like the desktopextension code.


GfK(Posted 2007) [#7]
Yep I use Desktop Extension for this too. All the documentation in the one I have is in German but its not that hard to figure out.


Grey Alien(Posted 2007) [#8]
Cool I'll ask them if they mind me putting a small portion of it in my framwork.

PantsOn: I want to make the code non MaxGUI.