Squirm
05-11-2003, 03:43 PM
The attached project shows how to turn a window into a sidebar, or AppBar. An AppBar is basically a window docked to one side of the desktop which restricts the desktop size automatically so that other windows do not overlap it, just like the taskbar does.
The project contains a form and a module. The form is really just to provide a working demonstration. The module can be dropped into your own applications with ease, and by calling the StartAppBar, one of your windows will become a sidebar. Don't forget to put StopAppBar in the Unload event.
The code is commented so I hope it is self-explanatory. It does subclass the form, which is not essential, but is the way to go if you want to do everything by the book. The sidebar is just a standard static sidebar, for use only with fixed-size, non-movable windows. Since it is subclassed, do not use the STOP button in the IDE.
If you have any problems or comments about the module, send me a PM.
Enjoy
:)
The project contains a form and a module. The form is really just to provide a working demonstration. The module can be dropped into your own applications with ease, and by calling the StartAppBar, one of your windows will become a sidebar. Don't forget to put StopAppBar in the Unload event.
The code is commented so I hope it is self-explanatory. It does subclass the form, which is not essential, but is the way to go if you want to do everything by the book. The sidebar is just a standard static sidebar, for use only with fixed-size, non-movable windows. Since it is subclassed, do not use the STOP button in the IDE.
If you have any problems or comments about the module, send me a PM.
Enjoy
:)