Home
Description
Examples
Component Info
Downloads
FAQ
About
http://www.virtual-journey.com
TExplorerD4: a component by Pragma Systems
TExplorerD4
 

 

 


You can use the ExecWB embedded method to send commands to the ActiveX control.
This is a sample of printing:

procedure TExplorerForm.printClick(Sender: TObject);
var
    null : OLEvariant ;
begin
    null := 0 ;
    try
        Browser.EXECWB ( OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER,

                         null, null ) ;
    except
    end ;
end;

The try-except block avoid a message dialog when the user click on the Cancel button.

back.gif (675 byte)

You can use the event OnNewWindow2 to avoid this. Simply set the Cancel variable to false to cancel the navigation.

This solution has a problem: if there is a link on an HTML page that require a new browser, the navigation to that link is canceled. I'm searching more informations to solve this problem. Stay tuned!

back.gif (675 byte)

You can't avoid that, whan an user right-clicks on a link or over a page, the component shows a context menù.

Remember that the component is derived directly from the Microsoft WebBrowser ActiveX control, and we have no control on some type of events.

back.gif (675 byte)

This is a my bug only in the TExplorerCommand for Delphi 3. I've used Delphi 3.01 Client/Server to develop the example program. During develop Delphi has added some units to the uses clause that other version of Delphi does'nt have (because I've tried to add spectacular component to the example program).

To solve this problem, remove the units:

  • TeEngine, TeeFunci, Series, TeeProcs, Chart from the FormEx.pas source
  • DtMisc from the Example.pas source

back.gif (675 byte)

This property is not part of the WebBrowser object and is not part of TExplorerCommand component. It is added by Delphi Importer like the standard properties HelpContext, Hint, TabOrder and so on.

You can use them to store informations, but the component completely ignore these values.

back.gif (675 byte)