corba问题

jing1979 2000-05-25 09:01:00
delphi的sample:demo corba client中的几个地方我看不懂想请教。

1。CustomerCDSOrderTable:TDataSetFiled.......以CustomerCds打头的类是怎 来的。我想不出来

2。
procedure TDemoClientFrm.ApplyUpdatesUpdate(Sender: TObject);
begin
ApplyUpdates.Enabled := CustomerCDS.ChangeCount > 0;
end;
在什么时候调用呀??我运行时只要dbgrid 有change ,就好象要运行了。
...全文
152 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jing1979 2000-05-26
  • 打赏
  • 举报
回复
其实我已经搞定了。

我不是不看help只是原来没有用过actionlist。不知到其中的奥秘。

只不过还是要谢谢你的热心,分就给你了。
kxy 2000-05-26
  • 打赏
  • 举报
回复
1)你双击CustomerCDS,就会看到是怎么回事了。
2)TAction的OnUpdate的触发是在Occurs when the application is idle or when the action list updates.
When the application is idle, the OnUpdate event occurs for every action that is linked to a visible control or menu item that is showing. This provides an opportunity for applications to execute centralized code for enabling and disabling, checking and unchecking, and so on. For example, the following code illustrates the OnUpdate event handler for an action that is 揷hecked?when the toolbar is visible. This example requires a TActionList (with one TAction) and a TToolBar on a form.
你是不是不看Help的。
jing1979 2000-05-26
  • 打赏
  • 举报
回复
你根本就没有好好去看这个sample。你好好去看一下就明白我的意思了。

我的第一个问题是在编辑时的窗体上根本就找不到CustomerCDSOrderTable,他是同customerCds一起create的。但我不知这是怎么一回事。

第二个问题。不要随便说应该,去看看就知了。
kxy 2000-05-25
  • 打赏
  • 举报
回复
1.自己取的,给Table取的名字。
2。应该是在Table.applyUpdates时。

5,386

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