//--------------------------------------------------------------------------- void __fastcall TEditMaskDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(IncludeFileMasksMemo); InstallPathWordBreakProc(ExcludeFileMasksMemo); InstallPathWordBreakProc(IncludeDirectoryMasksMemo); InstallPathWordBreakProc(ExcludeDirectoryMasksMemo); }
//--------------------------------------------------------------------------- void __fastcall TFullSynchronizeDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(LocalDirectoryEdit); InstallPathWordBreakProc(RemoteDirectoryEdit); UpdateControls(); }
//--------------------------------------------------------------------------- void __fastcall TFileFindDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(MaskEdit); InstallPathWordBreakProc(RemoteDirectoryEdit); UpdateFormPosition(this, poOwnerFormCenter); RestoreFormSize(CustomWinConfiguration->FindFile.WindowParams, this); FileView->ColProperties->ParamsStr = CustomWinConfiguration->FindFile.ListParams; UpdateControls(); }
//--------------------------------------------------------------------------- void __fastcall TFileSystemInfoDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(SpaceAvailablePathEdit); PageControl->ActivePage = ProtocolSheet; FeedControls(); }
//--------------------------------------------------------------------------- void __fastcall TCopyDialog::FormShow(TObject * /*Sender*/) { assert(FFileList && (FFileList->Count > 0)); if (DirectoryEdit->Enabled && DirectoryEdit->Visible) { ActiveControl = DirectoryEdit; } else { ActiveControl = OkButton; } UpdateControls(); InstallPathWordBreakProc(RemoteDirectoryEdit); InstallPathWordBreakProc(LocalDirectoryEdit); }
//--------------------------------------------------------------------------- void __fastcall TRemoteTransferDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(DirectoryEdit); UpdateControls(); DirectoryEdit->SetFocus(); }
//--------------------------------------------------------------------------- void __fastcall TSynchronizeDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(LocalDirectoryEdit); InstallPathWordBreakProc(RemoteDirectoryEdit); // OnShow gets called more than once sometimes if (!FSynchronizing) { ClearLog(); UpdateControls(); if (FStartImmediatelly) { // if starting get cancelled (from SYNCHRONISE_BEFORE_KEEPUPTODATE2 prompt), // and OnShow gets called again (FSynchronizing is false), // we do not want to try to start again FStartImmediatelly = false; StartButtonClick(NULL); } } }
//--------------------------------------------------------------------------- void __fastcall InputDialogShow(void * Data, TObject * Sender) { TInputDialogToken & Token = *static_cast<TInputDialogToken *>(Data); if (Token.OnInitialize != NULL) { Token.OnInitialize(Sender, &Token.Data); } if (Token.PathInput) { InstallPathWordBreakProc(Token.EditControl); } }
//--------------------------------------------------------------------------- void __fastcall TLocationProfilesDialog::FormShow(TObject * /*Sender*/) { if (Terminal) { // cache session key, in case terminal is closed while the window is open FSessionKey = Terminal->SessionData->SessionKey; // WORKAROUND // Has to load this only now (not in Execute before ShowModal), // when the trees are finally (re)created, // otherwise the references in *Folders would be invalid already LoadBookmarks(SessionProfilesView, FSessionFolders, FSessionBookmarkList, WinConfiguration->Bookmarks[FSessionKey]); LoadBookmarks(SharedProfilesView, FSharedFolders, FSharedBookmarkList, WinConfiguration->SharedBookmarks); #ifdef _DEBUG FSessionProfilesViewHandle = SessionProfilesView->Handle; FSharedProfilesViewHandle = SharedProfilesView->Handle; #endif } if (Mode == odAddBookmark) { AddAsBookmark(GetProfilesSheet(), true); } InstallPathWordBreakProc(LocalDirectoryEdit); InstallPathWordBreakProc(RemoteDirectoryEdit); FindProfile(); if (OperationSide == osLocal) { ActiveControl = LocalDirectoryEdit; } else { ActiveControl = RemoteDirectoryEdit; } UpdateControls(); }
//--------------------------------------------------------------------------- void __fastcall TCustomCommandDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(CommandEdit); }
//--------------------------------------------------------------------------- void __fastcall TSelectMaskDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(MaskEdit); }
//--------------------------------------------------------------------------- void __fastcall TCreateDirectoryDialog::FormShow(TObject * /*Sender*/) { InstallPathWordBreakProc(DirectoryEdit); UpdateControls(); }
//--------------------------------------------------------------------------- void __fastcall TScpExplorerForm::UnixPathComboBoxBeginEdit( TTBEditItem * /*Sender*/, TTBEditItemViewer * /*Viewer*/, TEdit * EditControl) { InstallPathWordBreakProc(EditControl); }