Recent

Author Topic: parameter hint  (Read 9810 times)

Lacak2

  • Guest
parameter hint
« on: February 25, 2009, 01:55:20 pm »
Is there planed such feature:
when I type parameters for procedure, function, method, that in hint window is displayed name and type of expected parameter ?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2674
Re: parameter hint
« Reply #1 on: February 25, 2009, 02:11:50 pm »
There is, look at Environment - Options - Editor - Automatic features - tooltip expression evaluation
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Lacak2

  • Guest
Re: parameter hint
« Reply #2 on: February 25, 2009, 02:23:20 pm »
Hm, is there, is checked, but I see nothing when I write code.
For example when I write:
  SQLQuery1.SQL.Text:=copy(
here I expect hint for parametes for copy function:
 S; Index, Count: Integer
...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12199
  • Debugger - SynEdit - and more
    • wiki
Re: parameter hint
« Reply #3 on: February 25, 2009, 07:58:41 pm »
Try Shift-ctrl-space while the cursor is inside the brackets.

Or whatever key combo is assigned to:
"Key-Mapping" => "Code tool Commands" => "Show Code Context"

Lacak2

  • Guest
Re: parameter hint
« Reply #4 on: February 26, 2009, 08:43:55 am »
 :) Yes it works, thanks.
But not for copy() function, which I tested ... interested!
Automatic (Delphi like) showing tooltip, without need of pressing Ctrl+Shift+Space is not possible ?

arnoldb

  • Jr. Member
  • **
  • Posts: 97
Re: parameter hint
« Reply #5 on: February 26, 2009, 05:45:15 pm »
I support Lacak2's feelings; I'm using Lazarus for 8-10 hours per day on a fairly big & complicated project, and also miss the automatic display from Delphi...

Where in the Lazarus sources would the best starting point be to find how to implement this ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: parameter hint
« Reply #6 on: February 27, 2009, 05:44:13 am »
I found that automatic features like this won't work if the source has errors. For the Copy function, I think it's because it's not a true function, but instead a special keyword that will be replaced by the compiler with the proper function call. That's why Copy works perfectly for arrays.

desmondc

  • New member
  • *
  • Posts: 9
Re: parameter hint
« Reply #7 on: July 28, 2009, 06:04:19 pm »
Looks like this feature stopped working in 0.9.26-2. Can anyone else confirm or put me out of my misery?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12199
  • Debugger - SynEdit - and more
    • wiki
Re: parameter hint
« Reply #8 on: July 28, 2009, 06:11:01 pm »
I don't know about 0926, but it works in 0927 (daily snapshot). 0927 also works for copy and similar.

desmondc

  • New member
  • *
  • Posts: 9
Re: parameter hint
« Reply #9 on: July 28, 2009, 06:36:17 pm »
Just weird.

I changed the key combination to alt+shift+right. That worked. I used to have ctrl+shift+right. I last set it up in 0.9.22 and kept on copying the xml prefs files ever since on new installations.

Maybe my IceWM has some special bla-bla for ctrl+alt key combinations.

Well, at least I'm out of my misery now.

This calls for celebration, excuse me while I open my bottel of Wyborowa (you see i have been miserable for a while since not been able to use the paramter hint)

 

TinyPortal © 2005-2018