Page 1 of 1

Help needed with HyperCard

Posted: Sun Feb 13, 2022 6:44 pm
by richmond62
Trust me to hit a point where HyperCard differs from LiveCode and
Danny Goodman's books is silent.

I have a stack with 2 fields: "fABC" and "f123" on a card called "KARD".

The card contains this script:
-
hcScript.png
hcScript.png (1.86 KiB) Viewed 5365 times
-
and I get this response when I press a key:
-
bkgrnFld.png
bkgrnFld.png (3.79 KiB) Viewed 5365 times
-
which has thrown me "right off."

Re: Help needed with HyperCard

Posted: Sun Feb 13, 2022 7:15 pm
by richmond62
And bkgnd seems an odd abbreviation for background . . .

Probably time I stumped off to feed my alcoholic habit. :D

Word of the week: Curmudgeonly.

Re: Help needed with HyperCard

Posted: Sun Feb 13, 2022 7:51 pm
by richmond62
NOT exactly intuitive, but got "there" in the end:
-
keysDown.png

Re: Help needed with HyperCard

Posted: Sun Feb 13, 2022 11:22 pm
by dunbarx
Richmond.

You did everything but say what is was the threw the error. Perhaps it lies in the fact that in HC there are two kinds of fields, "card" and "Background"?

Craig

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 9:08 am
by richmond62
What threw the error was that, initially, my fields were just on the card, and the cardScript, for some reason, did not
want to put data into them and demanded backGround fields.

As the last time I did anything vaguely serious with HyperCard was in 1998 I had forgotten about HOW to make backGround
fields, so spent some time fooling around working out how to do that.
-
SShot 2022-02-14 at 10.18.48.png

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 12:55 pm
by richmond62
Even if nothing else my "side trip" with HyperCard has shown me how much easier the LC GUI is and how
far it has advanced.

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 5:22 pm
by jacque
It wasn't really demanding a background field, but it was expecting one. If not specified, HC fields are assumed to be background fields. Buttons are assumed to be card buttons. Since the handler didn't specify the error reported no bg field.

You could fix that by specifying the layer:
Put KD after cd field...

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 5:29 pm
by dunbarx
Richmond.

Background fields and card fields depend on whether the background is selected when a new field created. It is sort of a separate environment, selected via "cmd-B". Once in background mode, any new field will be a background field. In "normal" mode, any new field will be a card field.

It took me a while to get used to the fact that in LC, there was no background object, and only one kind of field. And that groups were required to emulate the background "behavior" in LC.

But now the old HC way seems outdated, I love that there is only one kind of field, and I have gotten used to groups with their backGroundBehavior set.

Craig

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 5:57 pm
by jacque
I also like that you can have more than one bg group on a card.

Re: Help needed with HyperCard

Posted: Mon Feb 14, 2022 6:19 pm
by dunbarx
Jacque.

Yes. The "compartmentalization" of the background paradigm with groups allowed that. I used to hate the change. But like most changes, it is not a big deal any longer.

Craig