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

Home » Public Forums » archive » Re: CW_ZOOM problem
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: CW_ZOOM problem [message #56704] Sat, 10 November 2007 17:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kerber80@gmail.com writes:

> My program open image file (user pick which one from menu)
> for menu i have events and processing it in event handler
>
> only after it i have image size
> but ZOOM widget realized before it... So how "re-build" widget for
> image size ?

Ah, well, the author of this program didn't anticipate
this kind of situation. :-)

Here is my suggestion. Modify the ZOOM_SET_VALUE procedure
to allow you to pass not just a new image, but new draw
widget sizes, too. (You will have to make the "value"
a structure, probably.) Then, just modify the draw widgets
(you can find their IDs in the state structure) with your
new values.

Or, you could write your own code as a widget object
and do it right. :-)

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
Previous Topic: CW_ZOOM problem
Next Topic: Re: IDL T-Shirt Has Arrived!

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

Current Time: Sat Oct 11 00:04:08 PDT 2025

Total time taken to generate the page: 0.00294 seconds