Re: [WIN] change bkgnd color of combo box

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu