wxPGProperty SetAttribute...

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

Great!

Except for the values not always updating on the propgrid: When a value is changed using wxPGProperty.SetValueXXX() you have to click around in the property grid to get it to show (I assume that means the grid just needs to be updated).

However, when a value is changed using wxPropertyGrid.SetPropertyValueXXX() the changes are instantly visible (in my current project there is still no wxColourProperty.SetValueColour() so I use the work-around: wxPropertyGrid.SetPropertyValueColour(prop, colour) - the changes for colour properties are instant, while others are not).

Any Ideas? (I've tried wxPropertyGrid.Update() and it did nothing)

EDIT: I just found wxPropertyGrid.UpdateProps() - but it seems to hang my code. It does not go to show debug information, it just hangs indefinitely.

EDIT2: wxPropertyGrid.Refresh() is doing the trick! (leaves doubts about the UpdateProps() method though..)

Thanks.