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

Home » Public Forums » archive » Re: How to get windows id or title by clicking on it
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: How to get windows id or title by clicking on it [message #66892 is a reply to message #66891] Thu, 18 June 2009 19:44 Go to previous messageGo to previous message
Jeanphi62 is currently offline  Jeanphi62
Messages: 10
Registered: June 2009
Junior Member
To sum up :
I have to link the event tlb_kill_request_events with the function
close_window.pro and the event kbrd_focus_events with the function
test_window.pro (this function gives me the number of the window) so I
tried :

tlb = widget_base(title="mywindow", MBAR=mbar, /col, $
/tlb_kill_request_events, event_pro=close_window, $
/kbrd_focus_events, event_pro='test_window')

but the software crashes.

If I just do :
tlb = widget_base(title="mywindow", MBAR=mbar, /col, $
/kbrd_focus_events, event_pro='test_window')
the software obviously doesn't link the will to destroy the widget
with the top right cross button with the function close_window
anymore.

I tried to create parent and child structure :
tlb0 = widget_base(title="mywindow", $
/tlb_kill_request_events, event_pro=close_window)
tlb = widget_base(GROUP_LEADER=tlb0, $
MBAR=mbar, /col, $
/kbrd_focus_events, event_pro='test_window')

but, one more time, IDL only considers the second key word and doesn't
link the will to destroy the widget with the top right cross button
with the function close_window.

So what could I do to link with this widget_base both events ?

Thank you for advance

Cheers

Jeanphi
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get windows id or title by clicking on it
Next Topic: Re: Problems with tying ROI's to image

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

Current Time: Thu Oct 09 20:46:28 PDT 2025

Total time taken to generate the page: 0.63802 seconds