Bill
Bill

Reputation: 3033

TWebBrowser Can Undo or 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' );

Upvotes: 1

Views: 246

Answers (1)

Ondrej Kelle
Ondrej Kelle

Reputation: 37211

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.

Upvotes: 4

Related Questions