DataGrid REALbasic Plugin

DataGridCell.SetPictureInnerObjectPtr Method

Sets the picture 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 picture object, that is you can assign the inner object of a StyleGridPicture 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.

SetPictureInnerObjectPtr(ptr as Integer)

InnerObject pointers from a StyleGridPicture or DataGridPicture 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