Label overlaps text
Label overlaps text
Sometimes a label overlaps the text just after it. I am sending a document file by e-mail.
I am having a similar problem. After installing SRVControls and SRV2.4.1 using source code you sent 11/7, I can successfully insert and display a subclass of SRVLabel. This is the only one I have tested. I can set the width of the object when I create it, but if I try to change that width, it will temporarily overwrite the text behind it and then when the DBSRichViewEdit refreshes or realigns (not sure which causes this) the label goes back to the original size.
Code: Select all
SRVLabel. AutoSize: = False.
PS: do not use in SRVLabel raster fonts. Raster fonts have problems with scaling in Windows. To use vector fonts.
Just using Ariel 12pt. Actually don't know if that is raster or vector and so frustrated after trying to get component insert/move/resize working is SRV for the last three days with only one day left before a meeting.
I tried inserting a subclass of TSRVLabel using:
But it did not insert. I went back to:
But then setting AutoResize := true does nothing. I can accomplish this by using:
But I'm still having problems with the
Am I just doing this SRVControl insert all wrong?
I tried inserting a subclass of TSRVLabel using:
Code: Select all
DBSRVEdit.InsertControl(myLabel);
Code: Select all
DBSRVEdit.RichViewEdit.InsertControl('myLabelName',myLabel,rvvaAbsMiddle);
Code: Select all
DBSRVEdit.RichViewEdit.SetCurrentItemExtraIntProperty(rvepResizable,1,true);
Code: Select all
DBSRVEdit.RichViewEdit.BeginOleDrag.
See example: Demos\Controls\InsertControls\
Code for insert in SRV:
SRVLabel has the same properties as usual TLabel and works similarly.
Code for insert in SRV:
Code: Select all
procedure TFInsertControls.ToolButton5Click(Sender: TObject);
var
c : TSRVLabel;
begin
c := TSRVLabel.Create(nil);
c.Parent := SRichViewEdit1.RichViewEdit;
c.Name := 'SRVLabel';
c.Caption := 'SRVLabel';
c.AutoResize := FALSE; // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< AutoResize
SRichViewEdit1.RichViewEdit.InsertControl('teste', c, rvvaMiddle);
end;