Adding A TSRVComboBox
Posted: Tue Oct 12, 2010 3:53 am
Usign the InsertControlsD2009 Demo for Scale Rich View I am trying to add a combo box using the code below:
It adds OK but 'Left' and 'Right' do not show up when I open it.
Anyone know what I should be doing?
Also the ScaleRichView Help File doesn't seem to work. Is there an updated version anywhere?
Code: Select all
procedure TFInsertControls.ToolButton16Click(Sender: TObject);
var
c : TSRVComboBox;
ci: TCollectionItem;
begin
c := TSRVComboBox.Create(nil);
c.Parent := SRichViewEdit1.RichViewEdit;
c.Color := clWhite;
ci := c.Items.Add;
ci.DisplayName := 'Left';
ci := c.Items.Add;
ci.DisplayName := 'Right';
SRichViewEdit1.RichViewEdit.InsertControl('teste', c, rvvaMiddle);
end;
Anyone know what I should be doing?
Also the ScaleRichView Help File doesn't seem to work. Is there an updated version anywhere?