如何将 F1book OCX控件的剪贴板与MDI主窗口的edit菜单相连接?(200分)

  • 主题发起人 liuxianghui
  • 开始时间
L

liuxianghui

Unregistered / Unconfirmed
GUEST, unregistred user!
在MDI窗体菜单 edit->Copy 的onClick 事件中调用F1book的editcopy方法,运行时出现
“不能打开剪贴板”错误,主菜单edit->Copy 项变暗,不能进行任何剪贴板操作。
但是如果先运行MDI的打开文件对话框,无论是否打开文件,以后都可以进行剪贴板操作,
但是主菜单edit->Copy 项还是变暗。不知何故?

在Formula One 6.0的Readme中有这样的描述,
Stand-Alone Applications
In order for drag-and-drop functionality to work in stand-alone applications,
you will need to add OleInitialize and OleUninitialize to your stand-alone
application.

The OleInitialize and OleUninitialize functions need to be added to any C++
application that uses Formula One.

Specifically, you should call ::OleInitialize(NULL) in the start up code.
::OleUninitialize() should be called in the exit code of the application.

不知是否与此有关。
我想是否可能建立一个接口,将 F1book OCX控件的剪贴板与MDI主窗口的剪贴板相连?

另祝大家新年好!
2000.12.30
 

小刚

Unregistered / Unconfirmed
GUEST, unregistred user!
可怜!这么久看都没有人看,我帮你提前,也给予关注!!
 
L

liuxianghui

Unregistered / Unconfirmed
GUEST, unregistred user!
是不是太简单了?怎么没有人回应?
 
L

liuxianghui

Unregistered / Unconfirmed
GUEST, unregistred user!
我在TIDESTONE的站点找到了解决"打不开剪贴板"的方法
Problem Number: 4665
Product: Formula One
Problem Type: Product Problem
Problem: IN Delphi 3.0, calling EditCopy or EditCut generate the error 'Unable to Open Clipboard'. KW: EditPaste
Solution/Workaround: Workaround:
Place an OLE Container object (located in the System tab on the Delphi palette) on the form and the EditCopy and EditCut will work propertly.
Also, see example code

但是仍然不能将剪贴板与Delphi相连,菜单还是会变暗!请大家继续!
 
Z

zyy04

Unregistered / Unconfirmed
GUEST, unregistred user!
清结束或继续
 
Z

zyy04

Unregistered / Unconfirmed
GUEST, unregistred user!
请继续或结束
 
Z

zyy04

Unregistered / Unconfirmed
GUEST, unregistred user!
多人接受答案了。
 
X

xiuguo

Unregistered / Unconfirmed
GUEST, unregistred user!
Place an OLE Container object (located in the System tab on the Delphi palette) on the form and the EditCopy and EditCut will work propertly.
Also, see example code
谢谢!上述语句使困扰我三天的问题得以解决,Thank you!
 
L

lncd

Unregistered / Unconfirmed
GUEST, unregistred user!
真是很奇怪呀。
F1Book还有这样的怪癖!!![:D][:D][:D][:D]
 
顶部