nuther new newbie nuisance

2011-06-15 Thread Timothy Miller
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 different images.

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 happening. 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 characteristics?

Maybe there's more than one way to do what I want... probably so...


Thanks in advance.


Tim




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: nuther new newbie nuisance

2011-06-15 Thread Slava Paperno
Tim,

I may be misreading your plan, or some of its details, but if I were to
design what I think you are designing, I would not want to put a lot of
images on scrolling backgrounds. I would use a database, like SQLite, and
create a record for each item in your collection of data. If one item of
your data is a set of related image(s), sound recording(s), the name, some
text, or maybe a few different types of texts, then that would be one
database record with a field for each piece of data. One database record per
species, or one per subspecies, or whatever makes sense in your
classification.

Once you've established a database and a set of scripts to create a record,
delete a record, edit a record, and retrieve/search for a record, you will
have very little difficulty building your collection and dealing with the
data no matter how few or how many records you put into it.

Instead of scrolling through a dozen images, you will be able to retrieve
and display them in an organized fashion--one at a time, or two at a time,
or whatever, each with its associated sound, text, etc. Once the database is
established, revising the interface will be a breeze because changing your
interface will not involve changing the data. You'll be able to easily
experiment with the presentation of your data, because you will have solved
the principal part--the organization of data.

That's what I would do--but of course I may be missing some crucial points
in your idea.

Slava

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@lists.runrev.com] On Behalf Of Timothy Miller
 Sent: Wednesday, June 15, 2011 2:13 AM
 To: How to use LiveCode
 Subject: nuther new newbie nuisance
 
 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 different images.
 
 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
 happening. 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
 characteristics?
 
 Maybe there's more than one way to do what I want... probably so...
 
 
 Thanks in advance.
 
 
 Tim
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Keith Clarke
Tim,
Perhaps have a set of 'view' cards, together with an 'input' card (or substack) 
for data entry that traps the various videos and field data, This input card 
could have a 'save' button script to create the new 'view' card, copy the 
images and data to specific locations and add them to the appropriate correct 
scrollable groups (not set as background)? This 'input' card could then be 
replicated to make an 'edit' view?
Best,
Keith..
   
On 15 Jun 2011, at 07:13, Timothy Miller 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 different images.
 
 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 happening. 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 characteristics?
 
 Maybe there's more than one way to do what I want... probably so...
 
 
 Thanks in advance.
 
 
 Tim
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Richmond Mathewson

On 06/15/2011 09:13 AM, Timothy Miller 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 different images.

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 first thing you really need to do is set up a template card with 
your textField; perhaps

with a button next to it with the following type of script in it:

on mouseUp
  if the visible of field TWEET is true then
set the visible of field TWEET to false
  else
set the visible of field TWEET to true
  end if
end mouseUp

and a pair of navigation buttons to trot back and forth between your cards.

You can then duplicate the template as many times as you like: 
Edit/Duplicate Card

(this ONLY works when you have the Object Inspector open for the card).


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 happening. Maybe 
backgrounds scroll but stacks and cards don't?


Hyuck, hyuck, hyuck. The difference between Livecode and yer 
bog-standard flashcard thingy

is VAST; Livecode is a full-blown programming language.

If you import a folder of images onto a card: File/Import As Control/All 
Images In Folder . . .


select them all: Edit/Select All

then select Object Inspector: Object/Object Inspector

then look at Align Objects: Distribute/Edge To Edge

then Group them: Object/Group Selected

then look at Size  Position in the Object Inspector and CENTRE your group,

set the group's width  height to what you want,

then look at Basic properties in the Object Inspector and select the 
Horizontal scrollbar.


At this point you should have a number of pictures of tweety-birds in a 
group such that you
can only see one picture at a time, and you can scroll left  right 
between them.



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.)


Sadly, I have a feeling you will have to do this manually; or go a 
totally different route . . .


call your template card TWEETY via the Obj. Inspector.

Your template should NOT contain any images.

