BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OnBeforePrint- Bold sttyle example?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports)
View previous topic :: View next topic  
Author Message
czeslaw glazowski
Guest





PostPosted: Mon Jul 25, 2005 8:56 pm    Post subject: OnBeforePrint- Bold sttyle example? Reply with quote



If someone could be so kind to change OnBeforePrint Rave example below so as
'Shark' has been written not in red color but in a bold style


if Compare(DataView1Category.AsString,'Shark') = 0 then
self.Color := clRed;
self.Left := self.Left + 0.1;
elseif Compare(DataView1Category.AsString,'Snapper') = 0 then
self.Color := clNavy;
self.Left := self.Left - 0.1;
else
self.Color := clGreen;
end if;

(Delphi 7...)

It is hard to guesss
thank you in advance
ches


Back to top
Nevrona Support
Guest





PostPosted: Tue Jul 26, 2005 8:41 am    Post subject: Re: OnBeforePrint- Bold sttyle example? Reply with quote



Quote:
If someone could be so kind to change OnBeforePrint Rave example below
so as 'Shark' has been written not in red color but in a bold style

Sorry, but the "Font Name", "Font Style" and "Font Size" are not available to be used in an event in the Rave Visual Designer at this time. We may add it in some future release to Rave. However, I would suggest that you look at the "FontMaster" component in the Standard tab. I dropped two FontMasters down and set and labeled one as "FontArial10" and the other as "FontArial10Bold". Then you could use the OnGetText / OnBeforePrint events to control those font properties, like the following:

if UpperCase(BioLifeDVCategory.AsString) = 'SHARK' then
Self.FontMirror := FontArial10Bold;
else
Self.FontMirror := FontArial10;
end if;

Tech Support
Nevrona Designs

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.