Forum > LCL

MDIChild no longer shows after installing 2.2.0

(1/1)

EganSolo:
I'm writing a MDI app. In the version of Lazarus prior to 2.2.0 (I forgot what that version was) the command MyForm.Show would be enough to show a form whose style is set to fsMDIChild.

In this version of Lazarus 2.2.0. this is not working: the form does not show. Please check the very simple test project I've attached. 

I checked the release page for this version and could not see any mention to MDI stuff. Am I missing something?

Josh:
it looks as though form2 is outside bounds of form1
try setting its bounds to within form1 bounds ie

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---If Not assigned(fChildForm)  then begin     fChildForm := TForm2.Create(Self);     fChildForm.Parent := Self;  end;  If Not fChildForm.Visible  then fChildForm.Show;  fChildForm.SetBounds(10,10,400,300);

EganSolo:
Created a bug report. Done.
Sigh
Reverting to previous version of Lazarus.

Navigation

[0] Message Index

Go to full version