[LEFT][SIZE=2]this[/SIZE].[SIZE=2]grid[/SIZE] = [SIZE=2]new[/SIZE] CGrid([SIZE=2]control[/SIZE]);
// Used to be this.grid = new CGrid();[/LEFT]
[LEFT]Suggest the CGrid component constructor be required to pass in a CControl parameter. Please deprecate the no-args constructor here. Otherwise things work a bit screwy.[/LEFT]
You also have to call “dockable.setVisible( false )”. Removing a Dockable from the CControl just disables any support regarding locations, colors and stuff like that. It does not remove the Dockable from the tree of station/dockables.
As for CGrid: there are cases when one might not want to have Dockables automatically registering themselves. For example if someone builds a set of grids and later applies only one of them. So I am reluctant of making the default constructor deprecated.