Page 1 of 1

Resize a control in RichViewEdit with mouse

Posted: Mon Sep 11, 2006 3:01 am
by zhongdee
I don't know why it can't resize,please help me. I am sure:
not including rvoNoImageResize RichViewEdit.Editoptions
What do i shoud do

Code: Select all

var
   pnl:TPanel;
begin
   pnl:=TPanel.Create(self);
   Pnl.BevelInner := bvNone;
   Pnl.BevelOuter := bvNone;

  // Inserting in TRichViewEdit
   RichViewEdit1.TopLevelEditor.BeginUndoGroup(rvutInsert);
   RichViewEdit1.TopLevelEditor.SetUndoGroupMode(True); // grouping InsertControl & SetCurrentItemExtraIntProperty
   try
     if RichViewEdit1.InsertControl('', Pnl, rvvaBaseline) then begin
       RichViewEdit1.SetCurrentItemExtraIntProperty(rvepResizable, 1, True);

     end;
   finally
     RichViewEdit1.TopLevelEditor.SetUndoGroupMode(False);
   end;
  
end;

Posted: Mon Sep 11, 2006 12:10 pm
by adwilson
Maybe this other topic can help you:
http://www.trichview.com/forums/viewtopic.php?t=157