ShowGetTextDlg example for C++ Builder

void __fastcall TForm1::ShowGetTextDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   AnsiString strSampleText; 

   strSampleText= "LEADTOOLS!"; 

   LEADDlgEffect1->TextForegroundBitmap = LEADImage2->Bitmap; 
   LEADDlgEffect1->SampleText = strSampleText; 
   LEADDlgEffect1->TextFont ->Color= (TColor)RGB ( 0,0,255 ); 
   LEADDlgEffect1->TextHiliteColor = RGB ( 255,255,255 ); 
   LEADDlgEffect1->ShadowColor = RGB ( 128,128,128 ); 
   LEADDlgEffect1->TextStyle = etsNormal; 
   LEADDlgEffect1->TextAlign = etaHcenterVcenter; 
   LEADDlgEffect1->TextWordWrap = False; 
   LEADDlgEffect1->TextAngle = 450; 
   LEADDlgEffect1->ShadowXDepth = 10; 
   LEADDlgEffect1->ShadowYDepth = 10; 
   LEADDlgEffect1->TextUseForegroundImage = True; 
   LEADDlgEffect1->DlgFlags = DLG_TEXT_SHOW_PREVIEW |
                              DLG_TEXT_AUTOPREVIEW  |
                              DLG_TEXT_SAMPLETEXT   |
                              DLG_TEXT_STYLE        |
                              DLG_TEXT_COLOR        |
                              DLG_TEXT_BORDERCOLOR  |
                              DLG_TEXT_ALIGN        |
                              DLG_TEXT_ANGLE        |
                              DLG_TEXT_WORDWRAP     |
                              DLG_TEXT_FONT         |
                              DLG_TEXT_FOREIMAGE    |
                              DLG_TEXT_BROWSEIMAGE  |
                              DLG_TEXT_SHADOWCOLOR  |
                              DLG_TEXT_SHADOW_X_Y; 

   LEADDlgEffect1->LEADImage = LEADImage1; 
   LEADDlgEffect1->LEADDlgService = LEADDlgService1; 
   nRet= LEADDlgEffect1->ShowGetTextDlg ( this ); 

   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->TextTop= 50; 
      LEADImage1->TextLeft= 50; 
      LEADImage1->TextWidth= LEADImage1->DstWidth - 50; 
      LEADImage1->TextHeight= LEADImage1->DstHeight - 50; 

      LEADImage1->TextAngle= LEADDlgEffect1->TextAngle
      LEADImage1->TextAlign= LEADDlgEffect1->TextAlign
      LEADImage1->TextStyle= LEADDlgEffect1->TextStyle
      LEADImage1->TextWordWrap= LEADDlgEffect1->TextWordWrap

      LEADImage1->ShadowColor= (TColor)LEADDlgEffect1->ShadowColor
      LEADImage1->ShadowXDepth= LEADDlgEffect1->ShadowXDepth
      LEADImage1->ShadowYDepth= LEADDlgEffect1->ShadowYDepth

      LEADImage1->TextHiliteColor= (TColor)LEADDlgEffect1->TextHiliteColor
      LEADImage1->TextFont= LEADDlgEffect1->TextFont

      LEADImage1->DrawTextStr ( LEADDlgEffect1->SampleText, LEADImage2->Bitmap ); 
   }
}