I've been playing with CreateParented and i have come across some issues where
i am getting a A/V
I have got 2 forms , the first form has a panel on it and a button on it and
the second form has just a button with close event attached to it.
The First for does this behind the button
Form2 := TForm2.CreateParented(Panel1.Handle);
Form2.Show;
SendMessage(Form2.Handle, WM_NCACTIVATE, Ord(True), 0);
soon as i call the createParented it falls over . the form lfm
object Form2: TForm2
Left = 420
Height = 240
Top = 214
Width = 320
BorderIcons = []
BorderStyle = bsNone
Caption = 'Form2'
ClientHeight = 240
ClientWidth = 320
LCLVersion = '0.9.29'
object Button1: TButton
Left = 120
Height = 25
Top = 104
Width = 75
Caption = 'Button1'
OnClick = Button1Click
TabOrder = 0
end
end
Anyone reproduce this or have i done something wrong
Justin Smyth--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus