Can an instance of wxGridCellChoiceEditor be used more than once?
Can an instance of wxGridCellChoiceEditor be used more than once?
Can the same dynamically created instance of wxGridCellChoiceEditor be assigned to more than one cell by wxGrid::SetCellEditor()?
Re: Can an instance of wxGridCellChoiceEditor be used more than once?
All wxGridCell***Editor classes derive from wxRefCounter. That means that they are "shared" by all cells that use it.
The class is deleted really when it's internal reference counter (how many users for this instance) reaches zero.
So the answer is yes.
The editor's internal control is only created when the editor gets action, and destroyed when it finishes (the user leaves the cell by pressing some key).
The class is deleted really when it's internal reference counter (how many users for this instance) reaches zero.
So the answer is yes.
The editor's internal control is only created when the editor gets action, and destroyed when it finishes (the user leaves the cell by pressing some key).