[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEditor highlighter, setting color


On Mon, 22 Dec 2025 at 16:24, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 22/12/2025 à 17:09, Bruce Steers a écrit :
> >
> >
> > Thanks Benoit but it's still not working here.
> > not without my workaround.
> >
> > Public Sub ColorChooser1_Change()
> >
> >    If cmboStates.Text = "Background" Then
> >      TextEditor1.Background = ColorChooser1.Value
> >    Else
> >      TextEditor1.Theme[cmboStates.Text].Color = ColorChooser1.Value
> >
> >     TextEditor1.Theme = TextEditor1.Theme.Copy()  ' doesn't work without
> > this
> >
> >    Endif
> >
> >    TextEditor1.Refresh
> >
> > End
> >
> > Respects
> > BruceS
> >
>
> Actually it was two different bugs. With the last commit, it should work!
>
> --
> Benoît Minisini.


Brilliant, thank you Benoit :) all working as expected now :)

Respects
BruceS

Follow-Ups:
Re: TextEditor highlighter, setting colorBruce Steers <bsteers4@xxxxxxxxx>
References:
TextEditor highlighter, setting colorBruce Steers <bsteers4@xxxxxxxxx>
Re: TextEditor highlighter, setting colorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: TextEditor highlighter, setting colorBruce Steers <bsteers4@xxxxxxxxx>
Re: TextEditor highlighter, setting colorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>