SHDocVw.TWebBrowserCommandStateChange
Delphi
TWebBrowserCommandStateChange = procedure(ASender: TObject; Command: Integer; Enable: WordBool) of object;
C++
typedef void __fastcall (__closure *TWebBrowserCommandStateChange)(System::TObject* ASender, int Command, System::WordBool Enable);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | SHDocVw.pas SHDocVw.hpp |
SHDocVw | SHDocVw |
Description
TWebBrowserCommandStateChange is the type for the OnCommandStateChange event handler on TWebBrowser.
Sender is the Web browser control whose capabilities have changed.
Command indicates what has changed. The following table lists the possible values:
ConstantValueMeaning
Constant | Value | Meaning |
---|---|---|
CSC_UPDATECOMMANDS |
-1 |
Any change not covered by the other constants. The application must check the properties of the Web browser to update its controls. For example, the event handler might check the Busy property to update a Stop button. |
CSC_NAVIGATEFORWARD |
1 |
The history list changed the ability of the GoForward method to navigate to a new URL. The Enable parameter indicates whether GoForward now navigates to a new URL (true), or not (false). |
CSC_NAVIGATEBACK |
2 |
The history list changed the ability of the GoBack method to navigate to a new URL. The Enable parameter indicates whether GoBack now navigates to a new URL (true), or not (false). |
Enable indicates whether the CSC_NAVIGATEFORWARD or CSC_NAVIGATEBACK commands should now be enabled (true), or not (false).