iesniffer OnWBCommandStateChange event
Return to Introduction  Previous page  Next page
Applies to
IESniffer component.  

Declaration
type  
  TIEWebBrowserCommandStateChange = procedure(Sender: TObject; const URL: Stringconst Browser: IWebBrowser2;  
    Command: Integer; Enable: WordBool) of object;  
 
property OnWBCommandStateChange: TIEWebBrowserCommandStateChange;  

Description
The OnWBCommandStateChange event occurs when the ability to execute certain IWebBrowser2 methods changes.  
 
Write an OnWBCommandStateChange to update any controls in the application whose state depends on the ability to execute the Web browser's methods.  
 
Browser is the Web browser control whose capabilities have changed.  
 
Command indicates what has changed. The following table lists the possible values:  
ConstantValue   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_NAVIGATEFORWARD1   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_NAVIGATEBACK2   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).  

See also
OnWBPropertyChange and OnWBProgressChange events.  
File not found.