Page 1 of 1

Open all Stickynotes by code?

Posted: Wed Dec 01, 2010 7:58 am
by magthenop
How can I open upp all stickynotes (and just the stickynotes) by code or by a command?
And how can I close them again.

Re: Open all Stickynotes by code?

Posted: Wed Dec 01, 2010 10:42 am
by Tracker Supp-Stefan
Hello magthenop,

The "Sticky note" is an annotation of type Text, so using JS you should be able to browse through and set the popupOpen property for all anotations of this type to true.

Code: Select all

var annots = this.getAnnots();
for (var i = 0; i < annots.length; i++)
  if(annots[i].type == "Text"){
    annots[i].popupOpen = true;
  }
Best,
Stefan

Re: Open all Stickynotes by code?

Posted: Wed Dec 01, 2010 10:57 am
by magthenop
:mrgreen: Thanks :mrgreen:

Re: Open all Stickynotes by code?

Posted: Wed Dec 01, 2010 11:01 am
by Tracker Supp-Stefan
Welcome :)