TextTip not working

Posted by: info on 20 May 2020, 12:22 am EST

    • Post Options:
    • Link

    Posted 20 May 2020, 12:22 am EST

    Using 12.0 and TextTipPolicy = TextTipPolicy.Floating

    R12.0 does not show TextTip when using MultiLine text and only first line is visible.

    R9.0 does not have this issue.

    Did I miss something?

    Thanks in advance

    PietF

  • Posted 20 May 2020, 10:27 pm EST - Updated 30 September 2022, 4:32 am EST

    Hello,

    Showing a long text as wrapped multiline using Spread 12, I do not observe any issue with Tooltip/tip display. See attached output.



    Can you please run the application and see, whether you observe a different output. If yes, could you please modify the application and share back for us to see the problem and guide accordingly.

    Thanks,

    Ruchir

    TipTest_Spread.zip

  • Posted 20 May 2020, 11:08 pm EST

    Hi Ruchir,

    thanks for your quick response.

    1. Replace your text with:

      “This is a very long multi-line text for single spread cell.” + System.Environment.NewLine + “This text is being defined to test ToolTip”

    2. Change the height of row 3 so that you only can see the first line.

    3. The tooltip is not displayed if the column width is wide enough for line one.

      (it only shows all rows when the column width is to narrow for the first line.)

      R9 did handle this properly.

    Kind regards,

    -PietF

  • Posted 21 May 2020, 9:04 pm EST

    Thank you, PietF. Following your guidance, we were able to replicate the behavior you mentioned.

    To resolve it, please handle the TextTipFetch event as follows:```

    private void FpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e)

    {

    if(e.TipText!=string.Empty)

    {

    e.ShowTip = true;

    }

    }

    Regards,
    Ruchir
  • Posted 21 May 2020, 9:38 pm EST

    Thanks Ruchir, for now it is solved.

    Regards,

    -PietF

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels