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

Home » Public Forums » archive » 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
Problem with cgColorBar in resizable Window [message #75366] Sun, 06 March 2011 04:42
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
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: Re: IDL Astron Library now uses Coyote Graphics
Next Topic: Re: Problem with cgColorBar in resizable Window

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

Current Time: Wed Oct 08 13:40:44 PDT 2025

Total time taken to generate the page: 0.00498 seconds