Button oddities -- LC 5.5 related? (Not a serious problem)

Timothy Miller gandalf at doctorTimothyMiller.com
Sat Mar 31 21:21:35 CDT 2012


On Mar 31, 2012, at 3:56 PM, J. Landman Gay wrote:

> On 3/31/12 5:34 PM, Timothy Miller wrote:
>> I just discovered that if I click with the browse tool on the
>> place where the buttons should be, the button becomes visible and the
>> button script executes. If I save and quit LC, the buttons disappear
>> when I launch the stack again.
> 
> Sounds like an icon ID conflict. Do what Mike suggested. Import the icons from the Icon Library into your stack and assign the new image IDs to the buttons. That way they'll stay stable.

Thankya Mike and Jacque. That's a relief! I had unhappy visions of laboriously re-creating a corrupted stack.

Sadly, I can't figure out how to import icons from the icon library into my stack. You won't believe this... The first thing that popped into my head was "resedit"

Okay, I guess I figured it out by trial and error, probably did it wrong, but it worked. Something about development: image library. Never noticed that item before.

A couple of little images, about right for the icons I want, are now sitting at a random location on one of the cards in the stack. So now when I set the icon, I can use image library:this stack. I can see the little images there. Before I was using image library: standard icons.

What do I do with the little images I imported? Set the visible to false, hide them under a field, or can I delete them now, because they are used in a button?

Should this be standard procedure? I never thought about importing images for icons. Normally, when I make a new button and want an icon, I just use the icons & borders popup.

The stack and buttons are working normally now.

> Version 5.5 has a new file format and older versions of LiveCode can't read it.
> 
> Open your stack in 5.5. Do a "Save as" and use the popdown menu in the Save dialog to choose Legacy 2.7 format. Save it that way and it will open again in 5.02.

Another relief.

Maybe I should read the "what's new" document. I don't recall seeing one, but I didn't look for it very hard.

Tim


More information about the use-livecode mailing list