Page 1 of 1

Hover icon

Posted: Wed Nov 12, 2008 12:18 am
by dalkin
Hi there,

A curious one .. I've imported a PNG file to mark a button on Mouse Over (hover) which works fine in the 'Run' environment during development. I imported the image into the image library and yes, there it is, I can see it.

Problem is, when the app is built, the image doesn't show on either Mac or Windows. I've followed the instructions to the letter. Building on a Mac with 10.5.5

Any thoughts?

RE: Hover icon

Posted: Wed Nov 12, 2008 3:40 am
by asayd
dalkin,

Make sure you import the image file to the stack, not just reference it from the library. The library doesn't get included when you create a standalone. This is how I always do it, and it's very reliable:

- Import the image file to the stack (File > Import as Control)
- Note the imported image's ID and hide it.
- Set the appropriate icon property of the button to the ID of the imported image.

This should be 100% reliable.

If I have lots of icon images, I'll sometimes include them in a library stack, which I include in the standalone. You just have to make sure you 'start using stack "library stack name" ' when you open your standalone stack.

HTH

Devin

Posted: Wed Nov 12, 2008 4:04 am
by dalkin
Your 100% rating is still intact - it works, many thanks.