comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: the "real" screen size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: the "real" screen size [message #73011] Mon, 25 October 2010 09:00 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Oct 25, 11:41 am, David Fanning <n...@dfanning.com> wrote:
> wlandsman writes:

> Yes, this appears to work. I presume it works on LINUX
> and Macs, too?
>


No, the /Exclude_taskbar keyword is only for Windows OS. So our
function to get the maximum display area now looks like this:

FUNCTION GetRealScreenSize

if !VERSION.OS EQ 'Windows' then begin

oMonInfo = Obj_New('IDLsysMonitorInfo')
rects = oMonInfo -> GetRectangles(/Exclude_Taskbar)
pmi = oMonInfo -> GetPrimaryMonitorIndex()
Obj_Destroy, oMonInfo
Return, rects[[2, 3], pmi] ; w & h of primary monitor avbl.

endif else begin

;Note -- we can't use /PIXMAP so a new window will momentarily flash.

device,get_screen_size=win
window,xsize= win[0],ysize=win[1],/free
win = [!D.X_SIZE,!D.Y_SIZE]
wdelete,!D.Window

return,win


END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Procedures with variable/dynamic argument list??
Next Topic: Re: Fragile IDL 8 Object Programs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:23:07 PDT 2025

Total time taken to generate the page: 0.00412 seconds