 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
czeslaw glazowski Guest
|
Posted: Mon Jul 25, 2005 8:56 pm Post subject: OnBeforePrint- Bold sttyle example? |
|
|
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
|
Posted: Tue Jul 26, 2005 8:41 am Post subject: Re: OnBeforePrint- Bold sttyle example? |
|
|
| 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 |
|
 |
|
|
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
|
|