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

Re: TextEditor highlighter, setting color


On Mon, 22 Dec 2025 at 16:27, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

>
>
> 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
>

Somehow now everything is working except when setting TextEditor1.Background
It works okay with QT but GTK3 is not so pretty.

Respects
BruceS

Attachment: UntitledQT.jpg
Description: JPEG image

Attachment: UntitledGTK.jpg
Description: JPEG image


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>
Re: TextEditor highlighter, setting colorBruce Steers <bsteers4@xxxxxxxxx>