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

Home » Public Forums » archive » Properties
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
Properties [message #37418] Fri, 12 December 2003 13:42
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
OK, I'm trying to hijack the new Properties capabilities of iTools for
my own devious purposes, and I've managed whip up this test:

pro TestProps::Config
b=widget_base(/COLUMN)
; Create and initialize the component.
p=widget_propertysheet(b,VALUE=self)
widget_control,b,SET_UVALUE=self,/REALIZE
XManager,'TestPropsPropertySheet',b,/NO_BLOCK
end

function TestProps::Init
if self->IDLitComponent::Init(NAME='TestProps') eq 0 then return,0
self->RegisterProperty,'MY_FIRST_PROPERTY',/BOOLEAN, $
NAME='Propertus Incipiens'
return,1
end

pro TestProps__define
st={TestProps, $
INHERITS IDLitComponent, $
data:0}
end

Sadly enough, here's what happens:

IDL> a=obj_new('testprops')
IDL> a->Config
% Keyword MY_FIRST_PROPERTY not allowed in call to: WIDGET_PROPERTYSHEET
% Execution halted at: TESTPROPS::CONFIG 5
/home/jdsmith/idl/irs_cubism/cubism/cube/testprops__define.p ro
% $MAIN$

I'm really not sure how a property ID is getting transformed into a
keyword in this call... sounds like some internal _EXTRA hi-jinx to
me. What ingredient am I missing?

Thanks,

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Resolve iTools for Virtual Machine
Next Topic: Does IDL have function for pseudoinverse of a matrix

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

Current Time: Thu Oct 09 22:29:13 PDT 2025

Total time taken to generate the page: 0.56182 seconds