Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Best way to create a button grid in lazarus?
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
IRC channel
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
Form scaling
by
fxeconomist
[
Today
at 08:09:39 pm]
InstallAware Using Lazaru...
by
Thaddy
[
Today
at 07:21:31 pm]
Macros confuse error mess...
by
MarkMLl
[
Today
at 07:20:43 pm]
Post your internal error ...
by
Eugene Loza
[
Today
at 07:12:35 pm]
Lazarus project made on M...
by
Odacir
[
Today
at 06:57:45 pm]
C-evo: New Horizons 1.3.0...
by
Chronos
[
Today
at 06:32:41 pm]
Lazarus for Windows on aa...
by
msintle
[
Today
at 06:32:02 pm]
How can i make this windo...
by
Handoko
[
Today
at 06:23:43 pm]
CocoaInt.CocoaIconUse no ...
by
dsiders
[
Today
at 06:22:10 pm]
Does anyone know why this...
by
Laksen
[
Today
at 06:01:04 pm]
For-in loop over constant...
by
alpine
[
Today
at 05:20:47 pm]
pre-processor symbol when...
by
paule32
[
Today
at 05:11:35 pm]
How are cookies share Web...
by
Thaddy
[
Today
at 04:59:59 pm]
CORBA interface and Varia...
by
JdeHaan
[
Today
at 04:56:48 pm]
Azure sql database will n...
by
wpflum
[
Today
at 04:04:56 pm]
Values of a custom compon...
by
CM630
[
Today
at 01:42:08 pm]
Arabic text, problem on L...
by
marius.maximus
[
Today
at 12:59:47 pm]
[solved] Lazarus does not...
by
wp
[
Today
at 12:38:09 pm]
How does Castle Game Eng...
by
Aistis
[
Today
at 12:21:03 pm]
Minimum code for implemen...
by
MISV
[
Today
at 11:37:54 am]
[re-opened] Package PPU l...
by
CCRDude
[
Today
at 11:19:11 am]
Distro has depreciated qt...
by
TheMouseAUS
[
Today
at 11:12:25 am]
How can I draw a rectangl...
by
jcmontherock
[
Today
at 11:08:24 am]
TBGRABitmap.TextSize retu...
by
KodeZwerg
[
Today
at 10:26:36 am]
Lazreport: Question about...
by
teco
[
Today
at 09:18:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Best way to create a button grid in lazarus? (Read 1242 times)
randohinn
New Member
Posts: 13
Best way to create a button grid in lazarus?
«
on:
July 14, 2020, 10:58:20 pm »
What's the best component or package to create a grid of buttons with n rows m columns of equal size cells, where I could just set the row and column indexes for the individual buttons?
Logged
jamie
Hero Member
Posts: 6128
Re: Best way to create a button grid in lazarus?
«
Reply #1 on:
July 14, 2020, 11:02:30 pm »
TDrawGrid maybe ?
That gives you the grid where you can custom draw on the cells the image you want that could behave like buttons.
Or TFlowPanel
Logged
The only true wisdom is knowing you know nothing
wp
Hero Member
Posts: 11912
Re: Best way to create a button grid in lazarus?
«
Reply #2 on:
July 15, 2020, 12:04:34 am »
No special component needed, just use the ChildSizing property of the container. See attached demo.
[EDIT]
Sorry, I mixed up n and m in the demo.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Best way to create a button grid in lazarus?
TinyPortal
© 2005-2018