🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18946

Re: Dialog question

#18946
From: David Phillip Oster
Date: Thu, 10 Sep 1987 22:37
15 lines
1545 bytes
In article <196@eagle_snax.UUCP> gpollice@eagle_snax.UUCP ( Sun ECD Software) writes:
>I am writing an application where I have a list of strings which I want
>to display and then have the user select one.

I do this by making an enabled userItem in my dialog. I use the list
manager.  (Luckily for you, the default itemDrawProcedure in the list
manager shows strings. (I never use it myself, because I prefer an
SFGetFile style ... for long entries.))  I connect the update
procedure for the useritem to the listManager's update call, and since
the item is enabled, if the user clicks on it, I can detect that and
fall through into LClick.

--- David Phillip Oster            --My Good News: "I'm a perfectionist."
Arpa: oster@dewey.soe.berkeley.edu --My Bad News: "I don't charge by the hour."
Uucp: {seismo,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu
Technical Details
Message-ID: <20606@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sri-spam!ames!sdcsvax!ucbvax!dewey.soe.berkeley.edu!oster
References: <196@eagle_snax.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!mnetor!uunet!husc6!rutgers!sri-spam!ames!sdcsvax!ucbvax!dewey.soe.berkeley.edu!oster
From: oster@dewey.soe.berkeley.edu (David Phillip Oster)
Newsgroups: comp.sys.mac
Subject: Re: Dialog question
Message-ID: <20606@ucbvax.BERKELEY.EDU>
Date: Thu, 10-Sep-87 18:37:53 EDT
Article-I.D.: ucbvax.20606
Posted: Thu Sep 10 18:37:53 1987
Date-Received: Sat, 12-Sep-87 10:53:17 EDT
References: <196@eagle_snax.UUCP>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster)
Organization: School of Education, UC-Berkeley
Lines: 15
Keywords: C, dialogs