🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19190

Re: Controlling Dialog Boxes & Button Size in HyperCard

#19190
From: lsr
Date: Thu, 17 Sep 1987 00:02
37 lines
2189 bytes
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
Technical Details
Message-ID: <6260@apple.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!pyramid!voder!apple!lsr
References: <527@atux01.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!pyramid!voder!apple!lsr
From: lsr@apple.UUCP
Newsgroups: comp.sys.mac
Subject: Re: Controlling Dialog Boxes & Button Size in HyperCard
Message-ID: <6260@apple.UUCP>
Date: Wed, 16-Sep-87 20:02:55 EDT
Article-I.D.: apple.6260
Posted: Wed Sep 16 20:02:55 1987
Date-Received: Sat, 19-Sep-87 09:10:59 EDT
References: <527@atux01.UUCP>
Reply-To: lsr@apple.UUCP (Larry Rosenstein)
Organization: Advanced Technology Group, Apple Computer
Lines: 37