StyleGrid REALbasic Plugin |
|
StyleGrid.ControlCreated Event
This event is fired when the control has been safely created.
ControlCreated()
Parameters
Remarks
You will in all cases want to use this event rather than the Open event. REALbasic fires the Open event of a control before the control has a valid draw context which makes it unsafe. The ControlCreated event fires after the control has a valid draw context which makes it safe.
Example of how to use the ControlCreated event to set up the control:
Sub ControlCreated()
me.Column(1).CellFactoryID = CellFactoryType.SmallCheckBox
me.Column(3).CellFactoryID = CellFactoryType.ProgressBar
me.Column(1).Width = 50
me.Column(2).Width = me.Column(2).Width + 15
me.Column(3).Width = 107
End Sub
Note in the example above then if using REALbasic older than 5.5 then CellFactoryType.SmallCheckBox should be replaced with the number 3 and CellFactoryType.ProgressBar with the number 2.
See Also
StyleGrid Control