There seems to be no way to get rid of columns without releasing the tooltip and reacquiring it. This poses a problem when the column spacing needs to be changed while the tooltip is already visible, because the only way to have variable column spacing is to use AddColumn() after SetCellMarginH(). Even if I wanted uniform spacing, there's no way to adjust the margins of the existing columns.
This also complicates code that otherwise doesn't need to care if the tooltip is already visible, because it's just going to Clear() it and set it up again.
My suggestion would be twofold:
- Support a 0 count of columns in both Acquire() and SetColumnLayout(). This would delete all columns
- If Acquire() or SetColumnLayout() is given a number of columns that's fewer than the existing column set, all extra columns should be deleted.
I would further recommend that Acquire()/SetColumnLayout() should update the margins if the cell_margin_h has changed since the column was originally created.
|eridius||Jan 23, 2013 at 06:39 UTC||Create|
- 1 comment