RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SHDocVw.TWebBrowserCommandStateChange Type

TWebBrowserCommandStateChange is the type for the OnCommandStateChange event handler on TWebBrowser.

Pascal
TWebBrowserCommandStateChange = procedure (ASender: TObject; Command: Integer; Enable: WordBool) of object;
C++
(ASender: TObject; Command: Integer; Enable: WordBool) ( TWebBrowserCommandStateChange)();

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 
-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.  
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).  
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). 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!