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

Home » Public Forums » archive » Re: Events in IDLDrawWidget
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
Re: Events in IDLDrawWidget [message #25706] Mon, 09 July 2001 17:34 Go to next message
Kristine Hensel is currently offline  Kristine Hensel
Messages: 26
Registered: June 1999
Junior Member
Bert Bierman wrote:
> But I get the motion-response after I released the button.
> How can I get motion-events during the buttonpress state?

Do you have motion events turned on for the draw widget? e.g.

Widget_Control, info.DrawID, Draw_Motion_Events=1

Kristine
--
Kristine Hensel
Environmental Systems & Services Phone: +61-3-9835-7901
20 Council St.
Hawthorn East, VIC 3123 Australia e-mail: kristine@esands.com
Re: Events in IDLDrawWidget [message #25710 is a reply to message #25706] Mon, 09 July 2001 08:51 Go to previous messageGo to next message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Bert Bierman writes:

> I am trying to make a gui in VB which should replace the idl-gui of
> slicer3.
> So I like to be able to press the mousebutton-down and move the mouse
> while
> the button stays down.
> A procedure "motion" and "buttonpressed" is defined in a .pro file and
> the calls
> from VB succeed.
> But I get the motion-response after I released the button.
> How can I get motion-events during the buttonpress state?
> Do I need to use the trackball? My impression was that that is the
> solution
> if you use object-graphics, which I don't.

I know very little about how widget programs
work in VB, but you certainly can use the
trackball whenever you like. It has nothing
whatsoever to do with object graphics.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Events in IDLDrawWidget [message #25746 is a reply to message #25706] Thu, 12 July 2001 07:45 Go to previous message
Bert Bierman is currently offline  Bert Bierman
Messages: 5
Registered: July 2001
Junior Member
Kristine Hensel wrote:

> Bert Bierman wrote:
>> But I get the motion-response after I released the button.
>> How can I get motion-events during the buttonpress state?
>
> Do you have motion events turned on for the draw widget? e.g.
>
> Widget_Control, info.DrawID, Draw_Motion_Events=1

Hello Kristine,

Well I had them turned on, but I learned from your question you have to
turn them on
also inside the event-handling routine. e.g. in the button_press.
I made a test_events which calls the events based on the press and
release-event
using: widget_control, wid, event_pro="test_event"
If used within IDL that does the trick.

Sadly if using the same code from VB it seems like VB is holding
all the events until no more events are generated and then sends all the
events.
It also does not use the already mentioned test_event-routine.

So no solution ........yet.

Greetings
Bert
o--o

E.P.B. Bierman
TNO Human Factors
P.O. Box 23
3769 ZG Soesterberg
The Netherlands
Tel: + 31 3463 56 304
fax: + 31 3463 53 977
email: bierman@tm.tno.nl





>
> Kristine
> --
> Kristine Hensel
> Environmental Systems & Services Phone: +61-3-9835-7901
> 20 Council St.
> Hawthorn East, VIC 3123 Australia e-mail: kristine@esands.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DV movie for IDL
Next Topic: Re: curvefit question

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

Current Time: Wed Oct 08 14:53:45 PDT 2025

Total time taken to generate the page: 0.00483 seconds