drr: In function void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData* pData, BOOL bNegativePage ) I add some code: Point aRectPos = aPos; //aPos is the anchor cell namely the tail position bool bNegativePage = pDoc->IsNegativePage( nTab ); long nPageSign = bNegativePage ? -1 : 1; aRectPos.X() += 600 * nPageSign; aRectPos.Y() -= 1500; if ( aRectPos.Y() < 0 ) aRectPos.Y() = 0; // adjust to get the rectangle position Rectangle aTextRect; ScPostIt aCellNote(pDoc); SdrCaptionObj* pCaption = new SdrCaptionObj( Rectangle( aRectPos,aSizeEdit ), aPos ); aTextRect = pCaption->GetLogicRect(); aCellNote.SetRectangle(aTextRect); pDoc->SetNote( nCol, nRow, nTab, aCellNote ); My thought was when adding/deleting rows/columns, create a new note, but the code doesn't take effect,why?Maybe change the position of the original note is better,how? Need you help.
Best Regards yunjingtao
