Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

Hint of TAChart

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Valdas Jankūnas

Hello,

in TChart I use TDataPointHintTool. I discovered (see attached screeshot) that Hint is triggered also in outside of frame (frame -> area where series is plotted). This happens at upper and bottom but not at left and right sides of frame.

Is this OK or bug?

Sorry for my bad English.

Valdas Jank?nas -------------- next part -------------- A non-text attachment was scrubbed... Name: hint_pos1.png Type: image/png Size: 28920 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150301/7358f76c/attachment-0001.png>

Reply by email

Werner Pamler

You are probably working with DistanceMode=cdmOnlyX of the DataPointHintTool; with cdmOnlyY the hint would appear if the mouse is at the left or right outside the series region.

I am not sure if this is really a bug, but I can imagine that users could be surprised by this behavior. Therefore, I added a new property "MouseInsideOnly" to TDatapointHintTool and TDatapointCrosshairTool (in fact, it is implemented already for their ancestor TDataPointTool, but I think the other datapoint tools do not need it). With "MouseInsideOnly" set to true the hint does not appear if the mouse is outside the plotting frame.

Reply by email

Valdas Jankūnas
to Werner Pamler

2015-03-01 19:24 GMT+02:00 Werner Pamler :

You are probably working with DistanceMode=cdmOnlyX of the DataPointHintTool; with cdmOnlyY the hint would appear if the mouse is at the left or right outside the series region.

...

Show quoted text 5 lines
think the other datapoint tools do not need it). With "MouseInsideOnly" set to true the hint does not appear if the mouse is outside the plotting frame.

"MouseInsideOnly" helped. Thank you.

______
Valdas Jank?nas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150303/243bf6a6/attachment.html>

Reply by email