Naive question 666

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Sat Jun 4 15:50:38 EDT 2011


Thanks Jaque & Mark,
So, no inheritance in the Image Library - that explains why I see the images in this (main) stack but not 'the images available within this stack (project)'. It's the same problem with the icon inspector - again 'this stack' excludes any substacks. 

Is it me or is that a fairly fundamental flaw in a development tool with the primary purpose of helping to develop the current stack and its embedded project (including any substacks)? 

(I hope it's OK to mention here that the very useful) Summer Academy project demonstrates storing all of a project's images centrally within a substack - an approach very familiar to those of us from a web background. A sound approach but these images are then invisible to the icon inspector when the time comes to assign them (which is perhaps why the webinar glossed over that by not using the icon chooser). It's a bit surreal that RunRev would propose an approach that suggests best practice that highlights a flaw in the IDE?!?

IMHO I think that using an image library substack is good practice for project maintenance and re-use across projects - just like using an Object Behaviors substack to centralise all behaviors code. I've therefore raised a feature request for substack image inheritance in the icon chooser and Image Library for consideration, should anyone care to vote http://quality.runrev.com/show_bug.cgi?id=9569 
Best,
Keith.. 
 
On 4 Jun 2011, at 18:25, J. Landman Gay wrote:

> On 6/4/11 8:01 AM, Keith Clarke wrote:
> 
>> Rather, I want to understand why the images I import into an 'images'
>> card in a 'resources' substack in my app's MainStack don't appear in
>> the Image Library automagically - and what I can do to rectify this.
> 
> LiveCode does not assume that you want to share those images universally in all your stacks, which is what the Icon Libraries are for. In most cases, this is the correct behavior. Very few of my stacks contain icons that I need in other stacks. For those I do want available everywhere, I import them into a library.
> 
> The image library doesn't use inheritance, so if you want its "this stack" pane to show your substack you'll need to toplevel the substack first. Then it becomes "this stack" and its images will appear.
> 
> But do you really want those in a universal library? You can do the same thing with the icon chooser when setting icons for a particular button. The icon chooser also has a "this stack" pane.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list