I have a problem with tooltip associated with a 16x16 image , if the mouse approach from bottom the tooltip is well displayed but when mouse approach for top left or top right tooltip starts to blink ( see video http://assapan.fr/Tooltip.mp4 )
Any clue or indication ?
P.S. Delphi XE6 , IW 14.0.44 , CG 2.7.0.111
- Code: Select all
img := TIWCGJQImage.Create(ComposantParent);
with Img do
begin
Parent := ComposantParent;
Left := X ;
Top := Y;
Name := Format('xImgHelp%s', [Param.Nom]);
Tag := IdParam;
Width := 16;
Height:=16;
Picture.Url := DecodeIcone('16x16/$aide')
end;
AjouteTooltip([Img], 0, Param.Hint);
- Code: Select all
function AjouteTooltip(Controls: array of TControl; IdApplication: Integer; Hint: string):TIWCGJQTooltip;
Var
I: Integer;
begin
Result:=Nil;
if Hint <> '' then
begin
for I := low(Controls) to High(Controls) do
begin
if I = 0 then
begin
Result := TIWCGJQTooltip.Create(Controls[i].Owner);
Result.Parent := Controls[i].Parent;
Result.Name:=Format('ToolTip%s',[Controls[i].Name]);
Result.JQTooltipOptions.InnerHtml := Hint;
Result.JQTooltipOptions.Distance:='30px';
end;
Result.JQTooltipControls.Add.Control := Controls[i];
end;
end;
end;