TextEditor background
Posted
#1
(In Topic #456)
Guru

Setting the .background property seems to change the background behind the editor view but its main background colour remains white?
Cheers <EMOJI seq="1f642" tseq="1f642">🙂</EMOJI>
Posted
Regular

Update:
Was playing around and found GTK does not work either. However I tried the QT4 to QT5 switcher and was able to change the background. Hope that helps/
Posted
Guru

I might add it to the bugtracker..
Posted
Guru

In case anyone wanted the solution..
Code (gambas)
- TextEditor1.Styles[Highlight.Background].Color = iColor
EDIT:
Now TextEditor.Styles is replaced by TextEditor.Theme and String keys not constants.
Code (gambas)
- TextEditor1.Theme["Background"].Color = iColor
There's many other highlight options too.
Pretty sure i can add to the wiki.
Will try to add some info about the TextEditor to it.
apparently gotta learn the wiki syntax first so here we go, wish me luck
Edit. Wasn't too much to it so i've added info about setting Background colour and pointed to the other Highlighting options on the main gambas wiki TextEditor page.
http://gambaswiki.org/…gb.form.editor/texteditor
Posted
Regular

Posted
Guru

Use gb.highlight now and TextEditor.Theme
Posted
Guru

So now the following is wrong and will error.
TextEditor1.Theme["Background"].Color = iColor
but this should work as expected…
TextEditor1.Background = iColor
1 guest and 0 members have just viewed this.


