forked from wangshu/printv1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfm_debug_Unit.pas
59 lines (48 loc) · 1.63 KB
/
fm_debug_Unit.pas
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
unit fm_debug_Unit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, cxLookAndFeelPainters, cxGraphics, cxTextEdit,
cxMaskEdit, cxDropDownEdit, StdCtrls, cxButtons, cxControls, cxContainer,
cxEdit, cxGroupBox, Grids, MPHexEditor, cxLookAndFeels, dxSkinsCore,
dxSkinBlack, dxSkinBlue, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom,
dxSkinDarkSide, dxSkinFoggy, dxSkinGlassOceans, dxSkiniMaginary,
dxSkinLilian, dxSkinLiquidSky, dxSkinLondonLiquidSky, dxSkinMcSkin,
dxSkinMoneyTwins, dxSkinOffice2007Black, dxSkinOffice2007Blue,
dxSkinOffice2007Green, dxSkinOffice2007Pink, dxSkinOffice2007Silver,
dxSkinOffice2010Black, dxSkinOffice2010Blue, dxSkinOffice2010Silver,
dxSkinPumpkin, dxSkinSeven, dxSkinSharp, dxSkinSilver, dxSkinSpringTime,
dxSkinStardust, dxSkinSummer2008, dxSkinsDefaultPainters,
dxSkinValentine, dxSkinXmas2008Blue;
type
Tfrm_debug = class(TForm)
MPHexEditor1: TMPHexEditor;
cxGroupBox1: TcxGroupBox;
cxButton1: TcxButton;
cxButton2: TcxButton;
Label1: TLabel;
cxComboBox1: TcxComboBox;
procedure cxButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_debug: Tfrm_debug;
implementation
{$R *.dfm}
procedure Tfrm_debug.cxButton1Click(Sender: TObject);
var
f: TextFile;
i:integer;
begin
AssignFile(f, cxComboBox1.Text);
rewrite(f);
for i:=0 to self.MPHexEditor1.DataSize do
begin
write(f,self.MPHexEditor1.data[i])
end;
closefile(f);
end;
end.