Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!newstand.syr.edu!news.maxwell.syr.edu!news.mathworks.com!uunet!in1.uu.net!165.254.2.53!nonexistent.com!not-for-mail
From: vlad@world2u.com (Vlastimil Adamovsky)
Subject: Re: [SE] Combo Box entryfield color
X-Newsreader: Forte Free Agent 1.0.82
X-Nntp-Posting-User: (Unauthenticated)
Message-ID: <E55xp2.1E8@nonexistent.com>
References: <32F8E98E.4035@r2d2.med.miami.edu>
X-Trace: 855201493/1794
X-Nntp-Posting-Host: i123.174.world2u.com
Date: Thu, 6 Feb 1997 04:00:14 GMT
Lines: 34

Eric Rizzo <erizzo@r2d2.med.miami.edu> wrote:

>Aloha all:
>	Does anyone know how to change the background/foreground colors of the
>entry field part of a ComboBox in Smalltalk Express?  			When I use the
>color selector in WindowBuilder, it only changes the background between
>the entry and the drop-down list button.  The entry box colors seem to
>take on whatever colors are chosen in Windows' Control Panel (for
>"Window Background.")  Can I set them programmatically?

I am sorry, I deleted Smalltalk Express from my harddisk. 
It seams you have to go to Windows SDK, find an API ( GetWindow) and use it
to find the Edit Control, which is a child of the ComboBox. 
Then, when you have the EditControl handle, use this handle each time when you
want to change  background color of your ComboBox. When is the backColor
"really" set to the deviceContext for the control, depends on the implementation
code. 
Sorry I could not help, I don't have the code for WindowBulder and I am not
going to download it. 

I hope it helped.

Correctly designed class for CombBox should handle this transparently without
programmer's intervention. You can actually design the class by yourself. It's
not difficult. 




     
 Vlastimil Adamovsky
 ** C++ and Smalltalk consultant **
 * http://www.stepweb.com *

