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

Home » Public Forums » archive » Question - window.hittest method
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Question - window.hittest method [message #91552] Wed, 29 July 2015 03:37
Dae-Kyu Shin is currently offline  Dae-Kyu Shin
Messages: 25
Registered: February 2015
Junior Member
Hi

for example

win = window()
p = plot(/test, /current)
p = 0 ;; lost p

win_dim = win.dimensions

selected = win.hittest(floor(.5*win_dim[0]), floor(.5*win_dim[1]),$
dimensions = win_dim)
print, selected

it`s cool.


but how about this example

win = window(/buffer)
p = plot(/test, /current)
p = 0 ;; lost p

win_dim = win.dimensions

selected = win.hittest(floor(.5*win_dim[0]), floor(.5*win_dim[1]),$
dimensions = win_dim)
print, selected

the selected is <nullobject>

if using buffer keyword, how can i get information like first exmaple??

Thanks.
[Message index]
 
Read Message
Previous Topic: cgsymbols change when saving from cgwindow to pdf
Next Topic: Draw a shapefile with label from attribute table

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

Current Time: Wed Oct 08 11:47:33 PDT 2025

Total time taken to generate the page: 0.00345 seconds