Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Windows
»
resize code
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Conditional variable defi...
by
CM630
[
Today
at 11:34:10 am]
Result not being set in c...
by
BrunoK
[
Today
at 11:25:22 am]
Painting on a control - 3...
by
majolika
[
Today
at 11:06:26 am]
Amigo programming languag...
by
paxscript
[
Today
at 10:05:39 am]
Drawing with psInsidefram...
by
TRon
[
Today
at 09:38:56 am]
FPHTTPClient and SSL not ...
by
geraldholdsworth
[
Today
at 09:17:45 am]
Exclude Jedi Code Formatt...
by
JuhaManninen
[
Today
at 06:13:54 am]
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 01:38:37 am]
Return nil/null of data t...
by
VisualLab
[
Today
at 12:36:54 am]
How C++ class multiple in...
by
VisualLab
[
Today
at 12:24:05 am]
Preparing FPC 3.2.4, poin...
by
PascalDragon
[January 23, 2025, 10:34:10 pm]
Generic function speciali...
by
PascalDragon
[January 23, 2025, 10:17:13 pm]
Resolving procedure symbo...
by
440bx
[January 23, 2025, 10:16:17 pm]
Assembler window colors
by
Kornelius
[January 23, 2025, 10:11:46 pm]
laz.virtualtrees.pas not ...
by
kapibara
[January 23, 2025, 10:07:25 pm]
Does unit recompilation r...
by
Fred vS
[January 23, 2025, 10:00:54 pm]
Out ...: Array of Somethi...
by
440bx
[January 23, 2025, 09:08:57 pm]
Generic methods inside a ...
by
PascalDragon
[January 23, 2025, 09:03:58 pm]
Compiling 2 dependent pac...
by
Sergey Tkachenko
[January 23, 2025, 08:36:59 pm]
[SOLVED] Application.Proc...
by
erol
[January 23, 2025, 07:46:48 pm]
Timer difference in Linux...
by
Thaddy
[January 23, 2025, 06:51:31 pm]
مشكلة في التقارير
by
nouzi
[January 23, 2025, 06:28:58 pm]
Migrate vb.net to Lazarus...
by
Packs
[January 23, 2025, 06:16:35 pm]
Looking For Lazarus Tutor...
by
NobleStar
[January 23, 2025, 04:13:44 pm]
Getting format error load...
by
n7800
[January 23, 2025, 04:04:34 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: resize code (Read 7486 times)
Lazarususer6789
New Member
Posts: 15
resize code
«
on:
April 29, 2010, 02:09:10 pm »
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
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: resize code
«
Reply #1 on:
May 03, 2010, 07:38:32 pm »
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;
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: resize code
«
Reply #2 on:
May 03, 2010, 08:30:35 pm »
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
Logged
Lazarususer6789
New Member
Posts: 15
Re: resize code
«
Reply #3 on:
May 04, 2010, 06:43:48 pm »
Thank You
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Windows
»
resize code
TinyPortal
© 2005-2018