Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: Problems with adjusting text! Date: Tue, 13 Apr 1999 13:34:46 +0200 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 49 Message-ID: <37132BD6.2D60@mjolner.dk> References: <370CD54B.EAC4B99C@stofanet.dk> NNTP-Posting-Host: sleipner.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: xinwen.cs.au.dk 924003286 1097389 255.255.255.255 (13 Apr 1999 11:34:46 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 13 Apr 1999 11:34:46 GMT X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m) Xref: news.cs.au.dk comp.lang.beta:11894 Bo Normann wrote: > > Hello, > > I have a little problem concerning the guienv part of BETA : > > In a textscrolllist I have something like this > > x | y | z > ----------------------- > item 1 > item 2 > and so on > > , my problem now is that item 1 is a text with three pieces of > information and I would some control over the position of the text. In a > texteditor I can use the '\t' to give me enough control over the > positioning of the 3 pieces of information, but when I put a text > containing the '\t'-char into the textscrolllist it is not interpretated > as a tabulator, which it should be, instead there's a square, which > doesn't help me. Is there a way around this ? > > If you have any suggestions please let me know. > It is not easy to do. But you can calculate the width of the strings using graphics.textwidth, and insert spaces accordingly. Or you can use abstractscoller and fill it with statictext's, one for each x,y and z for each line. This is expensive, but manageable if you do not have to much data. This is conceptually the same as real tableViews do. /gram > regards Bo. > (normann@stofanet.dk) -- /Flemming Gram Christensen ------------------------------------------------------------------------ Mjolner Informatics ApS Phone: +45 86 20 20 00 Science Park Aarhus Fax: +45 86 20 12 22 Gustav Wieds Vej 10 DK-8000 Aarhus C Denmark E-mail: gram@mjolner.dk ------------------------------------------------------------------------