Hello,
When a macro is first run it is normal to provide default values. In 'old DCAL' this was done by detecting a boolean value, say 'init' which when first time run defaulted to false, so the programmer set up the defaults by a procedure(initialize) and set init to true; The user would typically change these settings to their own preferances, which was then maintained.
In Dcal for Delphi the initialiazation is set by the action 'afirst' eg.
No problem so far. Now when the user changes these am I correct in thinking I will have to write these to a file and read them in under the act=afirst code?
Regards
Rod Walker
When a macro is first run it is normal to provide default values. In 'old DCAL' this was done by detecting a boolean value, say 'init' which when first time run defaulted to false, so the programmer set up the defaults by a procedure(initialize) and set init to true; The user would typically change these settings to their own preferances, which was then maintained.
In Dcal for Delphi the initialiazation is set by the action 'afirst' eg.
Code: Select all
if act = afirst then
begin
b.ptno:=1;
b.state:=1;
b.outlineClr:=clrred;
b.xClr:=clrltred;
b.Width:=75.0/metricconv;
b.depth:=38.0/metricconv;
b.endspc:=900.0/metricconv;
b.intspc:=1200.0/metricconv;
end
No problem so far. Now when the user changes these am I correct in thinking I will have to write these to a file and read them in under the act=afirst code?
Regards
Rod Walker