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

Home » Public Forums » archive » Re: selection box in widget program
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: selection box in widget program [message #55987] Wed, 26 September 2007 10:20 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
Ok, here's what I don't get about the way you propose. Let's say I
have a button on my widget application that says "calculate image
background". You click it, and the event handler sends you off to a
routine that is going to ask you to select a region of the image, do
the processing, update the program state, and return.

If I need to let the regular draw widget event handler handle the
click and drag events when drawing the box, then I need to have a flag
variable to tell the system that the user had previously clicked
"calculate image background", and another flag to say that a click-and-
drag is in progress, and that the program should ignore other events
while this is going on. Moreover, there are many possible situations
in which the user might need to click and drag a box, so each of those
possible situations would also need their own flag variable, and all
of those flags would have to be checked by the event handler whenever
a button press or motion event happened, so that it would know what to
do.

Sounds too complicated, for something so simple? No?

Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Order of argument evaluation (Was: Re: making a checkerboard array?)
Next Topic: Reading Excel written .dll files into IDL

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

Current Time: Thu Oct 09 06:03:09 PDT 2025

Total time taken to generate the page: 0.00649 seconds