schoschy hat geschrieben: Fr 3. Nov 2023, 07:23
dass das generell so aussieht, ist jetzt bestätigt worden.
Jetzt kommt die Frage, was diese Vorlage kann.
Was das Makro tut, steht bei "Makro einfügen" -> "Param".
Insert an editable Cell. Cells can be navigated using the tab key.
The "param" macro takes a list of comma separated arguments.
The first argument is the default value.
The 2nd argument (optional) can be used to link the cell to another cell (syncro edit).
while param("foo") do param(foo);
Inserts 2 independent cells, both with the default text "foo".
The quotes are optional.
if param("foo") > 0 and param("foo",sync=1) < 99 then
Inserts 2 linked cells, editing either one, will change the other one too.
The value "1" refers to the position of the other "param()", so if there are more params:
if param("bar") and param(foo) > 0 and param(foo,sync=2) < 99 then
The 2nd and third are linked (the 3rd refers to "2").
"Sync" can be shortened to "s":
if param("foo") > 0 and param("foo",s=1) < 99 then
if param("bar") and param("foo") > 0 and param("foo",sync) < 99 then
The 2nd and third are linked.
Note: "Sync" has no position and no "=", so it syncs to the previous cell with the same default (in this case "foo").
Soweit ich das jetzt verstanden habe, wird hier in Lazarus PascalSkript verwendet, womit Felder erstellt werden, welche mit Tab anwählbar sind.
Funktioniert natürlich nicht, wenn bei procedure das Makro nicht verwendet wird, weshalb dann der Makrotext im Editor der IDE landet -> daher die Verwirrung.
Haken rein und schon ist das Verhalten wie Ursprünglich angedacht.
Beim durchstöbern der Liste sind auch weitere Makros nicht aktiviert.