Re: [WIN] change bkgnd color of combo box
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Oct 25, 2000
- 517 views
Yeah, that's what I get for doing this without testing (I didn't have Eu where I wrote that)...I'd originally had trackObject() in the proc. Also, you need to use returnValue(myBrush). Change the procedure to the following: -- begin code procedure CB_onEvent( integer iMsg, atom wParam, atom lParam ) if iMsg = WM_CTLCOLORLISTBOX then returnValue( myBrush ) end if end procedure onEvent[CB] = routine_id("CB_onEvent") -- end code The only problem with this is that it doesn't affect the background of the text in the box. I'm not sure how to get at that to change it. :( Matt Lewis http://www.realftp.com/matthewlewis