[comp.sys.mac.hypercard] MENUS...

howard@mtunj.ATT.COM (H. Moskovitz) (11/18/87)

I am putting togther a stack that uses input routines to populate the
fields on thecards. I want the user to click on a button and to be
presented with a list of valid entry items, then click on the desired item
and have that entered automatically in the field. In other words, I want to
eliminate the need to type in any data.

I tried using the answer function, but it limits the user to 3 choices. Is
there any way to bring up a list like that when you are aked to select a
file and have that as your input choices?

-- 
-----------------------------------------------------------
		Howard Moskovitz
	AT&T Bell Labs @ Liberty Corner, NJ
		ihnp4!io!howard

chuq@plaid.Sun.COM (Chuq Von Rospach) (11/19/87)

>I am putting togther a stack that uses input routines to populate the
>fields on thecards. I want the user to click on a button and to be
>presented with a list of valid entry items, then click on the desired item
>and have that entered automatically in the field. In other words, I want to
>eliminate the need to type in any data.

This sounds like a perfect use for the popup menu XFCN. You click on a
button, the menu pops up with a list of choices, and the user can then
choose one of them. 

chuq

---
Chuq "Fixed in 4.0" Von Rospach			chuq@sun.COM	Delphi: CHUQ

hyperbug@apple.UUCP (Keith Rollin) (11/20/87)

In article <109@mtunj.ATT.COM> howard@mtunj.ATT.COM (H. Moskovitz) writes:
>I am putting togther a stack that uses input routines to populate the
>fields on thecards. I want the user to click on a button and to be
>presented with a list of valid entry items, then click on the desired item
>and have that entered automatically in the field. In other words, I want to
>eliminate the need to type in any data.
>
>I tried using the answer function, but it limits the user to 3 choices. Is
>there any way to bring up a list like that when you are aked to select a
>file and have that as your input choices?
>

When the user clicks on the button, show a hidden text field with the choices
you want them to select from. You can create a simple script to calculate
where in the field they clicked and hence which item they selected. Or, if
you show some radio or check buttons on top of your field, you could simply
handle messages sent to the buttons to determine their choices.

-- 

Apple's HyperCard Grievance Center
"Give us your bugs, your comments, your gentle criticisms..."

UUCP:  {pyramid!sun,voder,nsc,ucbvax!mtxinu,dual,decwrl,amdahl}!apple!hyperbug

hpoppe@scdpyr.UUCP (Herb Poppe) (11/20/87)

In article <109@mtunj.ATT.COM>, howard@mtunj.ATT.COM (H. Moskovitz) writes:
> I am putting togther a stack that uses input routines to populate the
> fields on thecards. I want the user to click on a button and to be
> presented with a list of valid entry items, then click on the desired item
> and have that entered automatically in the field. In other words, I want to
> eliminate the need to type in any data.
>...

There is a stack floating around the bulletin boards called ListManager.
The stack includes an XCMD/XFCN that lets you display a single column
List Manager list in a dialog box with a Select and Cancel button.
-- 
Herb Poppe      NCAR                         INTERNET: hpoppe@scdpyr.UCAR.EDU
(303) 497-1296  P.O. Box 3000                   CSNET: hpoppe@ncar.CSNET
		Boulder, CO  80307               UUCP: hpoppe@scdpyr.UUCP

elliott.schwartz@canremote.uucp (ELLIOTT SCHWARTZ) (04/11/89)

No one probably will listen to me...but here is a suggestion Ihave for
Apple Computers:
 
In the stack script there should be some sort of a layout of the menu
bar menus which can bee changed and  allow handlers to be sent...
For instance you could add a menu iteam called 'About xxx' and then have
a handler like:
on menuItem About xxx
  show card field 1
  show card button 1
end menuItem About xxx
And It could aalso branch to XMDS (did I get that right?)
Any ways...just a suggestion...
---
 * Via ProDoor 2.9a 

--- MaS Relayer v1.00.00
 Message gatewayed by MaS Network Software and Consulting/HST
 Internet: elliott.schwartz@canremote.uucp
 UUCP:     ...!tmsoft!masnet!canremote!elliott.schwartz