editor tool tips. lazarus / 9-Editor ---------------------------------------------------------------------- taazz · 2017-05-31 23:36 After the move to C# in my day job, I spend more and more time on visual studio this days. When I get back, to code with lazarus, I was really irritated, long story short, the major pain in my existence is the code tool tips. Visual studio show them under the line that I'm editing while lazarus shows them over that line, since most of the times I'm following a top down development ee the code I'm working with is on the top of the line I'm working with, the tool tips hides the code I'm interested in, so instead of being helpfull it becomes a constant obstruction. Is it possible to change the placement and if not what do I need to do to change that in lazarus 1.4.4? Thank you for any hints. ---------------------------------------------------------------------- Ondrej Pokorny · 2017-06-01 07:44 You cannot do it. It is easy to change the position, thought. IMO it's above the current line in order both the tooltip and code insight window can be shown simultaneously. ---------------------------------------------------------------------- Ñuño_Martínez · 2017-06-01 07:51 Actually it is possible... if you change Lazarus (or SynEdit) sources and compile it. I think an option to select how tooltips and auto-complete hints are rendered are a great addition. May be you can suggest a change to the development team, or made the change by yourself and send a patch for evaluation. I suggest you to do the suggestion because I never used VS so I have no idea how it would look as. ---------------------------------------------------------------------- taazz · 2017-06-01 13:13 Quote from: Ondrej Pokorny on June 01, 2017, 09:44:24 amYou cannot do it. It is easy to change the position, thought. thank you for the confirmation. It is good to know I did not miss anything. Quote from: Ondrej Pokorny on June 01, 2017, 09:44:24 amIMO it's above the current line in order both the tooltip and code insight window can be shown simultaneously. I guess it depends on how often the tool tip is visible with the insight window. If for example 90% of the time the tool tip is visible the insight window is also open then that is valid choice if on the other hand its 10% then not so much, in my case I have begun to sync pressing esc with the time it takes to show the window which is a problem. Quote from: Ñuño_Martínez on June 01, 2017, 09:51:43 amActually it is possible... if you change Lazarus (or SynEdit) sources and compile it. Any hints where to start looking? Quote from: Ñuño_Martínez on June 01, 2017, 09:51:43 amI think an option to select how tooltips and auto-complete hints are rendered are a great addition. May be you can suggest a change to the development team, or made the change by yourself and send a patch for evaluation. I suggest you to do the suggestion because I never used VS so I have no idea how it would look as. I agree but my little free time is already spend elsewhere at the moment. I might add a feature request in the issue tracker but I can't promise it, feel free to do so your self just inform us in case I decide to spend some time to avoid duplications. ---------------------------------------------------------------------- Martin_fr · 2017-06-01 13:27 start in ide/SourceEditor.pp Search for hint, but several hints go through there. You can then use breakpoints to see where they are called from. ---------------------------------------------------------------------- Ondrej Pokorny · 2017-06-01 17:12 Quote from: taazz on June 01, 2017, 03:13:32 pmAny hints where to start looking? As usual: debug the IDE, place a breakpoint on TCustomForm.DoShow or THintWindow.ActivateHint, execute the smart hint tooltip and you are just there. Easy. ---------------------------------------------------------------------- taazz · 2017-06-01 21:59 thank you every one I have my starting point. ---------------------------------------------------------------------- Ñuño_Martínez · 2017-06-02 07:32 Quote from: taazz on June 01, 2017, 03:13:32 pm(...) May be you can suggest a change to the development team (...) I did some searching but I can't find where to do such suggestion. I'll join to mailing lists this afternoon.