Font Change
Hi,
Reasonably new to ReportBuilder(6.03) and I'm having trouble displaying a
bold font.
IF Week['ColourChange'] = 'P' then
begin
DBText7.Font.Color:=clBlue;
DBText7.Font.Style:=[fsBold];
end
else
etc.....
I'm getting an error stating that '(' or '[' expected but found 'Style'
instead. I've tried numerous variations of this but with no joy.
Suggestions?
Regards
Stuart
Reasonably new to ReportBuilder(6.03) and I'm having trouble displaying a
bold font.
IF Week['ColourChange'] = 'P' then
begin
DBText7.Font.Color:=clBlue;
DBText7.Font.Style:=[fsBold];
end
else
etc.....
I'm getting an error stating that '(' or '[' expected but found 'Style'
instead. I've tried numerous variations of this but with no joy.
Suggestions?
Regards
Stuart
This discussion has been closed.
Comments
there is a group for RAP questions only!
see 'RBuilder.hlp' topic 'RAP Frequently Asked Questions' in RAP FAQ.
Since RAP doesn't support Set types, will I be able to set TFont.Style in code?
Yes. We have added properties to TFont to allow you to set these values in code. Normally for a Set type property such as TFont.Style, you might use the Include and Exclude procedures to change its value. In RAP, however, we have added the following boolean properties to TFont for this purpose: Bold, Italic, Normal, Underline and Strikeout. To set a font to bold in RAP, you would say myFont.Bold := True; Likewise to remove style specifications from a font, you would say myFont.Normal := True; We also have an article on building support for Set types into RAP via RTTI.
regards,
Chris Ueberall;