Recent

Author Topic: [SOLVED] Show hint when over a gutter icon  (Read 1750 times)

Basile-B

  • Sr. Member
  • ****
  • Posts: 457
    • GH...
[SOLVED] Show hint when over a gutter icon
« on: July 07, 2017, 12:41:47 pm »
How can i show a hint when the mouse is over a gutter icon ?

I've started to play with TSynEdit.OnSHowHint, which is well triggered with the gutter but i have the feeling that there could be a simpler way (without testing the coordinates for example).
« Last Edit: July 07, 2017, 02:25:39 pm by BBasile »

Basile-B

  • Sr. Member
  • ****
  • Posts: 457
    • GH...
Re: Show hint when over a gutter icon
« Reply #1 on: July 07, 2017, 02:25:16 pm »
It looks like even in Lazarus this is done the hard way, testing coordinates. So there's no simpler way.

https://github.com/alrieckert/lazarus/blob/master/ide/sourceeditor.pp#L8750