[Lazarus] Sparta docked form editor moved to trunk

Luiz Americo Pereira Camara luizamericop at gmail.com
Fri Nov 20 00:50:57 CET 2015


2015-11-19 4:25 GMT-03:00 Ondrej Pokorny <lazarus at kluug.net>:

> On 19.11.2015 02:40, Anthony Walter wrote:
>
>> Juha, wow this is gonna be the gold standard. One BIG problem I noticed
>> right off however. If you put a control on the form, for example a button,
>> you cannot remove it.
>>
>> Tested on Gtk2 Linux, Ubuntu with Unity desktop.
>>
>
> This works correctly on Windows (10), undocked environment.
>

There's a difference in design time behavior under gtk2 when compared with
windows. Maybe this is your case.

Here are my findings, posted sometime ago:

While trying to fix the bug reported in
http://forum.lazarus.freepascal.org/index.php/topic,28352.0.html

I found that the designer acts different in gtk2 related to Qt and win32

Under Qt (same environment as the gtk2 build) and Win32 if a put a control,
e.g. TTreeView in the designer, in TDesigner.MouseMoveOnControl the Sender
and DesignSender is always TForm regardless of the mouse being above the
child controls or not. See result of commenting a DebugLn:

TDesigner.MouseMoveOnControl Sender=Form1:TForm1 Form1:TForm1

Under gtk2 if a put the same control, the Sender and DesignSender will be
the TTreeView when mouse is over this child:

TDesigner.MouseMoveOnControl Sender=TreeView1:TTreeView TreeView1:TTreeView

Any clue why this difference?

Is it a bug?

BTW: i modified VTV to work but there may be other components affected

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151119/a4b0d33d/attachment-0003.html>


More information about the Lazarus mailing list