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

Home » Public Forums » archive » get image from widget_draw
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
get image from widget_draw [message #54256] Thu, 31 May 2007 11:31 Go to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
hello
how get image from widget_draw ?
Re: get image from widget_draw [message #54369 is a reply to message #54256] Fri, 01 June 2007 15:39 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jun 1, 12:13 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> i'm not sure...you mean this one ?
>
> IF (widget EQ 'button_save') THEN BEGIN
> ;image=TVRD(TRUE=1)
> WIDGET_CONTROL,pic,GET_UVALUE=image
> ;help,image
>
> ENDIF
>
> IF (widget EQ 'button_show') THEN BEGIN
> ;TVSCL,image,TRUE=1
> WIDGET_CONTROL,pic,SET_UVALUE=image
> ENDIF

More like:

if (widget eq 'button_save') then begin
widget_control, pic, set_uvalue=image
endif

if (widget eq 'button_show') then begin
widget_control, pic, get_uvalue=image
tvscl, image, true=1
endif

But I wouldn't put "image" directly in the uvalue, I would put it my
state structure or whatever equivalent you are using.


Mike
--
www.michaelgalloy.com
Re: get image from widget_draw [message #54373 is a reply to message #54256] Fri, 01 June 2007 12:14 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
seems something wrong...not works
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cannot install ENVI 4.3 on Ubuntu Linux 7.04 (x86_64)
Next Topic: compiling many routines at once

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

Current Time: Wed Oct 08 15:47:12 PDT 2025

Total time taken to generate the page: 0.00536 seconds