Article View: adobe.scripting.indesign
Article #1944[cs3 ScriptUI] Dynamic Icons for List Items?
From: Eliot_Kimber
Date: Fri, 16 Jan 2009 22:17
Date: Fri, 16 Jan 2009 22:17
13 lines
1474 bytes
1474 bytes
I'm using ScriptUI in CS3 (but it's probably the same in CS4) to generate a tree view. Each item in the tree has an associated icon. I'd like to be able to dynamically annotate the icons with things like lock indicators or whatever. My reading so far of the JavaScript Tools Guide suggests that it's not possible but since doing so is pretty standard UI stuff I was hoping I'd just missed some trick. I tried setting an "onDraw" event handler on the list items but it never got called. Also, the documentation is inconsistent about the support for icon formats other than PNG: in some places it says PNG is required, in others it indicates that other formats are supported. My experiments indicate that, for example, GIF icons don't work (get a "Bad image data" exception). Is the limitation to PNG really true. Thanks, Eliot
Technical Details
Message-ID:
<59b788ed.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,e2618d7eb22bc645,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Eliot_Kimber@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [cs3 ScriptUI] Dynamic Icons for List Items? Message-ID: <59b788ed.-1@webcrossing.la2eafNXanI> Date: Fri, 16 Jan 2009 14:17:10 -0800 Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 22