How to add the TODO list to the editor toolbar lazarus / 9-Editor ---------------------------------------------------------------------- Gerold_R · 2020-10-23 06:14 Hello I am still configuring Lazarus and I would like to have the button to show the TODO list in the editor toolbar. It's possible to add a lot of functions but I dont see how to add the TODO list. Any idea? I am used to it, cause in D7 I had the same using GExperts. Thanks ---------------------------------------------------------------------- jwdietrich · 2020-10-23 06:58 It should be available via the "View" menu, see attachment ---------------------------------------------------------------------- howardpc · 2020-10-23 07:34 Check that you have the appropriate package installed in the IDE, and install it if not. This package is not installed by default in recent Lazarus versions. ---------------------------------------------------------------------- JuhaManninen · 2020-10-23 08:16 The question was about editor toolbar. Apparently ToDo list cannot be added there. You can however set a shortcut key for it. This may be a bug (or feature) in Lazarus IDE code. I guess it should allow adding a registered menu command to a toolbar. It could be fixed also in the ToDo package by registering an IDE command. If somebody wants to fix it, please do. Patches are welcome. ---------------------------------------------------------------------- Gerold_R · 2020-10-23 08:24 Quote from: howardpc on October 23, 2020, 09:34:45 amCheck that you have the appropriate package installed in the IDE, and install it if not. The package is installed.Version 1.0.2 But I can not add the button for this function (and it seems the only one) to the editor toolbar or IDE coolbar. Probably a bug. ---------------------------------------------------------------------- FTurtle · 2020-10-23 13:00 Quote from: JuhaManninen on October 23, 2020, 10:16:14 amIf somebody wants to fix it, please do. Patches are welcome. I will try implement it. ---------------------------------------------------------------------- JuhaManninen · 2020-10-23 15:30 Thanks FTurtle in advance. FYI everybody: I also started to wonder why ToDo list is not available for ToolBars. It would be a nice addition in editor toolbar especially. I studied the code. Actually the ToDo menu items are registered the same way as other View menu items. I don't see any reason why it doesn't appear in the command list. ToDoDlg.Register calls RegisterIDEMenuCommand(), the same that other commands are registered with. I tried some tweaks. No difference. I wrote about it in Lazarus developer list but no answer so far. Maybe nobody knows. ---------------------------------------------------------------------- FTurtle · 2020-10-24 03:49 https://bugs.freepascal.org/view.php?id=37976 ---------------------------------------------------------------------- JuhaManninen · 2020-10-24 11:37 Quote from: FTurtle on October 24, 2020, 05:49:29 amhttps://bugs.freepascal.org/view.php?id=37976 Thanks. Ok, the RegisterIDEButtonCommand is done also for other IDE's menu commands but in a sneaky way. I did not find it right away. ---------------------------------------------------------------------- Gerold_R · 2021-03-15 06:54 Hi I updated from 2.0.10 to 2.0.12 and I tought I can now add a toolbutton command for ToDo list. Here it looks like this is possible now: https://bugs.freepascal.org/view.php?id=37976 Did I make a mistake during the update? I let the Lazarus installer uninstall the old version before installing 2.0.12 Thanks for an answer Gerold ---------------------------------------------------------------------- JuhaManninen · 2021-03-15 07:28 Quote from: Gerold_R on March 15, 2021, 07:54:04 amDid I make a mistake during the update? No, the change was not merged to 2.0.12. The major release 2.2 is delayed and 2.0.12 was thrown in as an afterthought. Please use Lazarus trunk. You will be positively surprised. It is a lot ahead of 2.0.x. ---------------------------------------------------------------------- Gerold_R · 2021-03-15 08:42 OK. Thanks for your answer. Have a nice day. Gerold