On Tue, 10 Oct 2006 15:48:57 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote:
> Sebastian Kraft wrote: > > Am Dienstag, 10. Oktober 2006 11:12 schrieb Marc Weustink: > >> Sebastian Kraft wrote: > >>> Thanks... I worked a bit on the DrawSplitter function. > >>> > >>> I finally got the style I was looking for. Here's a screenshot: > >>> http://www.hey-you-freaks.de/splitter4.png > >>> > >>> If you like this style too, i may try to implement a option in > >>> object inspector that allows to choose one of the styles for > >>> TSplitter. > >> IMO, when a widgetset has a native look for a splitter, use that > >> one. Choosing the style of splitter doesn't look well cross > >> widgetsets > >> > > As far as I understood, TSplitter has no native look under GTK. It > > seems it is completely created and drawn by LCL... Correct me if > > I'm wrong... > > > > And again...IMO the current style of TSplitter looks strange > > It does. It isn't drawn the same as the delphi one also. > > Looking at Delphi: > > Normally a splitter has Beveled = False and is "drawn" flat. Its > width is usually 3 in such cases. > > When Beveled = True, it's drawn like (side view) \_/-..-\_/ , given > the widht at least 6px > > The bevel drawn in your case is like /-..-\ which is indeed ugly. > > I had a quick look at several (windows) apps and there most splitters > are flat whith their neighbouring controls having sometimes a bump. > > I had a look at gtk, it does have a splitter like thing. Its part of > a gtkpaned. > So for gtk, a splitter IMO should be drawn as the paned splitter. > (have a look at the gtk_paned_expose implementation in gtkpaned.c) The DrawSplitter code was inspired by gtkpaned.c. My TSplitter (DrawSplitter) looks the same as TPairSplitter (gtkpaned). Maybe DrawSplitter needs to be extended for some uncommon themes? Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
