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

Home » Public Forums » archive » Re: Problem with cgColorBar in resizable Window
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
Re: Problem with cgColorBar in resizable Window [message #75365] Sun, 06 March 2011 05:11
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
Hi again,

Forget the post, /ADDCMD was the clue of course...

On 03/06/2011 01:42 PM, Fabzou wrote:
> Hi,
>
> I am having trouble with the following small program. It runs very fine
> without setting /Resizable but setting the keyword would erase the
> device and plot only the colorbar... Am I missing something here???
>
> pro test_cgImage, RESIZABLE = resizable
> ;Data
> img = cgDemoData(18)
> ; Window size
> xs = 550
> ys = 400
> if KEYWORD_SET(RESIZABLE) then begin
> cgWindow, WXSIZE=xs, WYSIZE=ys
> cgControl, EXECUTE=0
> Window = 1
> endif else begin
> cgDisplay, /FREE, XSIZE=xs, YSIZE=ys
> endelse
>
> cgImage, img, WINDOW = window, /SAVE, /NORMAL, $
> POSITION = [0.05,0.09,0.8,0.9], /KEEP_ASPECT_RATIO, /AXES
> cgColorbar, Position= [0.8,0.15,0.83,0.8], /VERTICAL, /RIGHT,$
> WINDOW=window
>
> if KEYWORD_SET(RESIZABLE) then cgControl, EXECUTE=1
> end
>
>
> Thanks a lot,
>
> Fabien
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with cgColorBar in resizable Window
Next Topic: Re: v8 plot challenge

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

Current Time: Wed Oct 08 11:39:34 PDT 2025

Total time taken to generate the page: 0.00518 seconds