Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indesign, Javascript, how change button caption

Status
Not open for further replies.

mattias4000

Programmer
Jul 4, 2006
5
SE
I'm wondering what javascript command I should use if I want to change the caption on a button (I mean the text that is written on the button).

Here is a part of the code. Everything isn't showed:
-------------------
myPage = myDoc.pages[myTable.parent.parent.index - 1];
myGeoBounds = myPage.textFrames[0].geometricBounds;
var myBtn = myPage.buttons.add(undefined, undefined, undefined, {geometricBounds:[
String(myGeoBounds[0] - 15) + "mm",
String(myGeoBounds[1] + 10) + "mm",
String(myGeoBounds[2] - 5) + "mm",
String(myGeoBounds[3] + 40) + "mm"]});
-------------------

So, how do I change the text that is written on that button?
Thanks! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top