Calltips for function with large no of input parameters

2. Help
Abhishek
2013-03-09
2013-03-11
  • Abhishek
    Abhishek
    2013-03-09

    Does calltips has functionality to show function defination in multiple lines?
    I found it very useful but currently i am not able to figure out the way to show up functions with large no of input parameters. It shows up one liner calltip and it doesn't scroll if that function is not fitting in one full window. Let me know if i need to set any configuration setting for it or it will require new functionality for the same.

    For example
    Below function "C1MATCHL" has 9 input parameters but it is able to fit only starting 7 parameters.

    alternate text

    and its not scrollable, i mean when i entered all 7 i/p,it doesn't show up 8th and 9th i/p.

    Can we have scrollable/multiline calltips for such cases ?

     
  • THEVENOT Guy
    THEVENOT Guy
    2013-03-09

    Hi, Abhishek,

    I don't know if it'll resolve your problem, but, for example, I have an XML
    description file of the Lua langage ( Lua.xml ), in the ..\Config\APIs
    path of my own N++ directory, with MORE than ONE description for each
    FUNCTION of this language.

    Just see the FOUR pictures, attached to this post.

    I tested with the last 6.3.0`` version of N++, but it's work with older versions !

    FIRST, it's better to select, in "Settings" , "Preferences" , "Backup/Auto-Completion", the box "Function parameters hint on input", and some others is you prefer to !

    Then, just open a NEW file, SELECT the 'Lua' langage and type a function,
    of this language, at random. For example : getCameraMode()
    As soon as the FIRST parenthese is typed, the FIRST description of this
    function appears in a calltip.

    If you click on the LAST "chevron", you'll see the SECOND description of
    the same function !

    If you click on the FIRST "chevron" , you'll see again the FIRST description !

    Of course, yan can, afterwards, look at the parameters of functions in your text.

    Just put the cursor between the two parenthesis and choose the menu "Edit",
    "Auto-Completion and "Function Parameters Hint" or execute the shortcut
    CTRL + SHIFT + Spacebar

    Just an other try : type the function FadeCamera(), with MORE text

    About these TWO functions, in the Lua.xml file, we get :

    <?xml version="1.0" encoding="Windows-1252" ?>
    <NotepadPlus>
      <AutoComplete>
        <Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal="" />
        .......................................................
        .......................................................
        .......................................................
          <KeyWord name="fadeCamera" func="yes">
            <Overload retVal="bool" descr="SERVER">
              <Param name="player thePlayer" /> 
              <Param name="bool fadeIn" /> 
              <Param name="[float timeToFade=1.0]" /> 
              <Param name="[int red=0]" /> 
              <Param name="[int green=0]" /> 
              <Param name="[int blue=0]" /> 
              </Overload>
           <Overload retVal="bool" descr="CLIENT">
              <Param name="bool fadeIn" /> 
              <Param name="[float timeToFade=1.0]" /> 
              <Param name="[int red=0]" /> 
              <Param name="[int green=0]" /> 
              <Param name="[int blue=0]" /> 
            </Overload>
          </KeyWord>
        .......................................................
        .......................................................
        .......................................................
        <KeyWord name="getCameraMode" func="yes">
          <Overload retVal="string" descr="SERVER Camera modes: player, fixed">
            <Param name="player thePlayer" /> 
          </Overload>
          <Overload retVal="string" descr="CLIENT Camera modes: player, fixed">
            <Param name="void" /> 
          </Overload>
        </KeyWord>
        .......................................................
        .......................................................
        .......................................................
      </AutoComplete>
    </NotepadPlus>
    

    If you want to, I can send you this XML file, with 715 descriptions of LUA functions, if you give me an e-mail address.

    I hope my explanations could help you, a little bit !

    Best Regards,

    Guy038

     
    Last edit: THEVENOT Guy 2013-03-09
  • Abhishek
    Abhishek
    2013-03-11

    Hi VentoGuy

    Thanks for the reply.Your post was helpful to know about more than one "desc" tag for single function.This was a new thing for me but this is not solving my purpose.

    Also in your Pict_03, If you had more parameters in your function than calltip will runout of full window and its not scrollable also. This is what i am looking for.

    In my project setup,we have lots of functions with large no of parameters (10-15 ) and i need scrollable/multiline calltip for that.