git-svn-id: https://192.168.0.254/svn/Proyectos.AlonsoYSal_FactuGES/trunk@5 9a1d36f3-7752-2d40-8ccb-50eb49674c68
50 lines
1.1 KiB
ObjectPascal
50 lines
1.1 KiB
ObjectPascal
unit uViewMensaje;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, uViewBase, StdCtrls, pngimage, ExtCtrls, TBXDkPanels, AppEvnts,
|
|
JvExControls, JvComponent, JvButton, JvNavigationPane;
|
|
|
|
type
|
|
TfrViewMensaje = class(TfrViewBase)
|
|
TBXAlignmentPanel1: TTBXAlignmentPanel;
|
|
Image1: TImage;
|
|
lblMensaje: TLabel;
|
|
ApplicationEvents: TApplicationEvents;
|
|
bClose: TJvNavIconButton;
|
|
procedure ApplicationEventsException(Sender: TObject; E: Exception);
|
|
procedure bCloseClick(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
frViewMensaje: TfrViewMensaje;
|
|
|
|
implementation
|
|
|
|
uses uDataModuleBase;
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TfrViewMensaje.ApplicationEventsException(Sender: TObject;
|
|
E: Exception);
|
|
begin
|
|
inherited;
|
|
lblMensaje.Caption := E.Message;
|
|
if not Visible then
|
|
Visible := True;
|
|
end;
|
|
|
|
procedure TfrViewMensaje.bCloseClick(Sender: TObject);
|
|
begin
|
|
inherited;
|
|
Visible := False;
|
|
end;
|
|
|
|
end.
|