Reputation: 3033
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
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