DialogsFont example for C++ Builder

void __fastcall TForm1::ShowResizeDlg1Click(TObject *Sender) 
{
   AnsiString strCaption; 

   LEADDlgImage1->DlgFlags = DLG_RESIZE_SHOW_IDENTICALVALUE |
                            DLG_RESIZE_SHOW_MAINTAINASPECT |
                            DLG_RESIZE_SHOW_PERCENTAGE     |
                            DLG_RESIZE_AUTOPROCESS          |
                            DLG_RESIZE_SHOW_RESOLUTIONGRP; 

   LEADDlgImage1->LEADImage = LEADImage1; 
   LEADDlgImage1->LEADDlgService = LEADDlgService1; 
   strCaption= LEADDlgService1->GetDialogString ( DLG_RESIZE_IDSTR_CAPTION ); 
   ShowMessage ( "Old Caption: " + strCaption ); 

   /*set some custom strings*/
   LEADDlgService1->SetDialogString ( DLG_RESIZE_IDSTR_CAPTION, "My Custom Caption" ); 
   /*set a custom font, note, you should use a font on your system*/
   LEADDlgService1->DialogsFont->Name= "Bones";
   LEADDlgService1->DialogsFont->Size= 9; 

   LEADDlgImage1->ShowResizeDlg ( this ); 
}