Cell editor Events
Event BeforeCellEditorEnter(fCancel
As Boolean)
atb_BeforeCellEditorEnter(fCancel)
Raised before the internal cell editor is launched.
- fCancel
- True on entry of the event procedure. Set fCancel = False to inhibit the editor.
Event AfterCellEditorExit()
atb_AfterCellEditorExit(fCancel)
Raised after cell editing has been finished.
This happens when you enter a cell in the grid view of the atb control:
- BeforeCellEditorEnter event is fired with fCancel set to False.
- If your code hasn't set fCancel to True, the internal cell editor is launched.
When you leave the cell:
- The internal cell editor is stopped (if it was launched), its content is saved.
- AfterCellEditorExit is fired.
Here are the guidelines to design your own cell editor:
In the BeforeCellEnter event routine:
- Let fCancel be True.
- Set the value of your editor control according to atb.ListValue.
- Dimension your editor control with the cell sizing properties (atb.CellTop etc.).
- Make your editor control visible.
- Set the focus to your editor control.
In the AfterCellEditorExit event routine:
- Store your editor's value to atb.ListValue.
- Hide your editor control.