Jaume Posted July 8, 2013 Share Posted July 8, 2013 Hi, I have a panel where i place some diferent frames depending of a button click. When i assign the frame align to "alclient", it doesn't do it, it's placed but not maximized to the size of the panel. This is the code i run on a click button of my Form form 1 of the frames: if frame1 = nil then begin frame1:= tframe1.create(self); frame1.Parent := self.panel1; frame1.Align := alclient; frame1.Visible := true; end; if frame1 <> nil then begin frame1.init(self.Handle,nil,nil); self.frame1.BringToFront; self.Menu:=self.frame1.Menu; end; frame1 is a private variable of the form and self.panel1 is alclient to this form. Also, as i mentioned in another post, self.Menu:=self.frame1.Menu doesn't work. You can't change the menu of a Form based on the active Frame as you can do in Delphi. Thank you very much Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 8, 2013 Share Posted July 8, 2013 please try "recalculatealign" Quote Link to comment Share on other sites More sharing options...
Jaume Posted July 8, 2013 Author Share Posted July 8, 2013 Ok, thank you. It works. Quote Link to comment Share on other sites More sharing options...
tappatappa Posted June 25, 2014 Share Posted June 25, 2014 please try "recalculatealign" I can't find any method/property with this name. What is it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.