Re: Working windows inside an image window? [message #73667] |
Tue, 23 November 2010 05:22 |
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.")
|
|
|