How to change the default background color of selected text in a edit?

The default background color of selected text in a edit is
clHilight and the default fore-color of it is clHightText.
But now I want the bk-color to be clHilightText and the
fore-color to be clHilight.
How can I complete it?


  • [b][red]This message was edited by the Josh Code at 2002-6-28 12:1:51[/red][/b][hr]
    The only colours you can change are the background and font colours.
    I think the only way to change the selection colour is to make your own edit component.

  • I use the Getsyscolor and SetSysColors
    to change the background color and fore-color of selected text.
    But all windows in Windows OS also changed the
    both color, and the speed is low.
    How can I simulate a WM_SysColorchange Messaage.

  • i would like to know this also!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!