AfterPieceMoveイベントでknTView.Selected.DragPiece.Start / ItemIndex値を取得する方法を教えて下さい。
2017年10月10日
AfterPieceMoveイベントで、TimeView名.Selected.DragPiece.Start、TimeView名.Selected.DragPiece.ItemIndexのプロパティ値を取得出来ません。値を取得する方法を教えて下さい。
説明
Selected.DragPiece.Startは、ドラッグアンドドロップのときのみ使用できます。AfterPieceMove(ピース移動通知イベント)では使用できません。
移動したピースを特定したい場合、SelectedPieces(1)で、取得できます。
対応
(例)
Sub KTView1_AfterPieceMove(…)
dim pce as KnTViewLib.Piece
set pce = KnTView1.SelectedPieces(1)
…
end if
End Sub
