Recent

Author Topic: Writing a Notepad++ plugin with Lazarus - my personal summary  (Read 1033 times)

d7_2_laz

  • Hero Member
  • *****
  • Posts: 605
Writing a Notepad++ plugin with Lazarus - my personal summary
« on: January 06, 2025, 03:32:13 pm »
I nearly succeeded to port the basics of my old Delphi7-written plugin (2013! .. and still for the same reason as 2013) to Lazarus Windows 64bit - with special regard to the dark mode theme -, with the help of rdipardo's plugin template for Delphi & Lazarus.
Those are my experiences so far:

- Some few gui controls, especially treeview and toolbar, needed to be fully ownerdrawn for dark mode, for diverse reasons.
That was indeed good for me, as i was very keen to keep my already existing custom drawing logics, and in sum that went surprisingly fine by adding only a very few IFDEFs to the existing code.

- From the Lazarus side, at the end there was only one single technical issue at all:
the ugly inflation of redraws when moving the mouse over a treeview ('hottrack') in dark mode.
That one i filed with a fix proposal in the bugtracker.
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41290
Unfortunately as of now i got no feedback regarding the contents so far.

I really hope that with a regular fix one could base such plugin on a regular (unpatched) version.

Then, yes, we can write a Notepad++ plugin with Lazarus which behaves very fast and efficient :-)
Exciting ...   :)
Lazarus 3.8  FPC 3.2.2 Win10 64bit

 

TinyPortal © 2005-2018