Problem: 1667219
Title: (Views) Need AddSubView in TDialogTEView ctor.
Received: Jul 8 1997 6:21PM
fScroller->AddSubView(this);
needs to be added to
TDialogTEView::TDialogTEView(const CViewPoint& itsLocation, const CViewPoint& itsSize, SizeDeterminer itsHDeterminer, SizeDeterminer itsVDeterminer, const CViewRect& itsInset, const CTextStyle_AC& itsTextStyle, short itsJustification, bool itsAutoWrap)It was previously in the IDialogTEView method but didn't make it to the constructor. It is in the copy constructor though.
The proposed solution was not appropriate because the DialogTEView is not fully constructed at the point the AddSubView is being called and a crash can result. Instead, the DialogTEManager now adds the TDialogTEView to the scroller.
UFloatingTEManager.cp: TFloatingTEManager::MakeDialogTEView - Calls the TDialogTEView's AddToScroller function. TDialogTEView::AddToScroller - Added. TDialogTEView::TDialogTEView - Added a note explaining that AddToScroller should be called.It is important to read the note explaining that AddToScroller should be called when the view is being created procedurally.