Page 1 of 1

TRibbon rebuilds itself when using TMarksTipTool

Posted: Fri Jun 01, 2012 9:39 am
by 16461930
I am seeing a very odd behaviour. (See attached RAD Studio XE2 - update 4 - project.) When I use the TMarksTipTool for showing a tooltip on a TChart series, the first time you use it to show a tooltip on the series, the application's TRibbon rebuilds itself. It isn't only the first time the application runs, but with my simple attached sample project, it is only reproducible the first time. In my real application, it happens frequently throughout the lifecycle of the project, and since the ribbon is much more complicated, it takes longer and is more obvious when rebuilding.

I'd be very grateful to anyone who could explain to me why this is happening and how to workaround or resolve it.

To reproduce the problem, run the attached project and carefully watch the ribbon while you single-mouse-click on the only bar in the chart's bar series.

Thanks,

Mat

Re: TRibbon rebuilds itself when using TMarksTipTool

Posted: Tue Jun 05, 2012 9:41 am
by yeray
Hi Mat,

I think it's not a TeeChart-related problem because if you add a TButton with the following code, the Ribbon does the same without any TeeChart operation:

Code: Select all

procedure TParentForm.Button1Click(Sender: TObject);
begin
  Screen.HintFont:=Font;
end;

Re: TRibbon rebuilds itself when using TMarksTipTool

Posted: Wed Jun 06, 2012 7:40 am
by 16461930
Thanks for looking in to this and providing me with an easy way to reproduce it. I'll pass this along to Embarcadero.

Mat

Re: TRibbon rebuilds itself when using TMarksTipTool

Posted: Wed Jun 06, 2012 8:39 am
by yeray
Hi Mat,

You're welcome. I hope they can help you.
I've voted for your ticket at Quality Central