Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!agate!ucbvax!rchland.ibm.com!turner+ From: turner+@rchland.ibm.com (Mark Turner) Newsgroups: comp.soft-sys.andrew Subject: ATK Color Support Message-ID: <8bEjVTw91E4vAkNGZk@rchland.ibm.com> Date: 15 Nov 90 20:19:43 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Mark Turner Organization: The Internet Lines: 28 I have some questions about ATK color support. I have been using patch level 6 with color support for a couple of months onan RS/6000 with X-Windows Release 3. I have added some color to one of my applications but I find X paints thecolored window very slow. Is there anything I can do to speed up the colorsupport? In general this is how I set colors: To color a rectangle I do this: myview_SetBackgroundColor(self,self->Color.blockshad,0,0,0); myview_FillRect(self,&oneword,myview_WhitePattern(self)); To draw a rectangle outline in a foreground color I do this: myview_SetTransferMode(self,graphic_COPY); myview_SetForegroundColor(self,self->Color.blockborder,0,0,0); myview_DrawRect(self,&Rect); Is there a faster way of using colors? For any particular window I may setforeground and background colors hundreds of times while painting the window. Is the slow painting due to the R3 X server? I know R4 is faster. Also, Is there a way to set colors on menu cards? on scroll bars? Andy Arhelger IBM Rochester MN