Hello
I'd like if it is possible to capitulizer a letter, a resource like MS Word has.
thanks
Alexandre
is there any resource to capitulizer letter?
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
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);
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);
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.