Hi,
I have been experimenting with Dcal for Delphi by simply drawing a batten. That is a rectangle with a cross. The user specifies width and depth and outline color and cross color, the batten is then drawn at the users click point. All works fine. The portion of code that sets the menu is as follows:
When clicking on F7 the Erase menu is displayed, and works except on exiting the Erase menu I am kicked out of the macro.
UInterfaces.pas lists :
Procedure menuErase(Var iwant:wantTpe);stdcall;external Appname;
I can't find any definition of wantType in the Header files. Is there something I am missing?
Rod Walker
I have been experimenting with Dcal for Delphi by simply drawing a batten. That is a rectangle with a cross. The user specifies width and depth and outline color and cross color, the batten is then drawn at the users click point. All works fine. The portion of code that sets the menu is as follows:
Code: Select all
if act <> alsize then
begin
wrterr ('batten version 1.0');
case b.state of
1:
begin
wrtlvl('batten');
lblsinit;
lblset (2,'Width');
lblset (3,'Depth');
lblset (5,'RectClr');
lblset (6,'xClr');
lblset (7,'Erase');
lblset (20,'Exit');
lblson;
wrtmsg('Enter ip Point or select option');
getpoint(b.getp,retval);
end;
2:
begin
wrtmsg('enter Width');
getdis(b.Width,b.getd,retval);
b.state:=1;
end;
3:
begin
wrtmsg('enter depth');
getdis(b.depth,b.getd,retval);
b.state:=1;
end;
5:
begin
wrtmsg ('select outline color');
getclr(b.outlineClr,b.getc,retval);
b.state:=1;
end;
6:
begin
wrtmsg ('select cross color');
getclr(b.xClr,b.getc,retval);
b.state:=1;
end;
7:
begin
MenuErase(retval);
{ b.state:=1;}
end;
else
retval := XDone;
end;
end;
result:=retval;
end;
When clicking on F7 the Erase menu is displayed, and works except on exiting the Erase menu I am kicked out of the macro.
UInterfaces.pas lists :
Procedure menuErase(Var iwant:wantTpe);stdcall;external Appname;
I can't find any definition of wantType in the Header files. Is there something I am missing?
Rod Walker