Enable (re)storing a VirtualTree layout on different forms without naming conflicts in registry. Plus: use that in the new table editor.

This commit is contained in:
Ansgar Becker
2009-05-12 22:41:24 +00:00
parent 7f32b33505
commit 5209995eed
2 changed files with 20 additions and 9 deletions

View File

@ -182,6 +182,8 @@ begin
InheritFont(Font);
FixVT(listColumns);
FixVT(treeIndexes);
Mainform.RestoreListSetup(listColumns);
Mainform.RestoreListSetup(treeIndexes);
FLoaded := False;
comboRowFormat.Items.CommaText := 'DEFAULT,DYNAMIC,FIXED,COMPRESSED,REDUNDANT,COMPACT';
comboInsertMethod.Items.CommaText := 'NO,FIRST,LAST';
@ -204,6 +206,8 @@ begin
MainReg.WriteInteger(REGNAME_TABLEEDITOR_WIDTH, Width);
MainReg.WriteInteger(REGNAME_TABLEEDITOR_HEIGHT, Height);
MainReg.WriteInteger(REGNAME_TABLEEDITOR_TABSHEIGHT, PageControlMain.Height);
Mainform.SaveListSetup(listColumns);
Mainform.SaveListSetup(treeIndexes);
end;