Forum > Beginners

<solved> command line

<< < (3/3)

Sprek Skik:

--- Quote from: cdbc on May 10, 2024, 09:21:02 pm ---Hi
This works for me in a button click-handler:
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure procedure TForm1.Button1Click(Sender: TObject);var  i: integer;begin  for i := 0 to paramCount() do  begin    showmessage(paramStr(i));  end;end;...dunno 'bout 'FormCreate' though.
Regards Benny

--- End quote ---

Nice Code! Thanks...

Handoko:

--- Quote from: Sprek Skik on May 14, 2024, 08:08:49 am ---I will test it, because I have the experience that FormActivate doesn't work in my code...( example program klokje from https://wiskunst.nl/index.php/programmeren1/delphi-lazarus/lazarus-klokje-intro/)

--- End quote ---

The link you provided does not have any code for us to test.

Sprek Skik:

--- Quote from: Handoko on May 14, 2024, 08:25:39 am ---
--- Quote from: Sprek Skik on May 14, 2024, 08:08:49 am ---I will test it, because I have the experience that FormActivate doesn't work in my code...( example program klokje from https://wiskunst.nl/index.php/programmeren1/delphi-lazarus/lazarus-klokje-intro/)

--- End quote ---

The link you provided does not have any code for us to test.

--- End quote ---

go to the last document on the site on this page you will see an index of source code you will need all to compile klokje.
hope you will find the  code.

Handoko:
I think I found what you meant. Unfortunately the website doesn't provide a download button.

If you're new in Lazarus/Pascal I recommend this page, which has a list of short demos for you to download, try and learn:

https://wiki.freepascal.org/Portal:HowTo_Demos

Navigation

[0] Message Index

[*] Previous page

Go to full version