DataGrid REALbasic Plugin

DataGridCell.SetStyleInnerObjectPtr Method

Sets the style for the cell object from a given integer pointer.

   ptr as Integer)


The pointer to assign.


The purpose of this is to allow binary compatible versions of StyleGrid and DataGrid to be able to share the same style object, that is you can assign the inner object of a StyleGridStyle to a DataGridCell.

As noted above then this is advanced feature, and you are responsible for not assigning rubbish integer pointer to it if you use it.

SetStyleInnerObjectPtr(ptr as Integer)

InnerObject pointers from a StyleGridStyle or DataGridStyle can be obtained with the InnerObjectPtr property on the Style object.

You may not store inner object pointers in any kind of variables or arrays because they might not be valid once they use it, that is if their actual objects lifetime has ended when putting them to use. Always only use the Inner Object pointers right after you get them.

See Also

DataGridCell Class