Il 04/06/2018 14:06, Martin Wynne ha scritto:
uses Unit1;
procedure TForm2.FormCreate(Sender: TObject);
begin
Parent:=Form1;
Anchors:=[];
Visible:=True;
end;
4. run it, and the debugger will show the error message.
Just remove the two lines
Parent:= Form1; (which is wrong, because it
Hi Mattias,
Thanks for your reply.
'TWinControl.WMSize loop detected, the widgetset does not like the LCL
bounds or sends unneeded wmsize messages'.
Can you create a bug report with an example to reproduce the loop?
Sorry, I don't know how to do that. However, it is very easy to replicate:
On Sun, 3 Jun 2018 13:06:59 +0100
Martin Wynne wrote:
> If I create a child form by setting Parent:=other_form; in FormCreate,
> it cannot be dragged to a new position by the user.
Correct. Setting aForm.Parent makes the form a "normal" control like a
frame or panel. If you want dragging, you n
This appears to be a topic for the Lazarus list, as it appears that
you're using the Lazarus LCL: laza...@lists.lazarus-ide.org
There you may obtain adequate assistance.
Giuliano
Thanks. Sorry for posting to the wrong list.
Martin.
___
fpc-pascal
Il 03/06/2018 14:06, Martin Wynne ha scritto:
I'm porting a project to Lazarus from Delphi5, where it works fine.
Child forms can be dragged around even with the top and left anchors set.
Thanks for any help in fixing this
This appears to be a topic for the Lazarus list, as it appears that
y
If I create a child form by setting Parent:=other_form; in FormCreate,
it cannot be dragged to a new position by the user.
If I then remove the top and left anchors by setting Anchors:=[]; in
FormCreate (or in the Object Inspector) so that it can be dragged, I get
this exception:
'TWinContro