How can I open upp all stickynotes (and just the stickynotes) by code or by a command?
And how can I close them again.
Open all Stickynotes by code?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17941
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Open all Stickynotes by code?
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.
Best,
Stefan
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;
}
Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17941
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact: