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

Home » Public Forums » archive » Bug report: Draw window resolution
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Bug report: Draw window resolution [message #89817] Thu, 04 December 2014 09:18
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
hi,

When I create an IDLgrWindow, its RESOLUTION property does not match the resolution of my monitor. Also, the RESOLUTION is not a settable property of the IDLgrWindow object - it is supposed to be set automatically. Is this a bug?

test case:

---------------------

pro test_resolution

mywin = obj_new('IDLgrWindow')

mywin.GetProperty, RESOLUTION = window_resolution

mymon = obj_new('IDLsysMonitorInfo')

primary_index = mymon.GetPrimaryMonitorIndex()

monitor_resolution = (mymon.GetResolutions())[*,primary_index]

print, 'Window Resolution:', window_resolution

print, 'Monitor Resolution:', monitor_resolution

print, !version

end

--------------------

output:

Window Resolution: 0.035277778 0.035277778
Monitor Resolution: 0.026458333 0.026458333
{ x86_64 Win32 Windows Microsoft Windows 8.3 Nov 15 2013 64 64}

As you can see, the window is reporting a resolution of 72DPI, but the monitor is 96DPI. Fix please?

thanks
Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Write_png problem
Next Topic: Plotting lookback time (in Gyrs) and redshift on two x axis in IDL

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

Current Time: Wed Oct 08 09:11:42 PDT 2025

Total time taken to generate the page: 0.00416 seconds