Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: How to color an object? Date: Tue, 18 May 1999 13:08:46 +0200 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 51 Message-ID: <37414A3E.2EAB@mjolner.dk> References: <373ACF4C.2F897472@studserver.uni-dortmund.de> 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 927025727 3277071 255.255.255.255 (18 May 1999 11:08:47 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 18 May 1999 11:08:47 GMT X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.6 sun4m) Xref: news.cs.au.dk comp.lang.beta:11946 Daniel Bolege wrote: > > Hello, Hi > > we have written the following code: > > ORIGIN '~beta/guienv/v1.6/guienvall'; > INCLUDE '~beta/guienv/v1.6/utils/iconname'; > INCLUDE 'hk.bet'; > INCLUDE '~beta/guienv/v1.6/private/figureitemsbody' > -- lib: Attributes -- > UserGUI: guienv > > myCircle: @oval > (# open:: > (# > do > (65535,65535,65535)->fill.foregroundcolor; > (65535,65535,65535)->fill.backgroundcolor; > ... > > In the GUI, the circle is not coloured, what values we may ever choose. > What's wrong, is it our way to handle the object or is it a problem of > the windows system (Sun Solaris). > You need to specify a pixmap to use as tiling. mypixmap[]->fill.tile; mypixmap should be black-white, white pixels will be drawn with fill.foregroundcolor and black with fill.backgroundcolor. Regards Flemming > Any suggestions will help us. Thank you. > > Daniel -- /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 ------------------------------------------------------------------------