{ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA } unit Defin; interface uses CRT, Screen, Config; type tPanelDef = record X1, Y1, X2, Y2, FC, BC: integer; end; const ProgVersion = 'v0.1'; pSource = 1; pFile = 2; pCommand = 3; pMisc = 4; pHelp = 5; NrLSrc: integer = 0; NrLAdr: integer = 0; NrReg: integer = 0; AnchoPan1 = 50; AltoPan1 = 15; MaxNrReg = 100; nrPanels = 5; PanelDef: array [1..nrPanels] of tPanelDef = ((X1: 1; Y1: 1; X2: AnchoPan1; Y2: AltoPan1; FC: White; BC: Black), (X1: AnchoPan1+2; Y1: 1; X2: 80; Y2: AltoPan1; FC: LightGray; BC: Black), (X1: 1; Y1: AltoPan1+2; X2: AnchoPan1; Y2: 24; FC: Green; BC: Black), (X1: AnchoPan1+2; Y1: AltoPan1+2; X2: 80; Y2: 24; FC: Yellow; BC: Black), (X1: 1; Y1: 25; X2: 80; Y2: 25; FC: Black; BC: Cyan)); var MainConfig: tConfig; SourceP: tSource; RegP: tRegisters; CommandP: tPanel; MiscP: tPanel; HelpP: tPanel; Reg : array [1..MaxNrReg] of tReg; const Panel: array [1..nrPanels] of pPanel = (@SourceP, @RegP, @CommandP, @MiscP, @HelpP); procedure InitInterface; implementation procedure InitInterface; var p: integer; begin TextColor(LightGray); TextBackground(Black); clrscr; for p := 1 to 24 do writeln('':AnchoPan1, '³'); gotoXY(1, AltoPan1+1); for p := 1 to 80 do write('Ä'); gotoXY(AnchoPan1+1, AltoPan1+1); write('Å'); for p := 1 to nrPanels do with PanelDef[p] do Panel[p]^.Initialize(X1, Y1, X2, Y2, FC, BC); HelpP.OutText(1, 1, ' MOVER: F1/F2: fuente, F3/F4: files F10: salir'); HelpP.FlashMessage(1, 'SimPic ' + ProgVersion, 1000); end; begin end.