I tried to make an MDI application Windows 2000 and Lazarus 1.2.4.
First from the forms' property 'FormStyle'.
Then with the following code taken from
hereprocedure TForm1.ButtonAdminClick(Sender: TObject);
begin
windows.SetParent(ChildForm.Handle, panel2.Handle);
SendMessage(ChildForm.Handle, WM_NCACTIVATE, WPARAM(True), 0);
ChildForm.left := 10;
ChildForm.Top := 10;
ChildForm.show;
ChildForm.SetFocus;
end;
The parent is panel2.Handle - the child is ChildForm.
Both ways give me the error: 'Project raised exception class 'External: SIGSEGV'. In file '.\include\wincontrol.inc' at line 7237: HandleAllocated:=(FHandle <> 0);'.
What can I do? (maybe it's related to some gdb problem?)(do I have to put some library in the uses of the form for the 'windows' (windows.SetParent))?
(my goal is MDI in windows, and if possible but not necessary and in Linux)