So; let's have a button on the template card called DO IT BABY with 
the following sort

of script:

on mouseUp
 clone card TWEETY
 set the name of card TWEETY to TWEETY2
--obviously this is a bit daft, you could have a field that counts the 
cards and assigns them numbers as they are cloned---


{this is where you can have your import routine}

select all

--this is where I get stuck as I cannot, for the life of me find out the 
language equivalents of

the alignment commands in the Obj. Inspector--

group the selected
call it BLUETIT
move group BLUETIT to 400,400 --always supposing your stack is 800,800--
set the width of group BLUETIT to 700
set the height of group BLUETIT to 600
set the hScrollbar of field BLUETIT to true

end mouseUp


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 characteristics?

Maybe there's more than one way to do what I want... probably so...


Thanks in advance.


Tim



Sorry; I have a feeling all this will do is make you reach for the aspirin.

Richmond Mathewson.


Re: nuther new newbie nuisance

2011-06-15 Thread Timothy Miller
Thanks, Keith, Slava and Richmond,

Hmm... Tricky...

The database suggestion is reasonable, but I never learned how to use a 
database with LC. As a pathetic hyperCard retread, I tend to think of LC as a 
database!

I want to be able to see multiple photos of the same bird at the same time, to 
get a gestalt of the bird's appearance, from different angles. Hence the desire 
for a scrolling field or group containing many images of the same species.

I'm accustomed to groups of fields, with different content on different cards. 
The analogy to images threw me off. With grouped images (as opposed to fields), 
it's as if share text is always set to true.

Having read the helpful replies, slept on it, and tried a bit more trial and 
error...

I think maybe the way to do it is to make a scrolling group of several empty 
picture placeholders -- image areas is the correct terminology, I guess. For 
each card, I'll store a list of locations of desired images in a field. (The 
locations will be on my hard disk, outside of LiveCode.) When the card opens 
a script will read through the field and put the images in the image areas, by 
setting the source.

That will work won't it?

There will be complications arising from different image sizes and shapes. 
Image areas resize to fit the source image. I suppose I could get the image 
rects, after setting the sources, then move them around by script so they don't 
overlap. Or, to keep it simple, I could use an image editor to make the source 
images all the same size.

I'm still interested in hearing other suggestions.

As I recall, it's possible to get a field to display an image, though I can't 
remember how. It's probably not possible to get multiple images to display in 
one scrolling field, though. True?

Cheers,

Tim



On Jun 14, 2011, at 11:37 PM, Keith Clarke wrote:

 Tim,
 Perhaps have a set of 'view' cards, together with an 'input' card (or 
 substack) for data entry that traps the various videos and field data, This 
 input card could have a 'save' button script to create the new 'view' card, 
 copy the images and data to specific locations and add them to the 
 appropriate correct scrollable groups (not set as background)? This 'input' 
 card could then be replicated to make an 'edit' view?
 Best,
 Keith..
 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Richmond Mathewson

So; I wrote this to Timothy Miller:-


on mouseUp
 clone card TWEETY
 set the name of card TWEETY to TWEETY2
--obviously this is a bit daft, you could have a field that counts the 
cards and assigns them numbers as they are cloned---


{this is where you can have your import routine}

select all

--this is where I get stuck as I cannot, for the life of me find out 
the language equivalents of

the alignment commands in the Obj. Inspector--

group the selected
call it BLUETIT
move group BLUETIT to 400,400 --always supposing your stack is 
800,800--

set the width of group BLUETIT to 700
set the height of group BLUETIT to 600
set the hScrollbar of field BLUETIT to true

end mouseUp


and, later in the day began to feel queasy because of

find out the language equivalents of
the alignment commands in the Obj. Inspector

did some digging in the dox and got nowhere . . .

does anybody know them and/or where to find them?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Klaus on-rev
Hi Richmond,

Am 15.06.2011 um 18:34 schrieb Richmond Mathewson:

 So; I wrote this to Timothy Miller:-
 ...
 end mouseUp
 
 find out the language equivalents of
 the alignment commands in the Obj. Inspector

set the left/top/right/bottom of YYY to the left/top/right/bottom of XXX

Where XXX is line 1 of the selectedobjects and YYY all or any other line(s).
You get the picture.

 did some digging in the dox and got nowhere . . .
 does anybody know them and/or where to find them?

See above, no docs, just pure logics :-D


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Devin Asay

On Jun 15, 2011, at 10:34 AM, Richmond Mathewson wrote:

 So; I wrote this to Timothy Miller:-
 
 on mouseUp
 clone card TWEETY
 set the name of card TWEETY to TWEETY2
 --obviously this is a bit daft, you could have a field that counts the 
 cards and assigns them numbers as they are cloned---
 
 {this is where you can have your import routine}
 
 select all
 
 --this is where I get stuck as I cannot, for the life of me find out 
 the language equivalents of
 the alignment commands in the Obj. Inspector--
 
 group the selected
 call it BLUETIT
 move group BLUETIT to 400,400 --always supposing your stack is 
 800,800--
 set the width of group BLUETIT to 700
 set the height of group BLUETIT to 600
 set the hScrollbar of field BLUETIT to true
 
 end mouseUp
 
 and, later in the day began to feel queasy because of
 
 find out the language equivalents of
 the alignment commands in the Obj. Inspector
 
 did some digging in the dox and got nowhere . . .
 
 does anybody know them and/or where to find them?

As far as I know, the alignment tools in the object inspector are simply 
implementing common 'set the x of obj y to the x of obj z' statements. EG.,

set the left of button 1 to the left of button 2 -- which button is the anchor 
being determined by which object was selected first.

If I'm wrong about this I'd like to know.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Roger Eller
On Wed, Jun 15, 2011 at 12:43 PM, Klaus on-rev wrote:

 Hi Richmond,

 Am 15.06.2011 um 18:34 schrieb Richmond Mathewson:

  So; I wrote this to Timothy Miller:-
  ...
  end mouseUp
 
  find out the language equivalents of
  the alignment commands in the Obj. Inspector

 set the left/top/right/bottom of YYY to the left/top/right/bottom of XXX

 Where XXX is line 1 of the selectedobjects and YYY all or any other
 line(s).
 You get the picture.

  did some digging in the dox and got nowhere . . .
  does anybody know them and/or where to find them?

 See above, no docs, just pure logics :-D


 Best

 Klaus

 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.com


In addition to left/top/right/bottom, there is also loc.

~Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Roger Eller
On Wed, Jun 15, 2011 at 12:47 PM, Roger Eller wrote:


 In addition to left/top/right/bottom, there is also loc.

 ~Roger


and width and height (probably others too).

~Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread Klaus on-rev
Hi Roger,

Am 15.06.2011 um 18:47 schrieb Roger Eller:

 On Wed, Jun 15, 2011 at 12:43 PM, Klaus on-rev wrote:
 
 Hi Richmond,
 
 Am 15.06.2011 um 18:34 schrieb Richmond Mathewson:
 
 So; I wrote this to Timothy Miller:-
 ...
 end mouseUp
 
 find out the language equivalents of
 the alignment commands in the Obj. Inspector
 
 set the left/top/right/bottom of YYY to the left/top/right/bottom of XXX
 
 Where XXX is line 1 of the selectedobjects and YYY all or any other
 line(s).
 You get the picture.
 
 did some digging in the dox and got nowhere . . .
 does anybody know them and/or where to find them?
 
 See above, no docs, just pure logics :-D
 
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.com
 
 
 In addition to left/top/right/bottom, there is also loc.

Really? :-)

 ~Roger

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: nuther new newbie nuisance

2011-06-15 Thread Slava Paperno
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.

S.

 -Original Message-
 From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
 boun...@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
project done,
 try looking up imageSource in the dictionary. With that, you can change
a
 character in a text field to be an image.
 
 So make a background field with fixedLineheight turned off, centered text,
and a
 single character per line for each image you want on that card. You can
store
 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
char 3
 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
 returns.)
 
 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
full
 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 
 gand...@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
different
 images.
 
  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
happening.
  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
 characteristics?
 
  Maybe there's more than one way to do what I want... probably so...
 
 
  Thanks in advance.
 
 
  Tim
 
 
 
 
  ___
  use-livecode mailing list
  use-livecode@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@lists.runrev.com

Relational Layouts (was: Re: nuther new newbie nuisance)

2011-06-15 Thread Nonsanity
As a side note, I designed the UI XML system used for Oblivion and Fallout 3
(I don't know if Bethesda is still using it for Skyrim), and it used an
active version of this sort of relational layout. You could set the left of
an image, for example, to always be the right of another image plus 10. Then
if the other image moved, so would this one.

As long as the engine could detect circular references, this made for quite
a powerful layout engine. I've wanted to duplicate it in LC for some time
now, and what with delving into the mobile market, I think it would be
excellent for dealing with many different screen sizes and orientations.

I still need to work out an simple way to add the new layout behaviors to
objects that won't get too much in the way for the developer. (Too bad we
can't have multiple behaviors for an object.)

And if anyone is interested in details of the XML version, the docs I always
wanted to write but never did have been wiki-compiled by fans here:

http://cs.elderscrolls.com/constwiki/index.php?title=Category:Oblivion_XMLredirect=no

 ~ Chris Innanen
 ~ Nonsanity


On Wed, Jun 15, 2011 at 12:50 PM, Roger Eller
roger.e.el...@sealedair.comwrote:

 On Wed, Jun 15, 2011 at 12:47 PM, Roger Eller wrote:

 
  In addition to left/top/right/bottom, there is also loc.
 
  ~Roger
 
 
 and width and height (probably others too).

 ~Roger

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: nuther new newbie nuisance

2011-06-15 Thread J. Landman Gay

On 6/15/11 11:09 AM, Timothy Miller wrote:


I think maybe the way to do it is to make a scrolling group of
several empty picture placeholders -- image areas is the correct
terminology, I guess. For each card, I'll store a list of locations
of desired images in a field. (The locations will be on my hard disk,
outside of LiveCode.) When the card opens a script will read
through the field and put the images in the image areas, by setting
the source.

That will work won't it?


That's how I'd do it. In fact, I have a commercial client product that 
does exactly that. Make sure you set the lockLoc of each image object to 
true so it won't auto-resize when you set its content.




There will be complications arising from different image sizes and
shapes. Image areas resize to fit the source image. I suppose I
could get the image rects, after setting the sources, then move them
around by script so they don't overlap. Or, to keep it simple, I
could use an image editor to make the source images all the same
size.


Lock the screen, set the image filename, get the formattedheight and 
formattedwidth of the image, and then write a function to get the 
smallest ratio that will fit. Apply that ratio to the horiztonal and 
vertical dimensions and then set the size of the image to the new 
dimensions.




I'm still interested in hearing other suggestions.

As I recall, it's possible to get a field to display an image, though
I can't remember how. It's probably not possible to get multiple
images to display in one scrolling field, though. True?


You can show as many images in a field as you want, but I wouldn't even 
consider this approach. You'd still need invisible dummy images on the 
card to serve as the source material, you'd still need to resize them to 
fit into the dimensions you want to display, and then after all that 
you'd need to add an additional step to insert them into the field. 
There's no reason not to just display the images themselves in a 
scrolling group.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: nuther new newbie nuisance

2011-06-15 Thread FlexibleLearning
Importing images and/or using imageSource will make a very big stack!

It is often better to set the fileName of an image to an externally stored
jpg, gif or png...

eg: set the filename of image 1 to bird1.jpg


If you have a lot of images, you could keep them in a folder then use a
relative path instead...

eg. set the filename of image 1 to ./myAppImages/bird1.jpg

Hugh Senior
FLCo


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode