home *** CD-ROM | disk | FTP | other *** search
- uses
- Graph;
- var
- Gd, Gm : integer;
- OldStyle : LineSettingsType;
- begin
- Gd := Detect;
- InitGraph(Gd, Gm, '');
- if GraphResult <> grOk then
- Halt(1);
- Line(0, 0, 100, 0);
- GetLineSettings(OldStyle);
- SetLineStyle(DottedLn, 0, ThickWidth); { new style }
- Line(0, 10, 100, 10);
- with OldStyle do { restore old line style }
- SetLineStyle(LineStyle, Pattern, Thickness);
- Line(0, 20, 100, 20);
- Readln;
- CloseGraph;
- end.