Re: Setting the zoom_base property in IDLgrWindow [message #91437 is a reply to message #91431] |
Tue, 14 July 2015 15:29  |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
On Tuesday, 14 July 2015 09:33:51 UTC-7, Nuno Ferreira wrote:
> Dear all,
>
> I feel so stupid, this is a very basic question... but shouldn't the line below work?
>
>
> oWin = obj_new('IDLgrWindow', zoom_base=1.25D)
>
>
> I get the following error:
>
> % OBJ_NEW: Illegal keyword value for ZOOM_BASE.
> % Execution halted at: $MAIN$
>
>
> I get the same error when using SetProperty with an IDLgrWindow object. The manual mentions that this property is available for the init and set methods and that the parameter should be a double precision number...
>
> Nuno
This looks like a bug to me, too:
IDL> oWin = obj_new('IDLgrWindow', zoom_base=0.5D)
% OBJ_NEW: Illegal keyword value for ZOOM_BASE.
% Execution halted at: $MAIN$
IDL> oWin = obj_new('IDLgrWindow')
IDL> oWin->GetProperty,zoom_base=zb
IDL> zb
2.0000000000000000
IDL> oWin->SetProperty,zoom_base=1.5d
% IDLGRWINDOW::SETPROPERTY: Illegal keyword value for ZOOM_BASE.
% Execution halted at: $MAIN$
IDL> oWin->SetProperty,zoom_base=2.0d
% IDLGRWINDOW::SETPROPERTY: Illegal keyword value for ZOOM_BASE.
% Execution halted at: $MAIN$
Would someone from Exelis/Harris like to chime in?
Cheers,
-Dick
Dick Jackson Software Consulting Inc.
Victoria, BC, Canada --- http://www.d-jackson.com
|
|
|