Author Topic: DDgui - text position (caret) colour  (Read 2854 times)

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
DDgui - text position (caret) colour
« on: 2010-Mar-11 »
I've fixed this on my version, but thought it would be a good amendment for DDgui.
Currently there's no way to set the caret colour. As I changed my colour scheme to use a black window, the caret is invisible.
I set up a caret colour variable and changed the RGB(0,0,0) on line 1605 to use the variable instead.

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Re: DDgui - text position (caret) colour
« Reply #1 on: 2010-Mar-11 »
Variable font kerning size may also be useful. (Again, I've updated this locally in my version)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: DDgui - text position (caret) colour
« Reply #2 on: 2010-Mar-11 »
What do you mean by font kerning size?
Setting the caret colour is not what I have thought about. But I will use a global variable instead, so you have a tweak for that:
GLOBAL gDDguiCaretColour%

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Re: DDgui - text position (caret) colour
« Reply #3 on: 2010-Mar-11 »
By kerning size I mean the size of the gap between two letters (e.g. 2 pixels between letters might look good on a small font, but 10 might be appropriate when the font is much bigger)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: DDgui - text position (caret) colour
« Reply #4 on: 2010-Mar-11 »
OK, I'll add an argument to the ddgui_update_font or so function.