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

Home » Public Forums » archive » Problem displaying images on 8 bit monitor
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: problem [message #51038 is a reply to message #50579] Tue, 31 October 2006 08:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
taejon writes:

> I have a problem of running this program (I am newbie in IDL...:
>
> When I run this prog (compiles OK) it should when I press the
> 'dismis'-button remove the value in the textfield named 'a0'. But I get
> always the error:
>
> "pointer type required in this context"
>
> can somebody give some help ?

You need to find some way to pass the pointer containing
your program "state" from the efgcalc1 program module, where
it is created, to the event handlers, where it is needed.
Typically, we use the user value of the top-level base
to do this. Put the pointer there:

Widget_Control, tlb, Set_UValue=pstate

And when you need it in your event handlers, retrieve
it from there:

Widget_Control, event.top, Get_UValue=pstate

Cheers,

David

--
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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: overlaying arrow plots
Next Topic: Re: Naming batch files and main-level programs

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

Current Time: Sat Nov 29 23:16:32 PST 2025

Total time taken to generate the page: 0.13955 seconds