Hi friends,
I have issue with adding an image to a widget .
#ifdef __ODFRC__
#include "PicIcoID.h"
resource PNGA(kPicIcoPNGIconRsrcID) "Image.png"
resource PNGR(kPicIcoPNGIconRollRsrcID) "ImageR.png"
#endif
#include "PicIcoID.h"
type PicIcoRollOverIconButtonWidget (kViewRsrcType) : RollOverIconButtonWidget(ClassID = kPicIcoRollOverIconButtonObserverBoss)
{
};
..........
..........
...........
PicIcoRollOverIconButtonWidget
(
kPicIcoRollOverIconButtonWidgetID,
kPicIcoPNGIconRsrcID,
kPicIcoPluginID, // WidgetId, RsrcId
kBindNone, // Frame binding
Frame(35,5,53,23) // Frame
kTrue, kTrue, // Visible, Enabled
kADBEIconSuiteButtonType,
),
.............
............
this is the code which i use . the issue is if i use default sdk images (eg:SDKinfobutton.png ) it works fine .Other than sdk images i am not able to add it to the widget .It just shows blank.
Help or Advice Please ......
First stepts:
Check whether your image files are true PNG. I've had some "artists" just modify the extension.
Examine the plugin resource folders whether the file ends up in the correct place.
Make a binary comparison, e.g. using diff
Edit:
When PNGA and PNGR are meant for the same button, you should use the same resoure ID, different types are enough.
Dirk
North America
Europe, Middle East and Africa
Asia Pacific