第一天研究delphi,还真有点不明白
如
object MENU_HELP_ABOUT: TMenuItem
Caption = '关于(&A)'
OnClick = MENU_HELP_ABOUTClick \\打开的是一个作者信息的窗体
end
end那么我想打开的是object frmPlayGold: TfrmPlayGoldobject frmPlayGold: TfrmPlayGold
Left = 381
Top = 186
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = '新窗体'
ClientHeight = 384
ClientWidth = 587
Color = clBtnFace
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = '宋体'
Font.Style = []
OldCreateOrder = True
ShowHint = True
PixelsPerInch = 96
TextHeight = 12
object Label52: TLabel
Left = 8
Top = 352
Width = 480
Height = 24
Caption =
'免责申明:此功能只可用于个人娱乐,如果使用此功能从事违法国家法规的' +
'活动而造成的后果'#13#10'和程序作者无关,如果不同意上述申明请立即删除本' +
'程序.'
Font.Charset = ANSI_CHARSET
Font.Color = clRed
Font.Height = -12
Font.Name = '宋体'
Font.Style = []
ParentFont = True
end怎么做呢?
如
object MENU_HELP_ABOUT: TMenuItem
Caption = '关于(&A)'
OnClick = MENU_HELP_ABOUTClick \\打开的是一个作者信息的窗体
end
end那么我想打开的是object frmPlayGold: TfrmPlayGoldobject frmPlayGold: TfrmPlayGold
Left = 381
Top = 186
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = '新窗体'
ClientHeight = 384
ClientWidth = 587
Color = clBtnFace
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = '宋体'
Font.Style = []
OldCreateOrder = True
ShowHint = True
PixelsPerInch = 96
TextHeight = 12
object Label52: TLabel
Left = 8
Top = 352
Width = 480
Height = 24
Caption =
'免责申明:此功能只可用于个人娱乐,如果使用此功能从事违法国家法规的' +
'活动而造成的后果'#13#10'和程序作者无关,如果不同意上述申明请立即删除本' +
'程序.'
Font.Charset = ANSI_CHARSET
Font.Color = clRed
Font.Height = -12
Font.Name = '宋体'
Font.Style = []
ParentFont = True
end怎么做呢?
解决方案 »
- 如何找到并点击没有 name, id ,classname 的按钮?如<button onclick="doSubmitFormOther()" type="button"><span>确定</span></button>
- delphi 里如何实现 VC++ 的 memcpy()函数的功能,把 FE 7F 09 40 转换成 float 型2.17
- 急:如何通过查询,将数据表中的记录为数字的列转化为相应的文字,于DBGrid中显示
- Application.CreateForm(TForm1, Form1)????
- 我保存记录时提示:“键列信息不足或不正确。更新影响到多行。”
- frmmain.ADOQuery1.UpdateBatch(arCurrent)为什么出错?
- 请问现在市场上主流的应用服务器报价分别是多少?
- 关于chart的问题
- 刚学,有个概念上的问题。请教!
- 怎样在For循环的SQL查询中用热键退出!
- 企业应用开发的点滴体会
- 做浏览器界面的话用哪种界面控件好?
try
frmPlayGold.show;//或是frmPlayGold.ShowModal;
finally
frmPlayGold.free
end;
//定义如下一个方法
//最后修正MENU_HELP_ABOUT.OnClick = ShowAboutDialog
//也可以达到目的!
procedure ShowAboutDialog(Sender:TObject);
var
vForm:TfrmPlayGold;
begin
vForm := TfrmPlayGold.Create(nil);
try
vForm.ShowModal;
finally
vForm.Free;
end;
end;