-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnt_FuncoesPredefinidas.pas
More file actions
65 lines (54 loc) · 1.4 KB
/
Unt_FuncoesPredefinidas.pas
File metadata and controls
65 lines (54 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
unit Unt_FuncoesPredefinidas;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters,
dxSkinsCore, dxSkinOffice2007Blue, dxSkinscxPCPainter, Menus, StdCtrls,
cxButtons, ExtCtrls, cxPC, cxContainer, cxEdit, cxTextEdit, cxMaskEdit,
cxDropDownEdit, cxImageComboBox;
type
TF_FuncoesPredefinidas = class(TForm)
cxPageControl1: TcxPageControl;
tab_funcoes: TcxTabSheet;
pnl_base: TPanel;
btn_Canc: TcxButton;
btn_Ok: TcxButton;
lbl_fincao: TLabel;
img_funcoes: TcxImageComboBox;
procedure btn_CancClick(Sender: TObject);
procedure btn_OkClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
class function Inicia: Integer;
end;
var
F_FuncoesPredefinidas: TF_FuncoesPredefinidas;
implementation
{$R *.dfm}
{ TF_FuncoesPredefinidas }
procedure TF_FuncoesPredefinidas.btn_CancClick(Sender: TObject);
begin
Close;
end;
procedure TF_FuncoesPredefinidas.btn_OkClick(Sender: TObject);
begin
Close;
end;
class function TF_FuncoesPredefinidas.Inicia: Integer;
begin
with Self.Create(Application) do
begin
try
ShowModal;
finally
if img_funcoes.EditValue = null then
Result:= 0
else
Result:= Integer(img_funcoes.EditValue);
Free;
end;
end;
end;
end.