Path: news.daimi.aau.dk!not-for-mail From: henryml@daimi.aau.dk (Michael Lassen) Newsgroups: comp.lang.beta Subject: Re: PutformatInTextScrollList Date: Sat, 4 Apr 1998 11:29:15 +0200 (MET DST) Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 43 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <199804040929.LAA15285@noatun.mjolner.dk> Reply-To: henryml@daimi.aau.dk (Michael Lassen) NNTP-Posting-Host: daimi.daimi.aau.dk Xref: news.daimi.aau.dk comp.lang.beta:11516 At 13:49 03/04/98, Hans Erik Stubbe Solgaard wrote: >I have posted this problem before, but I haven't got >the solution yet?! > >The problem I have is to get PutFormat to work in a TextScrollList. >The result of the underneath object is printed both in the >textscrolllist and in the window opened with the programme. > >In the TextScrollList it looks something like this: > > >Name1 21 23 4 4 >Name2 12 47 9 0 >name3 20 30 8 4 > > You have to make your TextScrollList use a fixed width font such as Courier. Here is an example: myTextScrollList: @textScrollList (# open:: (# theTextStyle: @textStyle; do 'Courier' -> theTextStyle.name; 12 -> theTextStyle.size; theTextStyle[] -> style; #); #); Be careful to use a font that exists on all the platforms, that your program should run on. Courier is almost always available. You can't change the font used in the TextScrollList in Frigg - you have to change add the above lines to the code using Sif or some other editor. -- Michael