mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 06:29:32 +02:00
IDE: if component class is missing: note about RegisterClass
git-svn-id: trunk@37146 -
This commit is contained in:
parent
5a9e3fa502
commit
0871adbd8b
@ -3213,9 +3213,10 @@ resourcestring
|
||||
lisCodeTemplComment = 'Comment:';
|
||||
lisCodeTemplATokenAlreadyExists = ' A token %s%s%s already exists! ';
|
||||
lisCodeTemplError = 'Error';
|
||||
lisUnableToFindTheComponentClassItIsNotRegisteredViaR = 'Unable to find the '
|
||||
+'component class "%s".%sIt is not registered via RegisterClass and no lfm'
|
||||
+' was found.%sIt is needed by unit:%s%s';
|
||||
lisNoTemplateSelected = 'no template selected';
|
||||
lisUnableToFindTheLfmFileOfComponentClassNeededByUnit = 'Unable to find the '
|
||||
+'lfm file of component class "%s".%sNeeded by unit:%s%s';
|
||||
lisUnableToOpenDesignerTheClassDoesNotDescendFromADes = 'Unable to open '
|
||||
+'designer.%sThe class %s does not descend from a designable class like '
|
||||
+'TForm or TDataModule.';
|
||||
|
@ -7720,8 +7720,8 @@ begin
|
||||
|
||||
// not found => tell the user
|
||||
Result:=IDEQuestionDialog(lisCodeTemplError,
|
||||
Format(lisUnableToFindTheLfmFileOfComponentClassNeededByUnit, [
|
||||
AComponentClassName, #13, #13, AnUnitInfo.Filename]),
|
||||
Format(lisUnableToFindTheComponentClassItIsNotRegisteredViaR, [
|
||||
AComponentClassName, #13, #13, #13, AnUnitInfo.Filename]),
|
||||
mtError, [mrCancel, lisCancelLoadingThisComponent,
|
||||
mrAbort, lisAbortWholeLoading,
|
||||
mrIgnore, lisIgnoreUseTFormAsAncestor]);
|
||||
|
Loading…
Reference in New Issue
Block a user