trichview.com

trichview.support




Re: ActionTestCB5 Syntax Problem


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/04/2004 19:30:52


It's not an array, it's a set.

In C++Builder, operators << / >> includes / excludes element from the set,

method Contains() tests if the element is in the set.



{

  if (UpdatingCombos)

    return;


  int FontSize = StrToIntDef(cmbFontSize.Text, 0);

  if (FontSize<=0)

    return;

  rvActionsResource->rvActionFontEx1->UserInterface = false;

  TRVFontInfoMainProperties Props = TRVFontInfoMainProperties();

  Props << rvfimSize;

  rvActionsResource->rvActionFontEx1->ValidProperties = Props;

  rvActionsResource->rvActionFontEx1->Font->Size = FontSize;

  rvActionsResource->rvActionFontEx1->Execute();

  rvActionsResource->rvActionFontEx1->UserInterface = true;

  RichViewEdit1->SetFocus();

}




>

> Hello

>

> I have downloaded the ActionTest-Package and it works well on my C++

Builder

> 5. But I want to convert the Example 'ActionTestCB5' into C++ Code. I dont

> understand two lines :

>

> procedure TForm3.cmbFontClick(Sender: TObject);

> ..

>       ValidProperties := [rvfimFontName];

> and

> procedure TForm3.cmbFontSizeClick(Sender: TObject);

> ..

>       ValidProperties := [rvfimSize];

> Which Arrays are used for these commands? Or is it something complete

different?

>

> thanks

> stefan

>

>

>





Powered by ABC Amber Outlook Express Converter