7
7030
Unregistered / Unconfirmed
GUEST, unregistred user!
有没有现成的方法把dfm文件的描述改写成xml格式?如
object Form1: TForm1
Left = 192
Top = 133
Width = 696
Height = 480
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = #23435#20307
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 12
object Button1: TButton
Left = 232
Top = 168
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
OnClick = Button1Click
end
end
改写成
<?xml version="1.0"
encoding="utf-8"?>
<TForm1 name="form1"
left="192"
top="133"
width="696"
height="480"
caption="form1"
color="clbtnface"
>
<TButton name="button1"
left="232"
top="168"
width="75"
height="25"
caption="Button1">
</TButton>
</TForm1>
或能提供最有效的方法?
object Form1: TForm1
Left = 192
Top = 133
Width = 696
Height = 480
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = #23435#20307
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 12
object Button1: TButton
Left = 232
Top = 168
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
OnClick = Button1Click
end
end
改写成
<?xml version="1.0"
encoding="utf-8"?>
<TForm1 name="form1"
left="192"
top="133"
width="696"
height="480"
caption="form1"
color="clbtnface"
>
<TButton name="button1"
left="232"
top="168"
width="75"
height="25"
caption="Button1">
</TButton>
</TForm1>
或能提供最有效的方法?