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

Home » Public Forums » archive » IDL Widget PDMenu
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
IDL Widget PDMenu [message #1113] Thu, 05 August 1993 09:38
dean is currently offline  dean
Messages: 55
Registered: March 1993
Member
Can someone help me..I am attempting to make a menu widget using the
example in the Training Course from page 147. Whenever I try this pro on
the VAX/VMS or Windows version of IDL, I get following error. Can someone
point out my error?

Kelly Dean

+++++++++++++++++++++++++++Error from IDL +++++++++++++++++++++++++++++++++++++

IDL> image
% Compiled module: IMAGE.
% Compiled module: CW_PDMENU.
% Compiled module: XMANAGER.
% WIDGET_CONTROL: Class of specified widget has no value: 2585152
% Execution halted at IMAGE_EVENT <UD2:[DEAN.IDL]IMAGE.PRO;4( 3)>
(WIDGET_CONTROL).
% Called from XMANAGER <@IDL_DIR:[LIB]WIDGETS.TLB(XMANAGER)( 402)>.
% Called from IMAGE <UD2:[DEAN.IDL]IMAGE.PRO;4( 33)>.
% Called from $MAIN$ .

+++++++++++++++++++++++++++++++++++ image.pro ++++++++++++++++++++++++++++++++
PRO image_event, event

Widget_Control, event.id, GET_VALUE = test

CASE test OF
'Sobel' : PRINT,"Testing Sobel"
'Roberts' : PRINT,"Testing Roberts"
'Boxcar' : PRINT,"Testing Boxcar"
'Median' : PRINT,"Testing Median"
'Original Image' : PRINT,"Testing Original"
'Done' : Widget_Control, event.top, /Destroy
ENDCASE
END

PRO image
struct = { PDMENU, flags:0, name:''}
menu = [ { PDMENU, 1, 'Image Processing'}, $
{PDMENU, 1, 'Edge Enhancement'}, $
{PDMENU, 0, 'SOBEL'}, $
{PDMENU, 2, 'Roberts'}, $
{PDMENU, 1, 'Smoothing'}, $
{PDMENU, 0, 'Boxcar'}, $
{PDMENU, 2, 'Median'}, $
{PDMENU, 2, 'Original Image'}, $
{ PDMENU, 2, 'Done'} ]
base = Widget_Base(Title='Pull-Down Menu', /Column)
menubase = Widget_Base(base)
PDMENU = CW_PDMenu(menubase, menu, /Return_Name)
Widget_Control, base, /Realize

XMANAGER, 'image', base
END
********************************************************** \ *****
Kelly Dean \
Cooperative Institute for Research in the Atmosphere ___\
Foothills Campus /|
Colorado State University / |\
Fort Collins, CO 80523 / | \
E-MAIL: DEAN%SOL.DNET@SIRIUS.CIRA.COLOSTATE.EDU | \
************************************************************ **************
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SHADE_SURF problems and questions
Next Topic: Re: Opening Kodak-Photo-CD

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

Current Time: Wed Oct 08 14:32:50 PDT 2025

Total time taken to generate the page: 0.00644 seconds