Forum > Windows

resize code


how do i make something resize with the window like a button or an Active x control same as the vb6 exe here :-[and how do i put Active X in the window :-[ i am new to  Lazarus but & i have no idea what to do :(

It's easy to resize the window, just use the Width and Height properties of the window, for example:

MyForm.Width := 500;
MyForm.Height := 200;

The simplest way is to create an OnResize event handler for the form and there add code to resize your components.

You can also study the following documentation to learn how to do this using LCL Properties:

 :D Thank You


[0] Message Index

Go to full version