trichview.support
Re: Resize Control Issue |
Author |
Message |
DavidRM |
Posted: 12/25/2003 2:25:54 I figured it out. I needed to create an OnMouseDown event handler for the TOleContainer, and include this line: .. richViewEdit.SelectControl(TControl(Sender)); .. This selects the control and shows the resize squares. -David http://www.davidrm.com "DavidRM" <davidrm@davidrm.com> wrote: > >I'm trying to insert a TOleContainer in TRichViewEdit and make it resizeable. >Here's what I'm doing: > >oleCon:=TOleContainer.Create(nil); >... >richViewEdit.InsertControl('',oleCon,rvvaBaseline); >if RichViewEdit.CurItemStyle=rvsComponent then > richViewEdit.SetCurrentItemExtraIntProperty(rvepResizable,1,true); > > >I've verified that SetCurrentItemExtraIntProperty() is being called, but >I've never seen an inserted TOleContainer that is actually resizable. When >I click on the inserted control, I see the focus rectangle, but never the >resize squares. > >Is there some other step I need to take? > >Thanks. > >-David >http://www.davidrm.com |
Powered by ABC Amber Outlook Express Converter