laptop and a wrench

不具合

Calls to SelectElement/SelectElements/SelectAllElements methods of IGraphicsContainerSelect Interface do not show up on pagelayout control in an ArcEngine Application.

最後に公開された状態: August 25, 2014 No Product Found
不具合 ID 番号 NIM004298
送信されましたSeptember 21, 2006
最終更新日June 5, 2024
適用対象No Product Found
見つかったバージョン9.2 Pre
ステータスWill Not Be Addressed

参考情報

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

対処法

//*************** WORK AROUND 1 /* If the operation is performed on Mousedown event of pagelayout control then, activating Select Tool on MouseDown makes it work.Add the following code before calling selectelements method.This workaround to be used only if the operation is done directly on Pagelayout control i.e element is selected on mouse down on pagelayout Control. If you have any custom tool to do the job, work around 1 will not work. Use Workaround 2.ICommand command = new ControlsSelectToolClass();command.OnCreate(axLayout.Object);if (command.Enabled == true){axLayout.CurrentTool= (ITool) command; }*////********* Workaround1 ends hereWORK AROUND 2 : This workaround works in all cases,if operation is a done on mouse down of custom tool or on mousedown of pagelayout control.Add following code after making a call to selectElements method.USE Selection tracker to select each elememt in graphic container selection. ISelectionTracker pSelTrack; IDisplay pDisp;pDisp= pActiveView.ScreenDisplay;IElement oElem;enumElement.Reset(); oElem=enumElement.Next();while (oElem !=null){ pSelTrack =oElem.SelectionTracker;pDisp.StartDrawing(pDisp.hDC,0); pSelTrack.Draw(pDisp,pDisp.hDC,esriTrackerStyle.esriTrackerDominant);pDisp.FinishDrawing();oElem=enumElement.Next();} ///********* Workaround2 ends here

再現の手順

不具合 ID: NIM004298

ソフトウェア:

  • No Product Found

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動