Howdy, Stranger!

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


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?


  • alaclpalaclp Member Posts: 5

  • 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!
  • Justin BibJustin Bib USAMember Posts: 0

    ________ < /> free video tutorials and ebooks about [ Perl Assembly Ruby R Go MATLAB C++ JavaScript C# Java Python Objective-C Visual Basic Scratch PHP Swift Delphi C Visual Basic .NET PL/SQL Clojure SAS D ABAP Apex COBOL Julia Alice Awk Erlang Kotlin Rust VBScript Ada Dart Prolog LabVIEW Lua Fortran FoxPro F# Scheme Transact-SQL ML Hack Bash Scala Lisp Logo Crystal ] ______

Sign In or Register to comment.