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

Home » Public Forums » archive » How can I force the x=image(...) command to give me a window that is the same size as my image?
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 can I force the x=image(...) command to give me a window that is the same size as my image? [message #88594 is a reply to message #88593] Wed, 14 May 2014 16:10 Go to previous messageGo to previous message
munka is currently offline  munka
Messages: 36
Registered: December 2009
Member
On Wednesday, May 14, 2014 3:23:25 PM UTC-7, David Fanning wrote:
> mynameismunka@gmail.com writes:
>
>
>
>> Would my MOUSE_DOWN_HANDLER still work?
>
>>
>
>> Like this:
>
>>
>
>> im1.window.MOUSE_DOWN_HANDLER='MouseDown'
>
>> im1.window.MOUSE_UP_HANDLER='MouseUp'
>
>> im1.window.Keyboard_Handler='KeyboardHandler'
>
>
>
> The program cgCmdWindow (cgWindow is a wrapper for this program) is
>
> already set up for handling widget events. You simply need to write your
>
> own event handler for the program, tell it what events you want it to
>
> handle (button events, for example), and off you go. It is incredibly
>
> simple and simple-minded. Probably why it works so well. ;-)
>
>
>
> You don't program it with "handlers", rather you just respond to the
>
> events themselves. Widget Programming 101, really.
>
>
>
> If you didn't want to do it yourself, it might take 15 minutes for me to
>
> code something up for you. The program cgCmdWindow is basically a draw
>
> widget that knows how to "execute" IDL graphics commands that are added
>
> to it. Commands like cgImage.
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

I probably need to take Widget Programming 101 :) I'll look into this, but I think for now, its best to stick with what I know works.
[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
Previous Topic: How to set error bar thickness in ERRORPLOT()?
Next Topic: Trouble resizing image

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

Current Time: Fri Oct 10 09:00:31 PDT 2025

Total time taken to generate the page: 7.20088 seconds