Howdy, Stranger!

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

Categories

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

alaclpalaclp Member Posts: 5
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?

Comments

  • alaclpalaclp Member Posts: 5
    Null


  • Josh CodeJosh Code Member Posts: 675
    [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.


  • alaclpalaclp Member Posts: 5
    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.


  • FreakboYFreakboY Member Posts: 117
    i would like to know this also!
Sign In or Register to comment.