Nevron Forum

Tooltip Sytling

https://www.nevron.com/Forum/Topic6011.aspx

By Bhumi Patel - Wednesday, January 11, 2012

Hi,

I am trying to change style of the default tooltip. Is there a way to change the tooltip style like front and background??

Thanks,
Bhumi
By Nevron Support - Thursday, January 12, 2012

Hi Bhumi,

Currently the control does not support this, however we just made a modification to the NTooltip tool that will allow you to provide a custom tooltip. This change will appear in the next SP of the control.

By Bhumi Patel - Monday, January 16, 2012

Thank you for your reply!!

When can I expect the control to be available for use?


Thanks,
Bhumi
By Nevron Support - Monday, January 16, 2012

Hi Bhumi,

It should be before the end of this week. In order to customize the tooltip you'll need to override the tooltip tool like that:

  [Serializable]
  class MyTooltipTool : NTooltipTool
  {
   public override Tooltip CreateTooltip()
   {
    ToolTip tooltip = new ToolTip();

    // modify tooltip settings here

    return tooltip;
   }
  }

Then when you add the tooltip tool to the controller you should write:

nChartControl1.Controller.Tools.Add(new MyTooltipTool());