Chapter 14. Docking Windows

only for RuBoard - do not distribute or recompile

Chapter 14. Docking Windows

Like band objects, docking windows provide a way for you to add your own user interface elements to Explorer. They share another similarity with band objects in that they can exist in several locationseither at the top or bottom of Explorer's client area as a horizontal window (see Figure 14.1) or to the left or right of the client area as a vertical window. Unlike band objects, however, you do not have to have Active Desktop installed in order to use them from both Explorer and Internet Explorer.

But there are a few drawbacks. They're not too bad, but worth mentioning. Docking windows have no associated menu item or toolbar button. So turning them on and off will require you to write some custom code, which could possibly be a problem. This gets trickier because docking window forms must be borderless. Borderless windows cannot have menus . If you define one, VB will add a title bar to the window. So you will not even be able to define a pop-up menu. Also, docking windows don't have the innate ability to be resized like Explorer and Communication bands. If you remember (think way back to the last chapter), a band object's container is automatically sized in response to Explorer being resized. Docking windows have no such luxury. While Explorer does provide size information to the docking window, the docking window itself must take responsibility for positioning itself. In fact, a majority of a docking window's time is spent figuring out its own position in Explorer's frame.

Something else you should know is that docking windows are not standalone components. That is, you don't create a "docking window component" that must be configured in the registry. Docking windows are created by existing components that wish to have a user interface. We have already discussed many of these components : namespace extensions, browser helper objects, browser extensions, and, yes, even band objects. Figure 14.1 shows a docking window that is docked at the bottom of the browser; this is the browser helper object from Chapter 12, which now has a user interface.

Figure 14.1. Docking window
figs/vshl.1401.gif
only for RuBoard - do not distribute or recompile


Visual Basic Shell Programming
Visual Basic Shell Programming
ISBN: B00007FY99
EAN: N/A
Year: 2000
Pages: 128

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net