desarrollosconsejeria/adtos-server/1.7-0/adtos/acerca.pas @ 23a384b9
54e95a47 | Elisa | {
|
|
23a384b9 | Elisa | Adtos 1.0 Software de gestión de Aulas Tecnológicas
|
|
Copyright (C) 2008-2009, Consejería de Educación,Junta de Extremadura
|
|||
54e95a47 | Elisa | Programación: Manuel Narváez Martínez <mnarvaez007@gmail.com>
|
|
Diseño gráfico: Ana María Zamora Moreno
|
|||
Desarrollado con Lazarus 0.9.26
|
|||
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 acerca;
|
|||
{$mode objfpc}{$H+}
|
|||
interface
|
|||
uses
|
|||
23a384b9 | Elisa | inicio,Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
|
54e95a47 | Elisa | Buttons, StdCtrls;
|
|
type
|
|||
{ TfrmAcerca }
|
|||
TfrmAcerca = class(TForm)
|
|||
btnLicencia: TBitBtn;
|
|||
btnVolver: TBitBtn;
|
|||
Image1: TImage;
|
|||
Memo1: TMemo;
|
|||
procedure btnLicenciaClick(Sender: TObject);
|
|||
procedure btnVolverClick(Sender: TObject);
|
|||
23a384b9 | Elisa | procedure FormActivate(Sender: TObject);
|
|
54e95a47 | Elisa | procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
|
23a384b9 | Elisa | procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
|
54e95a47 | Elisa | procedure FormCreate(Sender: TObject);
|
|
private
|
|||
{ private declarations }
|
|||
public
|
|||
{ public declarations }
|
|||
end;
|
|||
var
|
|||
{ TfrmAcerca }
|
|||
frmAcerca: TfrmAcerca;
|
|||
implementation
|
|||
const
|
|||
23a384b9 | Elisa | COPYRIGHT:string='/usr/share/doc/adtos/copyright';
|
|
54e95a47 | Elisa | ||
procedure TfrmAcerca.FormCreate(Sender: TObject);
|
|||
begin
|
|||
top:=13;
|
|||
left:=(screen.Width-width) div 2;
|
|||
btnLicencia.Visible:=fileexists(COPYRIGHT)
|
|||
end;
|
|||
procedure TfrmAcerca.btnLicenciaClick(Sender: TObject);
|
|||
begin
|
|||
if fileexists(COPYRIGHT) then
|
|||
begin
|
|||
memo1.lines.LoadFromFile(COPYRIGHT);
|
|||
memo1.Visible:=not memo1.Visible;
|
|||
end;
|
|||
end;
|
|||
procedure TfrmAcerca.btnVolverClick(Sender: TObject);
|
|||
begin
|
|||
close;
|
|||
end;
|
|||
23a384b9 | Elisa | procedure TfrmAcerca.FormActivate(Sender: TObject);
|
|
begin
|
|||
if frmMain.Visible then frmMain.hide;
|
|||
end;
|
|||
54e95a47 | Elisa | procedure TfrmAcerca.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
|
begin
|
|||
CloseAction:=caFree;
|
|||
end;
|
|||
23a384b9 | Elisa | procedure TfrmAcerca.FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
|
begin
|
|||
frmMain.Show;
|
|||
hide;
|
|||
end;
|
|||
54e95a47 | Elisa | initialization
|
|
{$I acerca.lrs}
|
|||
end.
|