Forum > Windows
resize code
(1/1)
Lazarususer6789:
how do i make something resize with the window like a button or an Active x control same as the vb6 exe here http://ff24eva.0adz.com/vbp.7z :-[and how do i put Active X in the window :-[ i am new to Lazarus but & i have no idea what to do :(
felipemdc:
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;
felipemdc:
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:
http://wiki.lazarus.freepascal.org/Autosize_/_Layout
http://wiki.lazarus.freepascal.org/LCL_AutoSizing
Lazarususer6789:
:D Thank You
Navigation
[0] Message Index