home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / turbo5 / bgiexamp.arc / GETFILLS.PAS < prev    next >
Pascal/Delphi Source File  |  1988-08-29  |  483b  |  22 lines

  1. uses
  2.   Graph;
  3. var
  4.   Gd, Gm   : integer;
  5.   FillInfo : FillSettingsType;
  6.  
  7. begin
  8.   Gd := Detect;
  9.   InitGraph(Gd, Gm, '');
  10.   if GraphResult <> grOk then
  11.     Halt(1);
  12.   GetFillSettings(FillInfo);   { save fill style and color }
  13.   Bar(0, 0, 50, 50);
  14.   SetFillStyle(XHatchFill, GetMaxColor);       { new style }
  15.   Bar(50, 0, 100, 50);
  16.   with FillInfo do
  17.     SetFillStyle(Pattern, Color); { restore old fill style }
  18.   Bar(100, 0, 150, 50);
  19.   Readln;
  20.   CloseGraph;
  21. end.
  22.