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

Home » Public Forums » archive » IDLitComponent - Introspection
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
IDLitComponent - Introspection [message #44041] Tue, 10 May 2005 20:40
Robert Barnett is currently offline  Robert Barnett
Messages: 70
Registered: May 2004
Member
Hi,

I've been trying to write my own classes which incorporate IDLitComponent and widget_propertysheet. This allows the user to tinker with object properties via a GUI,

I'm very confused by IDLitComponent::GetPropertyByIdentifier. The method allows you to do a "ClassName::GetProperty, Name=Value",
however "Name" is only known at runtime.

For example

obj -> GetPropertyByIdentifier("BoringProperty", empty_variable)

somehow triggers

obj -> GetProperty, BORINGPROPERTY=empty_variable

This is something that I would very much like to do with my own classes without having to inherit IDLitComponent.

To be more precise, does anyone know how IDLitComponent::GetPropertyByIdentifier tricks the arg_present()
function into thinking that a keyword needs to be set?

P.S. I'm assuming that my class doesn't necessarily implement the ALL keyword and also assuming that I don't use the EXECUTE function.

Cheers,
Robbie

--

nrb@ Robbie Barnett
imag Research Assistant
wsahs Nuclear Medicine & Ultrasound
nsw Westmead Hospital
gov Sydney Australia
au +61 2 9845 7223
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Saving IDL History Across Sessions...
Next Topic: Emacs+IDLWAVE problems

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

Current Time: Wed Oct 08 19:54:03 PDT 2025

Total time taken to generate the page: 0.00459 seconds