procedure TBusinessConfig.LoadDefault(IniFile: TBaseXMLIniFile);
begin
if not CheckVersion(IniFile) then
Exit;
{ 常规 }
SaveOnExit := IniFile.ReadBool(GetSection, cSaveOnExit, SaveOnExit);
SaveToolWindowLayout := IniFile.ReadBool(GetSection, cSaveToolWindowLayout, SaveToolWindowLayout);
SaveActiveFunc := IniFile.ReadBool(GetSection, cSaveActiveFunc, SaveActiveFunc);
SaveLastOpenFuncCount := IniFile.ReadInteger(GetSection, cSaveLastOpenFuncCount, SaveLastOpenFuncCount);
ActiveFunc := IniFile.ReadString(GetSection, cActiveFunc, ActiveFunc);
// TODO: 废弃 OpenFuncs := IniFile.ReadString(GetSection, 'OpenFuncs', OpenFuncs);
DefaultDesktopID := IniFile.ReadString(GetSection, cDefaultDesktopID, DefaultDesktopID);
Style := TViewAttributesStyle(IniFile.ReadInteger(GetSection, cStyle, Integer(DefaultStyle)));
ReadOnlyColor := TColor(IniFile.ReadInteger(GetSection, cReadOnlyColor, Integer(DefaultReadOnlyColor)));
RequiredColor := TColor(IniFile.ReadInteger(GetSection, cRequiredColor, Integer(DefaultRequiredColor)));
{ Messenger }
RunMessenger := IniFile.ReadBool(GetSection, cRunMessenger, RunMessenger);
{ 快捷面板 }
ShortcutFuncs := IniFile.ReadString(GetSection, 'ShortcutFuncs', ShortcutFuncs);
{激活的面板}
ActiveDesktopID := IniFile.ReadString(GetSection, 'ActiveDesktopID', ActiveDesktopID);
{ 工作台 }
[B]//RunFuncs := IniFile.ReadString(GetSection, 'RunFuncs', RunFuncs);[/B]
if Assigned(FOnLoad) then
FOnLoad(Self, IniFile);
end;
接着注释掉上面的粗体看看 |