SRL Archive - Delphi/FPC Help and Tutorials

[Lazarus]: Form2 with variable buttons


StevenV

2014-05-08 11:14:35

i used to use simba to make some programs, but since i want to make an .exe of it i have gotten to lazarus to make a program.

i would lazarus to make a starting form with a button. Onclick it should close/hide form1, create form2 and have x buttons depending on a variable.

can someone help me?

CynicRus

2014-05-08 12:44:55

From: StevenV
i used to use simba to make some programs, but since i want to make an .exe of it i have gotten to lazarus to make a program.

i would lazarus to make a starting form with a button. Onclick it should close/hide form1, create form2 and have x buttons depending on a variable.

can someone help me?


Here.

StevenV

2014-05-09 12:09:15

Thx it's solved,

i had seen the link you've given me, but it was a bit of a different problem, i could open the 2nd form but i wasn't able to alter it's apperance. I've solved it by creating a procedure in unit 2 to create itself and then call the procedure onclick.