Problems With Graphics for Buttons

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
aturban
Posts: 1
Joined: Wed Mar 31, 2010 10:37 pm

Problems With Graphics for Buttons

Post by aturban » Wed Mar 31, 2010 10:50 pm

I'm seeing an odd behavior when trying to use stack graphics as the icon states for buttons.

1) The pdf tutorial states "We recommend that you keep any images which you plan to use as icons on a single card or within a substack". However, if I make an Assets sub-stack and put my graphics there, all other stacks no longer see them. As far as I can tell, the graphics have to be duplicated in every stack that will use them. Very unfortunate.

2) When I click on the "wand" graphic to bring up the image library from within the Inspector, some of my graphics show up as blank squares. The graphics are fine, but I can't tell which to click on since the library doesn't want to show me a preview of which is which. I have uploaded a screenie to illustrate. You can see what the library is showing me, and to the right are the six graphics in the stack, which it fails to show correctly.
Screen shot 2010-03-31 at 3.47.23 PM.png
Screen shot 2010-03-31 at 3.47.23 PM.png (15.44 KiB) Viewed 3483 times

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Problems With Graphics for Buttons

Post by mwieder » Thu Apr 01, 2010 7:39 am

#2 (images from "this stack" not showing up properly) is bug #6424, filed two years ago.

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Problems With Graphics for Buttons

Post by AndyP » Thu Apr 01, 2010 11:05 am

Because of this bug I generally add the graphics to a new card in the stack I want to access them with. It's an easy matter then just to copy this library card to any stack where these graphics are required. It's a pain when you want to add new images across several stacks but doing it this way has nether let me down.

Another option I sometimes use is to have the images in an accessable folder and ship this with the app.
This has a major advantage that you have the images in one place so are easier to update if required.

One of my apps which has to connected to the internet in order to function checks the datestamp of the local image against a duplicate named image online. If the online version is newer this is downloaded to the library folder, this allows me to make graphical changes on the fly and in this paticular app allows me to reset a background image for the app which has current news embedded and is also themed for the month/year etc.
Andy .... LC CLASSIC ROCKS!

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problems With Graphics for Buttons

Post by Klaus » Thu Apr 01, 2010 11:10 am

Hi aturban,
aturban wrote:I'm seeing an odd behavior when trying to use stack graphics as the icon states for buttons.
1) The pdf tutorial states "We recommend that you keep any images which you plan to use as icons on a single card or within a substack". However, if I make an Assets sub-stack and put my graphics there, all other stacks no longer see them. As far as I can tell, the graphics have to be duplicated in every stack that will use them. Very unfortunate...
All the icons will be available to all open stack when you:
...
start using "the (sub-)stack with all the icons in it"
...
I am doing this for years and never had problems!


Best

Klaus

Post Reply