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

Home » Public Forums » archive » Re: problem with widget_draw and draw_button_events under windows
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 widget_draw and draw_button_events under windows [message #53432 is a reply to message #53430] Fri, 13 April 2007 07:11 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Justus Skorps writes:

> Now my problem: Normally, when I move the cursor above the draw
> window, it changes to a crosshair, when I leave the draw window, it
> changes back to an pointer. But after I used the function mentioned
> above (with correct behaviour), the cursor doesn't change back, it
> stays a crosshair all over the screen, and I am not able to press any
> other button, slider,... in my gui or else where. The only solution is
> to bring another program, i.e. the windows explorer, to front and then
> change back to IDL/the gui..then everything is okay again.
>
> But this problem appears only when using the gui under WindowsXP with
> IDL 6.2., on Solaris with IDL 6.2. I have no such problem. Anybody
> knows a solution to get rid of this problem?

I've written an awful lot of widget programs on Windows XP
and never noticed this problem, which leads me to suspect
a programming error rather than something more sinister.

I wonder if adding a CLEAR_EVENTS keyword to the WIDGET_CONTROL
line where you turn button processing OFF would help? Also,
do you realize when you get a button event in a draw widget
that TWO events are generated? One for the button down and
one for the button up. It sounds to me like a draw widget
event is "hanging" somewhere and not getting processed.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fixes For IDL/ENVI Seg Faults Due To Linux X11 & Mesa Library Upgrades
Next Topic: Challenging question - array curve fitting

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

Current Time: Thu Oct 09 22:50:38 PDT 2025

Total time taken to generate the page: 1.12121 seconds