Form move event lazarus / 31-LCL ---------------------------------------------------------------------- Borneq · 2020-01-28 14:08 Is possible detect if form is moved?  I ca'nt font OnMove event nor WM_MOVE message. Problem is when I open popup form not modal but always on top. When I move basic form, popup form should close or also move. If I set popup form as child - it can't go beyond parent form. ---------------------------------------------------------------------- wp · 2020-01-28 14:14 There is an OnChangeBounds event of the form: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormChangeBounds(Sender: TObject);begin  Caption := Format('L = %d, T = %d, W = %d, H = %d', [Left, Top, Width, Height]);end; ---------------------------------------------------------------------- Borneq · 2020-01-28 15:17 I try first form with Edit, and second popup form, but is problem: popup should hide if edit or first form is deactivated, but it can be possible click on second form and use scrollbars. My next attempt: two forms, second popup form has list and edit both. Best solution would be is second form was child of first form, but is impossible popup go beyond first form? Third attempt: big transparent form with two child forms? ---------------------------------------------------------------------- Borneq · 2020-01-28 17:43 Is posssible make resizable child control ? for example resizable panel? not resize after resizing form, but in reverse - form change it size to fit panel? ---------------------------------------------------------------------- lucamar · 2020-01-28 17:57 Quote from: Borneq on January 28, 2020, 06:43:22 pmIs posssible make resizable child control ? for example resizable panel? not resize after resizing form, but in reverse - form change it size to fit panel? I'm not sure whether it'll work but you can try setting the child form's Align property. But note that forms are not really designed for this kind of operation (i.e. making them children of other controls). Frames are most suited to this; it's in fact their raison d'être ---------------------------------------------------------------------- jamie · 2020-01-28 21:51 Quote from: Borneq on January 28, 2020, 06:43:22 pmIs posssible make resizable child control ? for example resizable panel? not resize after resizing form, but in reverse - form change it size to fit panel? Place a TPanel on the form. Place a TSplitter beside it. Go into  the Anchor editor and have the Panel anchor to the splitter.. When you move the splitter the panel will size with it. ---------------------------------------------------------------------- Alexandr R · 2020-03-06 19:35 Hi Look here Topic: https://forum.lazarus.freepascal.org/index.php/topic,48765.0.html