How to create a shape change dialog box

How can I create a form change dialog form in Firemonkey using Delphi XE3.

I want to create two layouts with some components (buttons, changes) inside any of them and one button in the first layout with the name "SHOW / HIDE MORE DETAILS", So this button will do: layout2.visible: = false

With this component layout2 hide, but not automatic alignment and automatic shape. How can i do this? Here is an example image of what I want to do

Image Example

+4
source share
2 answers

Just control the Shape Height property to expand or contract the shape. Any control that is not painted in the client area still remains in the same position independently.

Make sure you turn off your invisible components when compressing the form, although they were not drawn, they can still get focus.

+4
source

Take a look at the following code:

procedure TForm1.Button1Click(Sender: TObject); begin Form1.Height:=40; end; 

Using this, when you click More (in this case, the button is called Button1), the form changes its height. I set 40, but of course you can use a different integer value.

+4
source

Source: https://habr.com/ru/post/1486435/


All Articles