Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: StaticText color?? Date: Mon, 03 Jan 2000 13:07:00 +0100 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 58 Message-ID: <387090E4.68D0@mjolner.dk> References: <20000101224122.12269.qmail@noatun.mjolner.dk> NNTP-Posting-Host: garm.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: xinwen.cs.au.dk 946901220 11397945 255.255.255.255 (3 Jan 2000 12:07:00 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 3 Jan 2000 12:07:00 GMT X-Mailer: Mozilla 3.04 (X11; I; SunOS 5.7 sun4u) Xref: news.cs.au.dk comp.lang.beta:12201 Sascha Kimmel (tricos Mediaservice) wrote: > > Hello everyone, > > I wish you a happy new year 2000! > I'm proud to be the first one in the new year to ask a question about BETA > ;-) Do not forget that you are the first in this millenium! About text color. It can not be done in guienv as is but I'm working on a solution that will be available in a few days. Regard Flemming > > My question is: how can I change the COLOR of a statictext? > I use the following (slightly adapted) code from ~demo/statictext.bet: > > helloWorld: @staticText > (# open:: > (# aTextStyle: ^textStyle; > do > (0xffff,0xffff,0xffff)->backgroundColor; > (0x0000,0x0000,0xffff)->Color; > &textStyle[] -> aTextStyle[]; > 'Arial Black' -> aTextStyle.name; > 24 -> aTextStyle.size; > textFaces.bold -> aTextStyle.face; > aTextStyle[] -> style; > > 'Hello, World!' -> label; > > fitToContents; > #); > #); > > Well, the compiler does not complain about assigning a value to COLOR, but > of course it does not work. > Because I want to display the staticText on a black background it is not > quite acceptable the the text itself is black also! > > Does anyone know how to set the color of a staticText? > > Regards, > Sascha Kimmel -- /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 ------------------------------------------------------------------------