Skip navigation
Currently Being Moderated

How to get data of interactive item Ex . url from button object

Mar 22, 2012 4:17 AM

Tags: #indesign_cs5 #plug-ins

Hi all ,

 

i am trying to get url from button object. How do i approach it.

 

any help please!

 
Replies
  • Currently Being Moderated
    Mar 25, 2012 10:38 AM   in reply to suren_tringer

    On your kPushButtonItemBoss there is an IID_IBEHAVIORLIST. In this case it points towards the kGoToURLBehaviorBoss.

     

    The second step is sneaky, I consider it architecturally questionable (spell: b u g). Before this special case, I've only seen a similar approach with IScriptLabel …

     

    The needed information is hidden within IID_IBEHAVIORDATA. You won't find it in IBehaviorData though, instead you have to use the extended interface of (in this case) IGoToURLBehaviorData. There are other behaviors that misbehave the same way, by using different interfaces on the same IID.

     

    Cheers,

    Dirk

     
    |
    Mark as:

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