T__MainFormAncestor Class
Definition
Ancestor for your main form.
type T__MainFormAncestor = class(T__TFormAncestor)
- Inheritance
- Derived
Remarks
Never change anything in this unit if you want to follow the starter kit updates.
Constructors
| Create(TComponent) |
Class constructor |
Properties
| CurrentDocument |
Current opened document |
| OnAboutBoxTranslateTexts |
Use it if you want to override about box texts translation or add your languages. |
| onGetLanguageName |
Called in the Tools/Languages dialog to get the language name for an ISO code. |
Methods
| AfterConstruction |
Execute some code after the form instance construction |
| DoAboutAction(TObject) |
Called by the actAbout action used for Help/About menu option. |
| DoAboutBoxTranslateTexts(string, TOlfAboutDialogTxtID) |
Used as OnAboutBoxTranslateTexts event in the about box dialog if OnAboutBoxTranslateTexts property is not assigned. |
| DoBuyALicense(TObject) |
Called by the actBuyALicense used for "Help/Buy A License" menu option. |
| DoCheckForANewRelease(TObject) |
Check if a new release is available for this program and allow to update |
| DoCheckLicenseOnStartup(TObject) |
Check if a license in needed and if the program has been registered. It uses the CilTseg API, override it if you want an other key licensing system. |
| DoCloseAllAction(TObject) |
Called when we need to close all documents |
| DoDocumentCloseAction(TObject, TProc) |
Called when we need to close a document |
| DoDocumentNewAction(TObject) |
Called when we need to create a new document |
| DoDocumentOpenAction(TObject) |
Called when we need to open a document |
| DoDocumentOptionsAction(TObject) |
Called by the actDocumentOptions action used for Document/Options menu option. |
| DoDocumentSaveAction(TObject) |
Called when we need to save a document |
| DoDocumentSaveAsAction(TObject) |
Called when we need to save a document as an other file (or a new one) |
| DoGetLanguageName(string) |
Used as onGetLanguageName event in the current language selection dialog if onGetLanguageName property is not assigned. |
| DoGoToDocAction(TObject) |
Called when we want to change current document and use an other opened one |
| DoHide | (Inherited from T__TFormAncestor) |
| DoLanguageChangeAction(TObject) |
Called by the actLanguages action used for Tools/Languages menu option. |
| DoOpenPreviousAction(TObject) |
Called when we need to open a recent opened document |
| DoQuitAction(TObject) |
Called by the actQuit action used for File/Quit menu option. |
| DoRecentDocumentsOptionsAction(TObject) |
Called when we open the options dialog to change "recent files" properties |
| DoRegisterALicense(TObject) |
Called when we need to register a license from the "Help/Register" menu option |
| DoSaveAllAction(TObject) |
Called when we need to save all opened (and changed) documents |
| DoShow | (Inherited from T__TFormAncestor) |
| DoStyleChangeAction(TObject) |
Called by the actStyles action used for Tools/Styles menu option. |
| DoSupportAction(TObject) |
Called by the actSupport action used for Help/Support menu option. |
| DoToolsOptionsAction(TObject) |
Called by the actToolsOptions action used for Tools/Options menu option. |
| DoTranslateTexts(TObject, TMessage) | (Inherited from T__TFormAncestor) |
| FormClose(TObject, TCloseAction) | |
| FormCloseQuery(TObject, Boolean) | |
| FormKeyDown(TObject, Word, WideChar, TShiftState) | (Inherited from T__TFormAncestor) |
| FormShow(TObject) | |
| GetNewDoc(string) |
Returns a document instance. |
| RefreshMenuItemsVisibility(TMainMenu) |
Show/hide TMainMenu items depending on there sub menus items visibility |
| RefreshMenuItemsVisibility(TMenuItem, Boolean) |
Show/hide a TMenuItem depending on its sub menus items visibility |
| SetCurrentDocument(TDocumentAncestor) | |
| SetOnAboutBoxTranslateTexts(TOnAboutBoxTranslateTexts) | |
| SetonGetLanguageName(TOnGetLanguageName) | |
| TranslateTexts(string) |
Translate texts for this form |
| actAboutExecute(TObject) | |
| actBuyALicenseExecute(TObject) | |
| actCheckForANewReleaseExecute(TObject) | |
| actCloseAllDocumentsExecute(TObject) | |
| actCloseDocumentExecute(TObject) | |
| actDocumentOptionsExecute(TObject) | |
| actLanguageChangeExecute(TObject) | |
| actNewDocumentExecute(TObject) | |
| actOpenDocumentExecute(TObject) | |
| actQuitExecute(TObject) | |
| actRecentFilesOptionsExecute(TObject) | |
| actRegisterALicenseExecute(TObject) | |
| actSaveAllDocumentsExecute(TObject) | |
| actSaveDocumentAsExecute(TObject) | |
| actSaveDocumentExecute(TObject) | |
| actStyleChangeExecute(TObject) | |
| actSupportExecute(TObject) | |
| actToolsOptionsExecute(TObject) |