Skip navigation
don.macwell
Currently Being Moderated

Display alert Yes/No in Cmd Interceptor during Page Item Resize

Apr 14, 2012 8:42 PM

Tags: #resize #interceptor

Hi,

 

I am porting a plug-in from CS4 to CS5 and CS5.5. My plug-in works perfectly fine in CS4.

In CS5 I have created a UI plug-in.

 

I have implemented command interceptor in which we intercept kResizeItemsCmdBoss and we display an alert message asking user to continue with resize or not.

 

In CS4, when the user resize the page item by dragging then we only got a single call in command intercetor and that too when the user have released the mouse.

 

But in CS5, we get multiple call for kResizeItemsCmdBoss and that when the user is resizing by dragging. After the Alert is displayed InDesign Crashes. If we don't display any Alert then there is no crash.

 

May be in CS5, I need to intercept some other command ?

 

A temporary quick fix, I have done is that in Command Interceptor, I have added a check IEventUtils->IsMouseButtonDown then we return kNotHandled. But this also causes problems when we resize the page item by dragging fast.

 

I think its a very common requirement and many developers must have fixed it.

 

Any help will be appreciated.

 

Regards,

Don

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points