wxPGProperty SetAttribute...

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

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Shouldn't you provide an attribute name?
Yeah, shouldn't it be given its current name?

I create a prop:
Local prop:wxIntProperty = New wxIntProperty.Create("X", wxPG_LABEL, 5)


To set it's value:
prop.SetAttributeInt("", 10)

Why should I need to fill the attribute name (or, why is there even a name parameter)? the object should already know its own name. Nonsense.

That method should only be for setting the value, not the name as well. I just don't understand why it requires a name..

EDIT: I think my assumption earlier on was: SetAttributexxx was just a combination of setname and setvalue, and if I just wanted to set the value I was supposed to keep the name parameter blank.