nuther new newbie nuisance
slava at lexiconbridge.com
Wed Jun 15 13:00:27 EDT 2011
This is a brilliant idea (using a character as a placeholder for an image),
but what's the advantage of having a bunch of images in a scrollable field
vs. a series of images with the Next and Previous (and maybe Any) buttons?
And maybe an option for placing up to four reduced images on the card at the
same time, for comparison? Scrolling is a pain to begin with. The order of
images in the scrolling presentation will always be the same. There will
always be partial images on the screen as you scroll--just the head or just
the legs. If you have a series of images, each stored in its own location,
you can call them up in any order, including random order, and arrange them
any way you like.
> -----Original Message-----
> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] On Behalf Of Nonsanity
> Sent: Wednesday, June 15, 2011 12:48 PM
> To: How to use LiveCode
> Subject: Re: nuther new newbie nuisance
> If you want to stick with what you are familiar with, just to get the
> try looking up "imageSource" in the dictionary. With that, you can change
> character in a text field to be an image.
> So make a background field with fixedLineheight turned off, centered text,
> single character per line for each image you want on that card. You can
> the images anywhere in the stack and then use their ids like so:
> set the imagesource of char 1 of fld 1 to 210096 set the imagesource of
> of fld 1 to 210067 set the imagesource of char 5 of fld 1 to 210097
> (Note the use of odd number character indexes, so we don't replace the
> This way you have a simple scrolling list of images that's different on
each card. I
> use this method myself quite a bit to make lists of images. You can have
> control over selecting them and so forth, just as if they were text...
Which as far
> as LC is concerned, they are at this point.
> ~ Chris Innanen
> ~ Nonsanity
> On Wed, Jun 15, 2011 at 2:13 AM, Timothy Miller <
> gandalf at doctortimothymiller.com> wrote:
> > Greetings,
> > I thought I knew how to do this, but it isn't working out.
> > I'm making a stack that will help me practice identifying birds. One
> > card per species. Images and songs, mostly, plus a few fields for
> > habitat, seasonality and so on. Some fields and buttons will be common
> > to all cards, but most fields will not "share text." Each card will have
> > Chances are I will gradually add fancy bells and whistles. I'll want
> > to hide the name of the species, for instance, forcing myself to name
> > the species by song or image, then show the name to see if I got it
> > right. That sort of thing. I think I know how to do most of what I plan.
> > At the moment, I'm stuck on a basic problem, and I hope someone will
> > help un-stick me.
> > I want to be able to make a new card, quickly and conveniently, type
> > the name of the species into a field designated for that purpose, then
> > paste several images onto the card -- as many as desired. The total
> > area of the images will be quite a bit larger than the total area of
> > the card, so I want the images to scroll vertically while retaining
> > their positions, relative to each other. I don't mind dragging the new
> > images to their desired locations manually.
> > There's something basic I'm not getting.
> > I thought if I pasted several images onto a card, scroll bars would
> > magically appear, which would scroll the images as a group. Not
> > Maybe backgrounds scroll but stacks and cards don't?
> > I made a scrolling group, pasted multiple pictures in it. That works
> > on one card. But if I set bgBehavior to "true," then "new card"
> > duplicates all the pictures, and the pictures are shared between
> > cards. I want different pictures on each card. If I set bgBehavior to
> > "false," making a new card becomes complicated.
> > (I'm a hyperCard retread, so setting bgBehavior to "false" don't come
> > natchrel.)
> > I don't need detailed instructions or scripts. Just a few hints.
> > Maybe I need to make a scrolling stack with scrollbar buttons, which I
> > would script as needed, instead of depending on the native scroll bars
> > you get with a scrolling group? Hmm... In that case, I guess I'd need
> > to place the scroll bars on each new card...
> > Maybe I need to place a different group on each new card with
> > bgBehavior set to false? Maybe a "new card" button with a script that
> > places a new group on the new card, sets its rect and size and other
> > Maybe there's more than one way to do what I want... probably so...
> > Thanks in advance.
> > Tim
> > _______________________________________________
> > 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
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
More information about the Use-livecode