Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

DocEditor GUI splitter

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

Hi

Does anyone know why the vertical splitter in DocEditor's GUI does not work. It is created correctly in TEditorPage.Create() between TPackageEditor and TElementEditor.
I tried adding more panels and made other changes but nothing helped. The horizontal splitters work OK.
I tested only on Linux with GTK2 and QT bindings. I don't know if it works on Windows.

Regards
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120728/29dc3f57/attachment.html>

Reply by email

Mattias Gaertner
to Juha Manninen
Hi Does anyone know why the vertical splitter in DocEditor's GUI does not work.

It works here. But it is placed left most, which is probably not your intention.

It is created correctly in TEditorPage.Create() between TPackageEditor and TElementEditor.

Both FPackages and FSPlitter are put at Left=0, so the primary key for ordering of alLeft controls gives the LCL no clue. The secondary key is to sort for last SetBounds call. Because you have some complex controls the order of SetBounds calls is hard to find out.

Give the LCL a clue what you mean. Add
FSplitter.Left:=1;
I tried adding more panels and made other changes but nothing helped. The horizontal splitters work OK. I tested only on Linux with GTK2 and QT bindings. I don't know if it works on Windows.

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner

On Sat, Jul 28, 2012 at 11:59 AM, Mattias Gaertner <

Show quoted text 10 lines
wrote: Both FPackages and FSPlitter are put at Left=0, so the primary key for ordering of alLeft controls gives the LCL no clue. The secondary key is to sort for last SetBounds call. Because you have some complex controls the order of SetBounds calls is hard to find out. Give the LCL a clue what you mean. Add FSplitter.Left:=1;

Ok, it was so easy!
I committed the change in r38071.
Thanks.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120728/f917ecf5/attachment.html>

Reply by email