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

Home » Public Forums » archive » idl flythru
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 flythru [message #54139 is a reply to message #54040] Thu, 17 May 2007 22:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
prahladvkumar@gmail.com writes:

> Can u give small example in this regard

Well, sure.

;**********************************************************
PRO Test_Draw_Events, event

IF event.press NE 1 THEN RETURN

CASE event.key OF
5: Print, 'Left Arrow Key'
6: Print, 'Right Arrow Key'
7: Print, 'Up Arrow Key'
8: Print, 'Down Arrow Key'
ELSE:
ENDCASE

END

PRO test
tlb = Widget_Base()
draw = Widget_Draw(tlb, xsize=200, ysize=200, $
/KeyBoard_Events, Event_Pro='Test_Draw_Events')
Widget_Control, tlb, /Realize
XManager, 'test', tlb, /No_Block
Widget_Control, draw, /Input_Focus
END
;**********************************************************

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
Previous Topic: Re: Emacs 22 is out
Next Topic: Re: archived data

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

Current Time: Fri Oct 10 21:40:17 PDT 2025

Total time taken to generate the page: 1.68281 seconds