[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TextEditor highlighter, setting color
[Thread Prev] | [Thread Next]
- Subject: Re: TextEditor highlighter, setting color
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sun, 21 Dec 2025 11:37:53 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 12/20/25 7:00 PM, Bruce Steers wrote:
I seem to not be able to set TextEditor colors using the Theme[Key].Color property? Public Sub ColorChooser1_Change() If cmboStates.Text = "Background" Then TextEditor1.Background = ColorChooser1.Value Else TextEditor1.Theme[cmboStates.Text].Color = ColorChooser1.Value Endif TextEditor1.Refresh End attached is a simple application that "should" allow changing the highlight modes colors.it seems "reading" TextEditor1.Theme[cmboStates.Text].Color works as the colors show on the ColorChooser when you select a State but writing the property does not seem to do anything on the gambas highlighting?Or am i missing a trick? Respects BruceS
Weird. The TextHighlighterStyle.Color property is actually getting set. But, TextEditor1.Refresh is not causing the editor's text to be redrawn using the changed color.
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: TextEditor highlighter, setting color | Bruce Steers <bsteers4@xxxxxxxxx> |
| TextEditor highlighter, setting color | Bruce Steers <bsteers4@xxxxxxxxx> |