|
|
Explorer Bar w. HTML
Explorer BarsInternet Explorer Bars are those bars you can toggle on and get annoyed with because they clutter up your browser's workspace. Like the Search bar and History bar.Explorer Bars are docked to the left or in the bottom of your browser window. You turn them on from the View / Explorer Bar menu in Internet Explorer. How to create these bars is described on MSDN in an article called "Creating Custom Explorer Bars, Tool Bands, and Desk Bands". Microsoft briefly mentions that you can create a bar from an HTML file, and then goes on to describe some complicated (incomplete) registry settings needed to do this. Explorer Bars with HTMLThe HTML Explorer Bar is a regular Explorer Bar, which loads an HTML file in its view. To create the bar, you must supply the following information:
The Title can contain an ampersand character to allow a menu shortcut.
The URL argument should contain a protocol; so if you use a locally installed file then
prefix it with file:///; if it's a page on the web, prefix with http://.
And yes, you can reference a page located on the web.
Your Explorer Bar navigates inside its own view if you click on a link in your HTML page.
To navigate in the main window, you must reference the
It's actually easier to just set the base if you don't want to navigate locally at all.
Manipulating the main page using DHTML (JavaScript) becomes a bit trickier. I'm not sure this is really supported because IE doesn't seem to allow you to reference the main window through scripting code. One clever hack could be to send...
URLs to your _main frame.
The object Microsoft tugged away in the window.external scripting property
is an IShellUIHelper interface - not of much use.
Bar InstallerBecause it's inconvenient to mess with registry settings manually, I've created a small utility that will install/uninstall an Explorer Bar. It takes a number of command line arguments and creates the appropriate registry keys.
It's a console application, so you need a command prompt to see the output (if any).
Anyway, just run the file and it will display the arguments it needs to be called with.
Controlling the BarIt is also possible to create a toolbar button in the Internet Explorer as well. Clicking on this button, toggles the newly installed Explorer Bar on and off.To be able to use it, you must have used the -CLSID argument when installing the bar. Supply a CLSID by using the GUIDGEN utility. This creates a new unique identifier for your Bar so it doesn't conflict with other IE components. Finally you can use the following registry script to create the button. The script was supplied by Johan Frithioff: Known Bugs
Source Code DependenciesInternet Explorer 4 or betterMicrosoft Visual C++ 6.0 Installation Guide
Download Files
Written by Bjarke Viksoe. Article submitted 7/27/2001. To the top
|
|||