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

Home » Public Forums » archive » modal widgets problem
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
modal widgets problem [message #39145] Tue, 20 April 2004 11:22
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

I read David Fanning's book about modal, blocking and non-blocking
widgets, and some newsgroup articles, rather carefully, but I am still
stuck with the following problem:

I have a GUI called 'display_array_gui' which can display an array,
change min and max values, colortables etc. From display_array_gui, I
want to call a 'histogram_gui', which displays a histogram of the array,
and I want to click into the histogram to adjust the min and max in
display_array_gui.

While histogram_gui is open, I want display_array_gui to be blocked from
receiving input (e.g., its min and max fields, because they would
interfere with the histogram). But when I click into the histogram, I
want to have display_array_gui update its min and max for the display.
The new min or max will be sent to display_array_gui through an event
structure and widget_control, .., send_event = ...

If I use the modal and group_leader keywords in histogram_gui's tlb, it
will block display_array_gui, but the display update will be delayed
until histogram_gui is closed. If I don't, then display_array_gui is not
blocked and could in principle have parameters changed which would
interfere with the histogram display.

I tried to set display_array_gui's tlb to insensitive when histogram_gui
is opened. That works in the first place, but seems quite unprofessional
to me, and I haven't figured out yet how to make it sensitive again when
histogram_gui is closed (I might find that out with some more trying).

Any ideas?

Thanks a lot,
Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: object methods as friends
Next Topic: Re: modal widgets problem

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

Current Time: Fri Oct 10 00:50:00 PDT 2025

Total time taken to generate the page: 0.95704 seconds