Skip to main content
Participating Frequently
January 4, 2008
Question

Observe page item movement

  • January 4, 2008
  • 2 replies
  • 399 views
Hi,

I would like to be notified immediately after one or more of the page items (graphic or text frames) are moved on the page.

I was able to capture the event by attaching an observer to the document boss, listening to the IID_ITRANSFORM_DOCUMENT protocol. I did get the a message on that protocol, but I couldn't figure out the right change type that distinguishes the movement from other kinds of transformations. I was expecting theChange to be the kTransformPageItemsCmdBoss. However, it doesn't seem to be the case.

Any ideas?

Thank you,

Nick
This topic has been closed for replies.

2 replies

Participating Frequently
January 4, 2008
It works. Thank you for the help, Dirk.

Nick
Inspiring
January 4, 2008
Look for kLocationChangedMessage
The command is kMoveRelativeCmdBoss
You'll probably want to filter by ICommand state such as kDone to skip intermediate notifications while the item is dragged ...

Dirk