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 #66891 is a reply to message #66890] Thu, 18 June 2009 19:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeanphi62 writes:

> 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.

No, no. You can only have one event handler for a widget.
When you get into that event handler, you can decide if the
event is a kill request or a keyboard focus event:

thisEventName = Tag_Names(event)
CASE thisEventName OF

'WIDGET_KILL_REQUEST': BEGIN....

'WIDGET_KBRD_FOCUS': BEGIN...

ELSE: Print, 'Yikes. Do not have a clue!!'

ENDCASE

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: Wed Oct 08 20:00:02 PDT 2025

Total time taken to generate the page: 0.00491 seconds