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

Home » Public Forums » archive » Re: Adding Widgets to ENVI
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: Adding Widgets to ENVI [message #55877] Mon, 17 September 2007 17:48
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff N. writes:

> If you write a function that gets called from the ENVI menu, you're
> still passed an event structure, so can't you use the "top" element
> (ie, event.top) from that structure to do what you want?

Oh, my gosh. Working in a new editor is worse than
I thought... :-(

Sorry to have bothered you. Thanks.

Cheers,

David

P.S. It's kinda like working those damn doors in a foreign
country. Everything is so different, you forget even the
things you know perfectly well.

--
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.")
Re: Adding Widgets to ENVI [message #55878 is a reply to message #55877] Mon, 17 September 2007 17:32 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
On Sep 17, 7:02 pm, David Fanning <da...@dfanning.com> wrote:
> Folks,
>
> Suppose, for whatever reasion, I did NOT want to add widgets
> to a user function in ENVI with WIDGET_AUTO_BASE. Suppose
> I understood widget programming and felt comfortable building
> my own widgets. How would I go about getting a widget ID
> from ENVI so that I could pass it as a group leader to
> my widget creation function and build a legitimate
> modal widget. (Recall that to make a widget a modal
> widget, you must also specify a group leader for that
> widget.) Can I somehow obtain the TLB for the ENVI
> menu bar?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/


David,

If you write a function that gets called from the ENVI menu, you're
still passed an event structure, so can't you use the "top" element
(ie, event.top) from that structure to do what you want?

Jeff
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Adding Widgets to ENVI
Next Topic: HDF attribute retrieval

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

Current Time: Sat Oct 11 05:17:05 PDT 2025

Total time taken to generate the page: 2.23968 seconds