TWebBrowser 可以撤消或重做
使用 TWebBrower 如何获得撤消或重做状态(CanUndo、Can Redo)?
这总是假的?
Undo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Undo' );
Redo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Redo' );
With a TWebBrower how can you get the undo or redo state (CanUndo, Can Redo)?
This always is false?
Undo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Undo' );
Redo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Redo' );
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要查找的内容可能是 queryCommandEnabled 方法。我猜想只有当浏览器位于 编辑模式。
What you're looking for might be queryCommandEnabled method. I guess Undo and Redo commands will only be enabled when the browser is in edit mode.