Re: [Lazarus] [Lazarusdev] Editortoolbar Patch + Pending issue
Il 25/07/2014 00:22, Graeme Geldenhuys ha scritto: On 2014-07-24 21:02, Mattias Gaertner wrote: e) A section without caption is like the TMenuItem separator. The designer simply shows a '-'. Same can be done for sections without caption: Write a '-' or 'Section' or use a special icon or draw a line. +1 And that should be easy to implement. Yes, it's very easy to implement, and it was my first choice. I merrily added just two lines: if Item.Caption Item.Name then ACaption:= Item.Caption else ACaption:= '---'; and modified a third line to use ACaption instead of Item.Caption. A child's play. But to my dismay this was the result: http://www.copeca.it/colla/Toolbar/Treeview1.png (as opposed to: http://www.copeca.it/colla/Toolbar/Treeview.png ) Opening some nodes brings to this result: http://www.copeca.it/colla/Toolbar/Treeview2.png In order to keep the hierarchical structure which makes it easy to locate what you need, we must have human readable names for Menu Sections. They're not only separators, they're ancestor nodes for our Treeview. Any better idea? Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Lazarusdev] Editortoolbar Patch + Pending issue
On Fri, 25 Jul 2014 17:30:03 +0200 Giuliano Colla giuliano.co...@fastwebnet.it wrote: [...] But to my dismay this was the result: http://www.copeca.it/colla/Toolbar/Treeview1.png (as opposed to: http://www.copeca.it/colla/Toolbar/Treeview.png ) Opening some nodes brings to this result: http://www.copeca.it/colla/Toolbar/Treeview2.png 1. Do not show empty sections. 2. Expand all by default. Maybe we can give the root nodes captions. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Lazarusdev] Editortoolbar Patch + Pending issue
Il 25/07/2014 19:16, Mattias Gaertner ha scritto: On Fri, 25 Jul 2014 17:30:03 +0200 Giuliano Colla giuliano.co...@fastwebnet.it wrote: [...] But to my dismay this was the result: http://www.copeca.it/colla/Toolbar/Treeview1.png (as opposed to: http://www.copeca.it/colla/Toolbar/Treeview.png ) Opening some nodes brings to this result: http://www.copeca.it/colla/Toolbar/Treeview2.png 1. Do not show empty sections. 2. Expand all by default. Maybe we can give the root nodes captions. I can give it a try, by providing root node captions, and following your advices for the rest. I'm afraid that expanding all by default will make it harder to locate what you want, but one should check in practice. I might temporarily add some buttons to change setup, to help deciding what's better. After all 1.3 is currently a development version, not a production one. Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Lazarusdev] Editortoolbar Patch + Pending issue
On Thu, 24 Jul 2014 19:00:41 +0200 Giuliano Colla giuliano.co...@fastwebnet.it wrote: [...]But using the same structure for a human readable Treeview gives rise to the problem. 2) Possible solutions: [...] e) A section without caption is like the TMenuItem separator. The designer simply shows a '-'. Same can be done for sections without caption: Write a '-' or 'Section' or use a special icon or draw a line. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Lazarusdev] Editortoolbar Patch + Pending issue
On 2014-07-24 21:02, Mattias Gaertner wrote: e) A section without caption is like the TMenuItem separator. The designer simply shows a '-'. Same can be done for sections without caption: Write a '-' or 'Section' or use a special icon or draw a line. +1 And that should be easy to implement. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus