I have attempted to research this topic via Google to no avail as I do not know exactly what I am looking for.
I am trying to develop a custom dialog box that will allow a user to input numbers in order to create specific drawing.
The drawing itself is rather uncomplicated. It is a rectangle with an offset that will have a circles at intervals of 24" which is contingent on the rectangle dimension.
Similar to this image:
This is the custom dialog box code I have manipulated.
PROCEDURE CreateDialog;
VAR
id: LONGINT;
result : LONGINT;
BEGIN
id := CreateLayout('Panel',TRUE,'Generate', '');
CreateGroupBox(id,4,'Shell',TRUE);
CreateEditText(id,5,'Width',26);
CreateEditText(id,6,'Length',26);
CreateGroupBox(id,7,'Armature',TRUE);
CreateEditText(id,8,'Width Offset',26);
CreateEditText(id,9,'Length Offset',26);
SetFirstLayoutItem(id, 4);
SetFirstGroupItem(id,4,5);
SetRightItem(id,5,6,0,0);
SetBelowItem(id,4,7,0,0);
SetFirstGroupItem(id,7,8);
SetRightItem(id,8,9,0,0);
result := RunLayoutDialog(id,NIL);
END;
RUN(CreateDialog);
I understand how to command vectorscript to draw a rectangle but I am unsure how to connect that command to the dialog box and furthermore I do not know how to make the circles contingent on the overall dimensions of the rectangle.
I am not looking for someone to do my work, I just need assistance on where to look for help. I have read over the Vectorscript reference and done some searches on the function reference but neither explain a great deal to those who are not familiar with coding language.
Any pointers?
Thank you