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

Home » Public Forums » archive » Re: Working windows inside an image window?
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: Working windows inside an image window? [message #73667] Tue, 23 November 2010 05:22
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris writes:

> Hi Widget-freaks,
> is this in IDL possible?:

Are you kidding? Everything is possible. It's software
after all. ;-)

> 1. Display a large image with scrollbars wherein someone can scroll
> into the direction the mouse touches the window border

IDL doesn't know anything at all about window borders.
I suppose you could fake window borders with draw widgets
configured to *look* like window borders, and with their
event handlers reconfigured to make them appear to be
buttons. Or, you could just put buttons with bitmaps
on the four edges of your draw widget.

> 2. Display a rectangle of a custom size centered to the mouse cursor
> which was drawn with the right mouse button and moves together with
> the mouse cursor if left mouse button is pressed

If your image and your rectangle were on different "layers"
this could easily be accomplished. The Catalyst Library has
a CatLayer object to perform this kind of slight of hand.

> 3. Perform a predefined action (extra widget toolbox) inside the
> rectangle if the left mouse button is released

What you do in an event handler is your own business.
Do whatever your skills and conscience allow. Remember,
whatever happens in Vegas, stays in Vegas. :-)

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
Previous Topic: Working windows inside an image window?
Next Topic: Re: Common block compilation error

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

Current Time: Thu Oct 09 15:20:49 PDT 2025

Total time taken to generate the page: 0.63821 seconds