Resize a control in RichViewEdit with mouse

General TRichView support forum. Please post your questions here
Post Reply
zhongdee
Posts: 4
Joined: Wed Aug 02, 2006 12:15 pm

Resize a control in RichViewEdit with mouse

Post 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;
adwilson
Posts: 45
Joined: Fri Sep 02, 2005 2:05 am
Location: Rio de Janeiro, Brazil

Post by adwilson »

Maybe this other topic can help you:
http://www.trichview.com/forums/viewtopic.php?t=157
Post Reply