Article View: adobe.indesign.sdk
Article #4336Missing icon assert
From: Lawrence_S._Horwitz
Date: Tue, 22 Jun 2004 17:06
Date: Tue, 22 Jun 2004 17:06
28 lines
1765 bytes
1765 bytes
I've got a RollOverIconButtonWidget in my plug-in. When the panel containing the icon displays on Windows, I get this assert: ERROR: Cannot open icon resource stream ( cannot find the resource in the plugin) And then the widget ID and resource ID (204) that's missing. Now I'm pretty sure things are declared correctly, since I've used the same declaration in another plug-in and it works fine. But here's the delcaration for reference: RollOverIconButtonWidget ( kMyWidgetID, // widget ID kMyIconResourceID, kMyPluginID, // icon, plugin ID kBindRight | kBindBottom, // frame binding Frame(79,29,107,48) // left, top, right, bottom kTrue, // visible kTrue, // enabled kADBEIconSuiteButtonType, ) Where kMyIconResourceID is #defined as 204 elsewhere. The icon files themselves are included in the project, and the resources are defined in the .rc file with this syntax: kMyIconResourceID ICON "MyIcon.ico" The icon files are in the same directory as all the source files, and the properties of the .rc file have been modified in visual studio to include that directory. I can't think of anything else that might be causing this. Any suggestions? Thanks! Lawrence
Technical Details
Message-ID:
<3bb4b887.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,2e6b2694b074d098,start X-Google-Attributes: gidf63e9,public From: Lawrence_S._Horwitz@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: Missing icon assert Message-ID: <3bb4b887.-1@webx.la2eafNXanI> Date: Tue, 22 Jun 2004 10:06:01 -0700 Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit