I have posted in the bugtracker ( http://bugs.freepascal.org/view.php?id=26495 ) a patch to the editortoolbar package.

I summarize the new features:

1. The configuration allows positioning at the four sides of the editor
   window
2. The configuration includes a Show/Hide checkbox
3. Jump Back/Jump Forward are provided as initial defaults
4. It registers a new entry in Main Menu/View to access configuration
   also when the toolbar is hidden

Implementation notes.

With this implementation Lazarus/Ide code is left untouched, unless one wants a different Menu Icon, which should then be added to Lazarus resources. I had prepared one, but the one currently used appears to be unused elsewhere, and looks appropriate to me.

If the package is included into the default Lazarus packages list, the feature will be available by default.

If the user chooses to hide the toolbar, a Box is shown when exiting configuration, telling where to find in the main menu the entry to access configuration. It's intended to avoid a number of "How can I restore the toolbar I have hidden by mistake?".

The Jump Back/Forward entries are added when there are no user defined buttons. Meaning that they'll be added not only at startup, but also if the user deletes all user buttons. I don't believe it to be an issue, because an empty toolbar doesn't make much sense. But, if such is the case, the available workaround is to leave in just a divider.
If Graeme provides a better implementation, he's welcome.

That's all folks!

Giuliano


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to