Game Development Community

guiTextEditCtrl Blinking Cursor Colour...

by Quinton Delpeche · in Torque Game Engine Advanced · 08/06/2009 (10:47 pm) · 3 replies

Hi Everybody,

Maybe I am being dumb, but for the life of me I can't figure out how to change the colour of the blinking cursor in the guiTextEditCtrl.

I have tried a host of different profile options and settings and just don't seem to be able to get it right.

Is this possible through profiles or do I have to modify the source code?

I have searched the forums and resources but I haven't found a solution. Basically my cursor is black but the text that appears is white, the black cursor doesn't stand out sufficiently on the colour background I am using.

if(!isObject(GuiTextEditProfile)) {
   new GuiControlProfile (GuiTextEditProfile) {
      opaque = true;
      border = 3;
      borderThickness = 2;
      textOffset = "0 0";
      autoSizeWidth = false;
      autoSizeHeight = false;
      tab = true;
      canKeyFocus = true;

      fontColor = "255 255 255";
      fontColorHL = "253 196 0";
      fontColorNA = "255 255 255";
      fontColorSEL = "53 63 73 125";
      fillColor = "62 74 105 125";
      fillColorHL = "62 74 105 125";
      borderColor = "53 63 73";
      borderColorNA = "53 63 73";
      borderColorHL = "53 63 73";

      bevelColorHL = "102 121 140";
      bevelColorLL = "28 33 38";
   }; //new GuiControlProfile
} //if

Thanks

About the author

Gobbo Games is an Independent Games Development company operating from Durban in South Africa. We believe in creating high-quality cost-effective games that remain true to the belief of Independent Game Developers around the world.


#1
08/06/2009 (11:41 pm)

"cursorColor" in GuiControlProfile should do the trick.
#2
08/07/2009 (12:21 am)
Thanks Rene ... I am so embarrassed that I missed that one. :(

I can be such a n00b sometimes. Thanks again. :)
#3
08/07/2009 (12:30 am)

Hey, there's lots of stuff there. It's easy to overlook things.