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

Home » Public Forums » archive » Draw Widgets
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
Draw Widgets [message #6435] Tue, 11 June 1996 00:00 Go to next message
Matthias Arnold is currently offline  Matthias Arnold
Messages: 2
Registered: June 1996
Junior Member
Is there a way to change the X_SCROLL_SIZE option
of a DRAW Widget that already exists?

I need this to interactively change the resolution of
the viewport to my scrollable plots.

WIDGET_CONTROL does not offer such a possibility, I guess.

Thanks for your help!

--
************************************************************ ******************
* Matthias Arnold Klinikum der
Friedrich-Schiller-Universitaet
* Institut fuer Med. Statistik,
Informatik und
* email:iia@imsid.uni-jena.de Dokumentation
* Tel. :+49-3641-634130 Jahnstrasse 3
* FAX :+49-3641-633200 D-07743 Jena
************************************************************ ******************
Re: Draw Widgets [message #41709 is a reply to message #6435] Mon, 22 November 2004 10:26 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Pravesh wrote:
> Hi all:
> I am building an interface to use some of the routines i wrote.
>
> The aim is to allow the user to click on the draw
> widget to select a specific pixel and then grow a
> region based on intensity of that pixel. How do we get
> the interface to supply the pixel co-ordinates to the program? it
> seems tricky to achieve it.. i am using david's info structure...


Maybe this is what you are looking for: Set the /button_events keyword
when creating the draw widget (or set the /draw_button_events to
widget_control later). Then the draw widget will create events when you
click your mouse into it. The pixel coordinates are available via
event.x and event.y. If you want to distinguish between left and right
mouse button, press and release, etc., read "Widget Events Returned by
Draw Widgets" in the online help for "widget_draw".

Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Draw Widgets
Next Topic: Re: I am newer to IDL

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

Current Time: Wed Oct 08 20:03:33 PDT 2025

Total time taken to generate the page: 0.04311 seconds