//--------------------------------------------------------------------------- void __fastcall TScpExplorerForm::RestoreFormParams() { assert(Configuration); TCustomScpExplorerForm::RestoreFormParams(); RestoreForm(WinConfiguration->ScpExplorer.WindowParams, this); }
//--------------------------------------------------------------------------- void __fastcall TLogForm::CreateParams(TCreateParams & Params) { if (!FFormRestored) { FFormRestored = True; assert(Configuration); RestoreForm(WinConfiguration->LogWindowParams, this); } TForm::CreateParams(Params); Params.WndParent = GetDesktopWindow(); }
//--------------------------------------------------------------------------- void __fastcall TSynchronizeChecklistDialog::CreateParams(TCreateParams & Params) { if (!FFormRestored) { FFormRestored = True; UnicodeString WindowParams = CustomWinConfiguration->SynchronizeChecklist.WindowParams; bool CustomPos = (StrToIntDef(::CutToChar(WindowParams, L';', true), 0) != 0); if (!CustomPos && (Application->MainForm != NULL)) { BoundsRect = Application->MainForm->BoundsRect; } else { RestoreForm(WindowParams, this); } } TForm::CreateParams(Params); }
//--------------------------------------------------------------------------- void __fastcall TEditorForm::CreateParams(TCreateParams & Params) { // this is called for the first time from parent's constructor. // FFormRestored is set to false implicitly if (!FFormRestored) { FInstance = FInstances; FInstances++; FFormRestored = true; UnicodeString WindowParams = WinConfiguration->Editor.WindowParams; if ((FInstance == 0) && !WindowParams.IsEmpty()) { RestoreForm(WindowParams, this); } } TForm::CreateParams(Params); Params.WndParent = GetDesktopWindow(); }