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

Home » Public Forums » archive » Re: Sharing an info structure
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: Sharing an info structure [message #19950] Sat, 06 May 2000 00:00 Go to previous message
Daniel Peduzzi is currently offline  Daniel Peduzzi
Messages: 29
Registered: June 1999
Junior Member
Mark Guagenti wrote in message ...
>
> Hello,
> I'm just starting to learn IDL and am working on an application that has a
> main window(widget) and also has another window(widget) that I want to use
> as a toolbar. My problem seems to be when I call a procedure when one of
> the buttons gets clicked from the toolbar. I want to be able to get the
> the structure (called info) that is used for my top level base, and use
> that information in the procedure I called from my toolbar window. If
> anyone could please explain how I can do this it would be very
> apreciated. Thanks!
>

One way to do this is to save the main window TLB identifier as a user
value for your toolbar TLB. Then, whenever you write an event_pro for
a button on your toolbar, you can include the lines:

widget_control, event.top, get_uvalue=main_tlb
widget_control, main_tlb, get_uvalue=info


Dan

---------------------------------------
Dan Peduzzi
peduzzi@mediaone.net
---------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: avhrr proccessing
Next Topic: Re: Func define

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

Current Time: Wed Oct 08 19:57:10 PDT 2025

Total time taken to generate the page: 0.00427 seconds