wxPGProperty SetAttribute...

BlitzMax Modules Forums/Brucey's Modules/wxPGProperty SetAttribute...

Ah...

SetAttribute has nothing to do with the value of the property :-p
Property attributes are a bit like having a Type with a TMap field attached. You SetAttributeXXX("someName", someValue) and that is stored in the Property object, for retrieval later via GetAttributeXXX("someName").

They are mostly used for holding settings that are useful to different kinds of Properties, like for instance, the starting directory of a File Property.
But they are also available to use yourself :
		prop1.SetAttributeInt("abcd", 432)
		DebugLog prop1.GetAttributeAsInt("abcd", 100)

...

DebugLog:432


If you want to set the value, you use SetValueXXXX() or SetPropertyValueXXXX(property, ...)

:-)

Before you say what I know you're going to say... I know... I'm working on that right now :-p