[comp.sys.mac] Controlling Dialog Boxes & Button Size in HyperCard

jlc@atux01.UUCP (09/14/87)

I have created an HC stack for my record collection (which is 90% Classical).
I tried creating a sort button to sort by Composer, Title of Record, Featured
Instrument(s), and Performer, but the script bombed when you put in more than
to objects to be sorted.  In other words, you can have a dialog box for sort
that has two choices and "Cancel" but no more.  Is there some way that I can
expand this type of dialog box to allow more choices in it?

Also, when you create a new button it is always oblong (emphasis on "long")
and it occupies more space on the Home Card than is necessary.  Is there a way
to make newly created buttons smaller and square (like the ones that are the
default buttons in the stack).

Your input is greatly appreciated.  Thanks.

					Jim Collymore

keeshu@nikhefk.UUCP (Kees Huyser) (09/16/87)

In article <527@atux01.UUCP> jlc@atux01.UUCP (J. Collymore) writes:
>
>Also, when you create a new button it is always oblong (emphasis on "long")
>and it occupies more space on the Home Card than is necessary.  Is there a way
>to make newly created buttons smaller and square (like the ones that are the
>default buttons in the stack).
>
>					Jim Collymore

After creating a "New Button", grab the south east corner with the arrow
cursor and move it north west. This gives you a smaller button. Also, you
can click in the button and from the dialog you then get choose "square".

-- Kees

|  UUCP	  : keeshu@nikhefk.uucp  or {[wherever]!seismo}!mcvax!nikhefk!keeshu
|  BITNET : keeshu@hasara5.bitnet
|  FIDO   : 2:508/15 (Opus_MacSaga) or 2:500/11 (HCC_Amsterdam_1)
|  SNAIL  : kees huyser, NIKHEF-K, PO Box 4395, 1009 AJ Amsterdam, Netherlands
|-----------------------------------------------------------------------------
| As official spokesman for the Institute it is my privilege to announce that
| the board of governors of the Institute have withdrawn my privilege of being
| the official spokesman for the Institute.

nazgul@apollo.UUCP (09/17/87)

In article <527@atux01.UUCP> jlc@atux01.UUCP (J. Collymore) writes:
> Also, when you create a new button it is always oblong (emphasis on "long")
> and it occupies more space on the Home Card than is necessary.  Is there a way
> to make newly created buttons smaller and square (like the ones that are the
> default buttons in the stack).

Don't use the new button menu choice, just hold down Option and drag.  I think
also that shift-option will give you square buttons, but I can't check right now.
-- 
### {mit-erl,yale,uw-beaver}!apollo!nazgul  ### apollo!nazgul@eddie.mit.edu ###
### pro-angmar!nazgul@pro-sol.cts.com       ### nazgul@apollo.com           ###
###   (617) 641-3722  300/1200/2400         ###                             ###
I'm not sure which upsets me more; that people are so unwilling to accept       responsibility for their own actions, or that they are so eager to regulate     everyone else's.

lsr@apple.UUCP (09/17/87)

In article <527@atux01.UUCP> jlc@atux01.UUCP (J. Collymore) writes:
>I tried creating a sort button to sort by Composer, Title of Record, Featured
>Instrument(s), and Performer, but the script bombed when you put in more than
>to objects to be sorted.  In other words, you can have a dialog box for sort
>that has two choices and "Cancel" but no more.  Is there some way that I can
>expand this type of dialog box to allow more choices in it?

This seems like 2 questions.

I think you can't sort by more than one characteristic per command.  But
HyperCard does a stable sort (I believe that is the proper term), which
means if 2 cards sort identically their relative order is preserved across
the sort.  So you can sort by several characteristics by using several sort
commands.

As for the question of more buttons in a dialog, I think that the answer
command only allows 3 buttons.  If you wanted more options, I think the way
to go is to provide a sort options card that would be used to specify the
sort options.

>Also, when you create a new button it is always oblong (emphasis on "long")
>and it occupies more space on the Home Card than is necessary.  Is there a way
>to make newly created buttons smaller and square (like the ones that are the
>default buttons in the stack).

I think you can implement a message handler for newButton and resize the
button to be square.  Rect is a button property that you can get & set.

-- 
Larry Rosenstein

Object Specialist
Apple Computer

AppleLink: Rosenstein1
UUCP:  {sun, voder, nsc, mtxinu, dual}!apple!lsr
CSNET: lsr@Apple.com