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

Home » Public Forums » archive » Detect APP_SCROLL or SCROLL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Detect APP_SCROLL or SCROLL [message #50903] Tue, 24 October 2006 20:32
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
Is there a nice way to detect whether a widget_draw is using APP_SCROLL
or SCROLL?
I'm attempting to write code which will handles both scenarios, but I
can't find a nice way to do it.

Here is a known method, but I'm concerned about the portability of it.

function is_app_scroll, id
geom = widget_info(id,/geom)
widget_control, id, GET_VALUE=oWindow
oWindow -> GetProperty, DIMENSIONS=dimensions
if ((dimensions[0] eq geom.DRAW_XSIZE) and $
(dimensions[1] eq geom.DRAW_YSIZE)) then $
return, 0
if ((dimensions[0] eq geom.XSIZE) and $
(dimensions[1] eq geom.YSIZE)) then $
return, 1
message, 'Incompatible dimensions'
end



Thanks

Robbie

http://www.barnett.id.au/idl/
[Message index]
 
Read Message
Previous Topic: Re: Retrieving the title of a widget_base after the fact.
Next Topic: permanent setenv?

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

Current Time: Fri Oct 10 14:46:17 PDT 2025

Total time taken to generate the page: 1.35995 seconds