Using TDockableControlBar

Date: 8 February 1997
Author: Christopher Kohlhoff

Overview

This article looks at how to use TDockableControlBar. TDockableControlBar is a class that provides a toolbar style window (like the Windows 95 common control), however TDockableControlBar can also be used in 16-bit applications. You can download the example project from here. Note that the easiest way to add a control bar is to generate an AppExpert application.

Steps

Before You Start

Before adding the code to add a control bar, there are some things that have to be added:

Creating the Control Bar

Creating a control bar involves the following:

Showing and Hiding the Control Bar

This following example shows how to allow your control bar to be shown or hidden by the user. When shown, it is at the position that it was last visible.