Home General

Change a 'string' within a ppDBMemo to Bold?

edited September 2001 in General
Help please...does anyone know if it's possible to just make the
string in the 5th line below:
(----aLines.Text := 'SI/Risk Behaviors: '----)
as "Bold" without affecting the field contents which will immediately
follow it? Any ideas would be greatly appreciated. I'd like to keep
the string and the subsequent 'field' text as one object on a Report
Builder report.

procedure TfrmAMReport.ppDBMemo10GetMemo(Sender: TObject;
aLines: TStrings);
begin
if dtmMain.qryRoundInfoRD_SIRisk.Text <> '' then
aLines.Text := 'SI/Risk Behaviors: ' +
dtmMain.qryRoundInfoRD_SIRisk.Text
else
aLines.Text := 'SI/Risk Behaviors: None ';
end;

Comments

  • edited September 2001
    Use a TppRichText component instead of a TppDBMemo. You can assign the memo
    text through the TppRichText.Richtext string property in the band's
    BeforePrint event. RB's rich text control relies on Delphi's TRichEdit.
    See the help file on rich text, and there are also demos in the main reports
    demo project which alter the rich text component ..\RBuilder\Demos\Reports\


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.