Hi guys,
I have been working on the script and i have done this one. The script is still wrong and I dont know the answer.
Could you help me guys, please?
PROCEDURE CreateDialog;
VAR
h: HANDLE;
nl,i,a: INTEGER;
layer : STRING;
dupl,go,ok : BOOLEAN;
Layers: DYNARRAY OF STRING;
FUNCTION
result : INTEGER;
VAR id : INTEGER;
BEGIN
id := CreateLayout('Revise Layer Link',TRUE,'ok', 'Cancel');
CreateStaticText(id,4,'Layers:',-1);
CreatePulldownMenu(id,5,32);
CreateCheckBox(dialogID,30,'Follow objects');
CreateCheckBox(id,40,'duplicate objects');
CreateGroupBox(id,6,'Layers Options',TRUE);
CreateCheckBox(id,7,'Planta Sótano');
CreateCheckBox(id,8,'Planta Baja');
CreateCheckBox(id,9,'Planta 1');
CreateCheckBox(id,10,'Planta 2');
CreateCheckBox(id,11,'Planta 3');
CreateCheckBox(id,12,'Planta 4');
CreateCheckBox(id,13,'Planta 5');
CreateCheckBox(id,14,'Planta 6');
CreateCheckBox(id,15,'Planta 7');
CreateCheckBox(id,16,'Planta 8');
CreateCheckBox(id,17,'Planta Atico');
CreateCheckBox(id,18,'Planta Cubierta');
SetFirstLayoutItem(id, 4);
SetBelowItem (id,4,6,0,0);
SetFirstGroupItem(id,6,7);
SetBelowItem (id,7,8,0,0);
SetBelowItem (id,8,9,0,0);
SetBelowItem (id,9,10,0,0);
SetBelowItem (id,10,11,0,0);
SetBelowItem (id,11,12,0,0);
SetBelowItem (id,12,13,0,0);
SetBelowItem (id,13,14,0,0);
SetBelowItem (id,14,15,0,0);
SetBelowItem (id,15,16,0,0);
SetBelowItem (id,16,17,0,0);
SetBelowItem (id,17,18,0,0);
SetBelowItem(id,18,30,0,0);
SetBelowItem(id,30,40,0,0);
SetHelpString(a,'Select a layer to transfer your selected object');
SetHelpString(30,'Go to the selected option with the actual visibility settings');
SetHelpString(40,'Select to duplicate your selected object');
result := RunLayoutDialog(id,NIL)
END;
Procedure GetLayers;
BEGIN
nl:= NumLayers;
ALLOCATE Layers[1..nl];
h:=FLayer;
For i:=1 TO nl DO BEGIN
Layers:=GetLNAME(h);
END;
END;
Procedure Drive_LayerClass;
VAR
item: LONGINT;
data: LONGINT;
BEGIN
CASE item OF SetupDialogC
BEGIN GetLayers; IF Layers=layer THEN SELChoice(a,i,ok);
END; OK:=TRUE; END;
BEGIN GetSelChoice(a,0,i,Layers);
go:=ItemSel(30);
dupl:=ItemSel(40);
END;
END;
END;
END;
RUN(CreateDialog);