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

Home » Public Forums » archive » Re: IDL 6.3 segmentation fault
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: IDL 6.3 segmentation fault [message #48929 is a reply to message #48927] Thu, 01 June 2006 08:55 Go to previous messageGo to previous message
shd is currently offline  shd
Messages: 4
Registered: June 2006
Junior Member
David Fanning wrote:
>
> Strangely written widget program!
>
> This is not an event handler, so I presume it is a KILL_NOTIFY
> callback. But, assigned to two different widgets!? I suggest
> you are not killing what you *think* you are killing. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/

<rereads his post... smacks his forehead>
Ok, I see the confusion. Clarification:

==============================
pro _exit, top
widget_control, top, /DESTROY
end

pro action_event, event
widget_control, event.id, GET_UVALUE=action

case action of
...
'exit': _exit, event.top
...
endcase
end

pro build_gui
...

; Create 'File' menu.
wmenu = widget_button(mbar, VALUE='File', /MENU, $
EVENT_PRO='action_event')
...
w = widget_button(wmenu, VALUE='Exit', UVALUE='exit', /SEPARATOR)
...

; Create toolbar.
wtb = widget_base(tlb, UNAME='toolbar', /ROW, /TOOLBAR, $
EVENT_PRO='action_event')
...
w = widget_button(wtb, VALUE='Exit', UVALUE='exit', $
TOOLTIP='Exit program.')
...
end
==============================

I probably should have just said that in the first place, huh?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget_control, event.TOP, /destroy
Next Topic: question about plot contours over a color figure

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

Current Time: Sat Oct 11 06:13:45 PDT 2025

Total time taken to generate the page: 0.88270 seconds