mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 08:19:53 +01:00 
			
		
		
		
	IDE: parameter hints: show message if nothign to add
git-svn-id: trunk@30766 -
This commit is contained in:
		
							parent
							
								
									339b4d136a
								
							
						
					
					
						commit
						b4be065867
					
				@ -973,6 +973,10 @@ procedure TCodeContextFrm.CompleteParameters(DeclCode: string);
 | 
			
		||||
    NewCode:=CodeToolBoss.SourceChangeCache.BeautifyCodeOptions.BeautifyStatement(
 | 
			
		||||
      NewCode,Indent,[],X);
 | 
			
		||||
    NewCode:=copy(NewCode,Indent+1,length(NewCode));
 | 
			
		||||
    if NewCode='' then begin
 | 
			
		||||
      ShowMessage(lisAllParametersOfThisFunctionAreAlreadySetAtThisCall);
 | 
			
		||||
      exit;
 | 
			
		||||
    end;
 | 
			
		||||
    // insert
 | 
			
		||||
    ASynEdit.BeginUndoBlock;
 | 
			
		||||
    XY:=Point(X,Y);
 | 
			
		||||
 | 
			
		||||
@ -5086,6 +5086,8 @@ resourcestring
 | 
			
		||||
  lisHideMessageViaDirective = 'Hide message via directive';
 | 
			
		||||
  lisRemoveLocalVariable2 = 'Remove local variable';
 | 
			
		||||
  lisNoHints = 'no hints';
 | 
			
		||||
  lisAllParametersOfThisFunctionAreAlreadySetAtThisCall = 'All parameters of '
 | 
			
		||||
    +'this function are already set at this call. Nothing to add.';
 | 
			
		||||
  lisToInstallYouMustCompileAndRestartTheIDE = 'To install you must compile '
 | 
			
		||||
    +'and restart the IDE';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user