70001896 Multiline color text on ToolTip

Article 70001896
Type Wish
Product WebJS
Version 8006
Date Added 1/5/2021 12:00:00 AM
Fixed 9.9001.0.1 (1/8/2021 12:00:00 AM)
Submitted by Ben.Reeder@symphonyretailai.com


I would like to have the ability to create multiline text tooltip with different color of every single line on WebControl.


Implemented in version 8007.0.1
Each line of tool tip text that you want have different color than the default Font Color property of tooltip text must begin with the following form
\{fc:[r,g,b]}my text
r,g,b are integer values between 0 to 255
for example to display four line of tooltip with the first line red second green third blue and fourth using the default FontColor we can set the tooltip text as follow:

\\{fc:[255,0,0]}red line\\n\\{fc:[0,255,0]}green line\\n\\{fc:[0,0,255]}blue line\\ndefault font color

vdcanvas.ToolTip.AutoShow = true;
vdcanvas.ToolTip.FontColor = [255, 255, 0];//set default tooltip text color to yellow
var line = vdcanvas.AddLine([0, 0, 0], [1, 1, 1]);
line.ToolTip = "\\{fc:[255,0,0]}red line\\n\\{fc:[0,255,0]}green line\\n\\{fc:[0,0,255]}blue line\\ndefault font color";

Send comments on this topic.