Re: How to get windows id or title by clicking on it [message #66888 is a reply to message #66887] |
Thu, 18 June 2009 20:17   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jeanphi62 writes:
> tlb = widget_base(title="mywindow", MBAR=mbar, /col, $
> event_pro=eventHandler) ??
It *used* to be the case, although probably not anymore,
that you would get very strange results if you used the
EVENT_PRO keyword to assign an event handler to a widget
that was going to be managed directly by XMANAGER (as
the tlb is here). It still makes me nervous to see it,
although I have seen it in ITTVIS code, too, presumably
without ill effect.
But I still assign the TLB event handler with the EVENT_HANDLER
keyword on the XMANAGER call. Old habits die hard, I guess. :-)
Cheers,
Dav d
--
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.")
|
|
|