I am using the TWebBrowser ActiveX control with Delphi 4 Professional. I have these 4 components on the form...
cmdBack - To navigate back
cmdForward - To navigate forward
cmdClearNavigationHistory - To clear the navigation history, so the user can't go back or forward
WebBrowser - The web browser window itself
Now I have 2 issues...
1) Do you have any code that will enable/disable the cmdBack and cmdForward buttons as appropriate? If the user can't go back any further the cmdBack button should be disabled. Likewise if the user can't go forward any further the cmdForward button should be disabled. I know how to navigate back and forward using methods, but I don't know where the user is in the navigation history in order to determine the Enabled status of the buttons.
2) Do you have any code to clear the navigation history, so the user can't navigate back or forward until they have visited some more URLs?
Thanks in Advance,