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

Home » Public Forums » archive » Re: XMANAGER: How many times to call?
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: XMANAGER: How many times to call? [message #12962] Tue, 22 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Rose (rmlongfield@my-dejanews.com) writes:

> I have a row of images and I want to choose one of them to do some analysis.
> To make it clear which one I am analyzing, I place a label underneath with
> 'ACTIVE' when I click on the image.
>
> My question is, I have to call XMANAGER once to control the
> widget_base. The children of this base are widget_draw (with button_events
> and an event_pro keyword ) and the widget_label (also with an event_pro
> keyword set). This label event is supposed to recieve a pseudo event from
> the draw_widget event and change to 'Active'. The only way I can get this to
> work is if I include another XMANAGER statement with the event_pro program
> and the widget ID's of the label.

This sounds quite odd to me and I can't imagine what might
be happening. In general, each "widget program", rooted at
the top-level base, has a single XManager call. I've never
once had to call XManager from within a program that was
running with XManager.

I wonder if the problem is that label widgets don't normally
generate events. I've never tried to send a pseudo event
to a label, although I have sent timer events to labels,
which leads me to suspect this is *not* the problem.

In any case, a row of draw widgets, each with a label
underneath, immediately suggests to me a compound widget.
If you really want something neat, write that compound
widget as an object. Then, when the window becomes
active, it can tell all the other windows to shut up. :-)

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Complementary set.
Next Topic: Re: Coyote's Guide to IDL Progamming Update

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

Current Time: Fri Oct 10 13:38:06 PDT 2025

Total time taken to generate the page: 0.71991 seconds