1

使用 TWebBrower 如何获得撤消或重做状态(CanUndo、Can Redo)?

这总是假的?

  Undo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Undo' );
  Redo1.Enabled := HTMLDocument2Ifc.queryCommandValue( 'Redo' );
4

1 回答 1

4

您正在寻找的可能是queryCommandEnabled方法。我猜撤消和重做命令只会在浏览器处于编辑模式时启用。

于 2011-12-10T17:41:15.617 回答