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

Home » Public Forums » archive » GUI and checkboxes error
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
GUI and checkboxes error [message #85010] Fri, 21 June 2013 12:36 Go to next message
Martín Garay-MacLea is currently offline  Martín Garay-MacLea
Messages: 4
Registered: May 2013
Junior Member
Hi, I am trying to put some checkboxes into an existing idl gui, and every time i click on the checkbox this error appears.

% Expression must be a structure in this context: CMD.

This cmd variable is associated to an event handler, which is getting the structure of the file where the gui is defined, and storing it for use. I just want the checkbox to check or uncheck, so as to use it later on for determining user defined options for the program.

Thank you for any help you might give me.
Re: GUI and checkboxes error [message #85011 is a reply to message #85010] Fri, 21 June 2013 12:39 Go to previous messageGo to next message
Martín Garay-MacLea is currently offline  Martín Garay-MacLea
Messages: 4
Registered: May 2013
Junior Member
On Friday, June 21, 2013 3:36:15 PM UTC-4, Martín Garay-MacLean wrote:
> Hi, I am trying to put some checkboxes into an existing idl gui, and every time i click on the checkbox this error appears.
>
>
>
> % Expression must be a structure in this context: CMD.
>
>
>
> This cmd variable is associated to an event handler, which is getting the structure of the file where the gui is defined, and storing it for use. I just want the checkbox to check or uncheck, so as to use it later on for determining user defined options for the program.
>
>
>
> Thank you for any help you might give me.

I forgot to post the procedure where the error is happening.

Widget_Control, event.id, Get_UValue=cmd
Call_Method, cmd.method, cmd.object, event

These are the only lines of code it has.
Re: GUI and checkboxes error [message #85012 is a reply to message #85011] Fri, 21 June 2013 13:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Martín Garay-MacLean writes:

> I forgot to post the procedure where the error is happening.
>
> Widget_Control, event.id, Get_UValue=cmd
> Call_Method, cmd.method, cmd.object, event
>
> These are the only lines of code it has.

Well, I would put "Help, cmd" just in front of your Call_Method call and
see just want cmd is, if it is not a structure.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array with float indices.
Next Topic: National Hiking Day

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

Current Time: Wed Oct 08 11:43:18 PDT 2025

Total time taken to generate the page: 0.00512 seconds