Hover icon

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Hover icon

Post by dalkin » Wed Nov 12, 2008 12:18 am

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?
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Contact:

RE: Hover icon

Post by asayd » Wed Nov 12, 2008 3:40 am

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
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Post by dalkin » Wed Nov 12, 2008 4:04 am

Your 100% rating is still intact - it works, many thanks.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

Post Reply