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

Home » Public Forums » archive » Re: Problem with initialization of location of plot when using 2 monitors
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: Problem with initialization of location of plot when using 2 monitors [message #72802 is a reply to message #72801] Tue, 05 October 2010 07:53 Go to previous messageGo to previous message
Jean[2] is currently offline  Jean[2]
Messages: 41
Registered: October 2010
Member
On Oct 5, 10:27 am, David Fanning <n...@dfanning.com> wrote:
> Jean writes:
>> I'm using the new plot object/feature of IDL 8.0 and noticed a problem
>> when using 2 monitors. The IDL workbench is sitting on the right
>> display and the application I wrote starts on the left (because it's
>> really xoffset 0). Ok, well my application brings to life at some
>> point an object plot. I want this plot to show up just on the right of
>> my GUI. I retrieve the offset and xsize of that gui and pass it to the
>> location keywords of plot:
>
>> my_plot = plot([0,1], nodata=1, location=[xoff, yoff])
>
>> but the problem is that for my_plot, the offset 0 is on the left of
>> the right screen. How can I force it to be the real 0 offset.
>
> Shouldn't the offset of your plot be the offset of the GUI
> *plus* the xsize of the GUI?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,

That's what I'm doing. I retrieve the xoffset and the xsize of the
main gui and set the location as being xoffset+xsize.
If xoffset is 20, and xsize is 200, the plot is displayed at 220
pixels from the left of the right screen when my main gui is on the
left screen !
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with initialization of location of plot when using 2 monitors
Next Topic: How to clear an object plot

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

Current Time: Wed Oct 08 17:46:48 PDT 2025

Total time taken to generate the page: 0.00393 seconds