Text colour
Posted: Thu Dec 04, 2014 9:11 am
Hi, I'm sure this must have been covered but I can't find where !
I'm playing with html text input controls.
I can, post-writing my html text, select a chunk and colour it - or whatever I wish to do with it (bold, italic, whatever) - no problems there.
I can also set the text/'foregroundColor' BUT...
What I cannot seem to do is set the foreground colour for the next one, or more, characters that I am about to write/enter.
When I try to set the foreground colour (naturally enough, kind of) the whole of my text changes colour to the newly selected colour.
Is there a way to set the colour of, if you like, the cursor; so that any future characters typed/entered are the new colour whilst any existing text colouring remains unchanged.
(With drawing controls, one can set the 'penColor' but I haven't found a way to do this for text...
As always, any and all help really appreciated.
Trax.

I'm playing with html text input controls.
I can, post-writing my html text, select a chunk and colour it - or whatever I wish to do with it (bold, italic, whatever) - no problems there.
I can also set the text/'foregroundColor' BUT...
What I cannot seem to do is set the foreground colour for the next one, or more, characters that I am about to write/enter.
When I try to set the foreground colour (naturally enough, kind of) the whole of my text changes colour to the newly selected colour.
Is there a way to set the colour of, if you like, the cursor; so that any future characters typed/entered are the new colour whilst any existing text colouring remains unchanged.
(With drawing controls, one can set the 'penColor' but I haven't found a way to do this for text...
As always, any and all help really appreciated.
Trax.