You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These buttons are currently disabled and we only want them enabled when appropriate. To do this we will use the TWebBrowser's OnCommandStateChange event. The code should look like this:
procedure TForm1.WebBrowser1CommandStateChange(Sender: TObject;
Command: Integer; Enable: WordBool);
begin
case Command of
CSC_NAVIGATEBACK: btnBack.Enabled := Enable;
CSC_NAVIGATEFORWARD: btnForward.Enabled := Enable;
end;
end;
The text was updated successfully, but these errors were encountered:
quoting from
http://dn.embarcadero.com/article/27726
These buttons are currently disabled and we only want them enabled when appropriate. To do this we will use the TWebBrowser's OnCommandStateChange event. The code should look like this:
The text was updated successfully, but these errors were encountered: