//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "ToolBarFromMenu.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
// BeginExample: ToolBarFromMenu
// Property: ComCtrls.TToolButton.Grouped
// Property: ComCtrls.TToolButton.MenuItem
// Property: ComCtrls.TToolBar.ShowCaptions
// Property: Forms.TCustomForm.Menu
// BeginCode
/*
To create a toolbar that corresponds to an existing menu:

1	Drop a ToolBar on the form and add a ToolButton for each
  top-level menu item you wish to create.
2	Set the MenuItem property of each ToolButton to correspond
  to the top level menu items.
3	Set the Grouped property of each ToolButton to true.
4	Clear the Menu property of the Form (if it is assigned)
5	Set the Visible property on the ToolBar and ToolButtons to
  true.
6	Set the ShowCaptions property on the ToolBar to true.
7	Set the MenuItem | Visible property of each ToolButton to
  true.
*/
// EndCode
// EndExample: ToolBarFromMenu
//---------------------------------------------------------------------------

