to dreamfan(★★★★★)怎么判断呢?
就是调用那个产生子窗体的按钮的触发事件,对吧
具体调用那个方法阿?
就是调用那个产生子窗体的按钮的触发事件,对吧
具体调用那个方法阿?
解决方案 »
- 为什么每次启动DELPHI后只会出现一次错误?
- 关于mdac
- 如何更换treeview中的图标呀?
- 怎样将float类型转换为int类型啊?
- 请问FastReport中表单合计怎么做?
- 指针后跟个括号啥意思?
- 问一个窗体的消息问题?
- 如何利用delphi7.0与SQL server进行库连接及对库的操作!最好有个小程序供小弟学习!请各位高手帮忙!小弟一定给分!
- 各位,请问DBDatetimepicker控件哪里有下载?拜托了!
- 到哪里能找到Delphi 6 的手册,中英文都可以。
- install expression 打包问题 急急急
- 请问不使用第三组件怎样打印 grid的内容,现在希望可以学习继承类的方法去实现这功能
.
.
.
.
constructor TFrmInf.Create(B:TButton);
begin
inherited;
//以下根据B的属性指定 BBtn_Ent的Action属性
..........
end;
在父窗体中点击不同BUTTON时穿给不同的数值如1、2;
子窗体根据传入值执行不同的操作,此处为设置事件。
父窗体中
button1点击事件
form2.setevent(1);
form2.show
好像不行阿,你实践过了么?
提示好多错误:[Warning] Unit2.pas(20): Method 'Create' hides virtual method of base type 'TCustomForm'
[Error] Unit2.pas(31): Undeclared identifier: 'create'
[Error] Unit2.pas(33): This form of method call only allowed in methods of derived types
[Error] Unit2.pas(34): Operator not applicable to this operand type
[Error] Unit2.pas(35): Undeclared identifier: 'BBtn'
[Error] Unit2.pas(35): Undeclared identifier: 'ActionList1'
[Error] Unit2.pas(35): Missing operator or semicolon
[Error] Unit2.pas(36): Operator not applicable to this operand type
[Error] Unit2.pas(37): Missing operator or semicolon
[Error] Unit2.pas(37): Missing operator or semicolon
[Error] Unit2.pas(20): Unsatisfied forward or external declaration: 'TForm2.Create'
[Fatal Error] Unit1.pas(78): Could not compile used unit 'Unit2.pas'
请问:procedure SetEvent(mode:integer);
怎么写?
.
.
.
.
constructor TFrmInf.Create(B:TButton);
begin
inherited Create(Nil);
//以下根据B的属性指定 BBtn_Ent的Action属性
..........
end;
对
其实用Public就OK了。
我用了个公用Proc,然后给父窗体调用。
子窗体处理具体业务逻辑。谢谢各位了
//the end