Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Reference for RAP objects

edited October 2009 in RAP
I've looked in the help but can't find what I am looking for.

One of my Field Support Engineers was helping a customer and needed to
set a font to Bold depending upon a condition.

e.g.

if pJITData['FinStmtLvl04_D'] = 'Gross Profit'
then VarCat04FootAcctDesc.Font.Bold := true
else VarCat04FootAcctDesc.Font.Bold := false;

He discovered the above by searching the internet.

Is there documentation somewhere that shows which objects are available
and the properties/types that have been exposed inside RAP?

e.g. the Bold property above is not a one for one since Bold in Delphi
is actually of enumerated type (fsbold) and part of the set Style property.

Label1.Font.Style := [fsBold]

Comments

  • edited October 2009
    Hi Mark,

    Generally, since RAP does not support sets, we provide special boolean
    properties to set the value of a property that use them (such as TFont).

    The special properties are usually fairly simple...

    Font.Bold := True;
    Font.Underline := True;
    Font.Italic := True;
    Font.Strikeout := True;
    Font.Normal := True; //sets the font back to it's normal state.

    Other properties such as Anchors and Borders are also implemented...

    Component.Border.Left := True;
    Component.Border.All := True;
    Component.Border.None := True;
    ... etc.

    Component.Anchors.AnchorLeft := True;
    Component.Anchors.AnchorLeftTop := True;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2009
    Thanks Nico,

    I had made that assumption. Just was curious if there was something
    printed up I could distribute to my customers. None of them are Pascal
    programmers.

    Mark

  • edited October 2009
    Learning ReportBuilder RAP..see the bottom of this page

    http://www.digital-metaphors.com/download/learning_reportbuilder.html




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2009
    Thanks

This discussion has been closed.