Page 1 of 1
is there any resource to capitulizer letter?
Posted: Thu Apr 12, 2012 11:20 am
by alexandreq
Hello
I'd like if it is possible to capitulizer a letter, a resource like MS Word has.
thanks
Alexandre
Posted: Thu Apr 12, 2012 12:32 pm
by Sergey Tkachenko
Like this?
Posted: Thu Apr 12, 2012 12:46 pm
by alexandreq
Yeah
)
How did you do that?
Posted: Fri Apr 13, 2012 8:15 am
by Sergey Tkachenko
A label item (TRVLabelItemInfo) with VAlign=rvvaLeft
Posted: Fri Apr 13, 2012 11:31 am
by alexandreq
Hi Sergey
I found an example that comes with your component, named insertControls.
I understood how to do that, but it isn't so fine as your example, as you can see in the image:
you did something more than this code?
var
c : TSRVLabel;
begin
c := TSRVLabel.Create(nil);
c.Parent := SRichViewEdit1.RichViewEdit;
c.Name := 'SRVLabel';
c.Caption := 'SRVLabel';
SRichViewEdit1.RichViewEdit.InsertControl('teste', c, rvvaMiddle);
Posted: Fri Apr 13, 2012 5:58 pm
by Sergey Tkachenko
Well, I noticed that SRVLabel does not recalculate its size after changing font. It will be fixed. In the current version, assign c.AutoSize := True after changing font.
PS: yes, TSRVLabel can be used instead of TRVLabelItemInfo
(TSRVLabel is a control, while TRVLabelItemInfo is an item type, like a picture or a table).
However, TRVLabelItemInfo has a useful property: RemoveInternalLeading. It allows to remove unnecessary extra vertical spacing, so it looks better as a drop-cap.