Game Development Community

Border around textbox

by WDDG · in Torque Game Builder · 03/20/2006 (6:55 pm) · 3 replies

Hey dudes, i'm trying to get rid of a 1pixel border I have around my textfields.

Here's my guicode:

new GuiMLTextCtrl(scoreText) {
      border = false;
      canSaveDynamicFields = "0";
      Profile = "GuiMLTextProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      Position = "26 12";
      Extent = "126 44";
      MinExtent = "8 8";
      canSave = "1";
      Visible = "1";
      internalName = "scoreText";
      hovertime = "1000";
      lineSpacing = "2";
      allowColorChars = "0";
      maxChars = "-1";
   };

#1
03/20/2006 (7:37 pm)
Try setting the border related fields (border = false; borderThickness = 0; borderColor = "0 0 0"; etc.) in the profile definition (GuiMLTextProfile) instead of the actual text control. I believe that's where all border values are read from.
#2
03/21/2006 (6:15 am)
Where might I find that?
#3
03/21/2006 (10:21 am)
Check common/gui/profiles.cs for the definition of all the default profiles. You can add a new one of your own (even 'sub-classing' an existing one to start from if you wish) or change what's there to suit your needs.