/*
Alignment example
To use this example, place a Toolbar and a RichEdit on the form. Right click the toolbar and select New Button three times. Place the ToolButton1Click handling code in the on click event of the first TToolButton, then attach the same OnClick handler for each button.
*/ 
void __fastcall TForm1::ToolButton1Click(TObject *Sender)
{
  if (Sender == ToolButton1)
    RichEdit1->Paragraph->Alignment = taLeftJustify;
  else if (Sender == Toolbutton2)
    RichEdit1->Paragraph->Alignment = taCenter;
  else if (Sender == Toolbutton3)
    RichEdit1->Paragraph->Alignment = taRightJustify;
} 
