GUI and checkboxes error [message #85010] |
Fri, 21 June 2013 12:36  |
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   |
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  |
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.")
|
|
|