Re: the "real" screen size [message #73011] |
Mon, 25 October 2010 09:00  |
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
|
|
|