[Gambas-user] How do I change foreground and background color of GambasEditor control
Benoit Minisini
gambas at ...1...
Wed Mar 30 10:57:06 CEST 2005
On Wednesday 30 March 2005 06:03, francesco wrote:
> I would like to change them at runtime. I have developed a little IDE for
> NASM, and have used a Gambaseditor control to edit assembly source
> programs. I have seen that it is possible to change foreground color and
> background color at runtime using the color property of the GambasEditor
> control, looking at the code of the Gambas Ide. But I have only been able
> to set
>
> editor.colors[background]=&HFFFFFF&
>
> I don't see any foreground constant in the help
>
> Francesco
>
myEditor.Colors[Editor.Colors.Normal] = ...
There are many constants in Editor.Color subclass, one for each editor color
used in syntax highlighting. When you disable highlighting, only the two
following constants are used: Editor.Colors.Normal and
Editor.Colors.Background.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list