Input

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Bruce
    Indigo Rose Customer
    • Jun 2001
    • 2134

    Input

    I would like to change the background color with this:

    Input.SetProperties("password Input", BackgroundColor);
    to... not sure what color, not sure how to do it.
  • Dermot
    Indigo Rose Customer
    • Apr 2004
    • 1791

    #2
    This will set the background to red.

    Input.SetProperties("password Input", {BackgroundColor=255})

    Here's a great free tool to get the color values. http://www.iconico.com/colorpic/
    Dermot

    I am so out of here :yes

    Comment

    • TristanD
      Forum Member
      • Oct 2006
      • 314

      #3
      you don't need to know the color codes.. you can also just put red or white as the colore (works as well)

      Comment

      • Roboblue
        Forum Member
        • Dec 2003
        • 892

        #4
        Remember that Input.SetProperties requires a table.
        here I am setting the Input Background from an INI value, Journal-TextPanelColor-Color Value
        Code:
        INIFile.SetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "TextPanelColor", String.ToNumber(cTP));
        tTPc = {}
        tTPc.BackgroundColor = String.ToNumber(cTP)
        Input.SetProperties("Journal_inp", tTPc);

        Comment

        • Bruce
          Indigo Rose Customer
          • Jun 2001
          • 2134

          #5
          VERY confusing!
          This is another example how our users guide rests on the vague side for NON-coders

          Comment

          • Roboblue
            Forum Member
            • Dec 2003
            • 892

            #6
            Wow, that should be confusing, I posted the wrong code, sorry.
            This is how I set set several properties at once, all from an INI.
            But, mainly look at the table created for the Input properties.
            Code:
            nTPColor = INIFile.GetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "TextPanelColor");
            nFCColor = INIFile.GetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "JFontColor");
            sFont = INIFile.GetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "TextPanelFont");
            nFontSize = INIFile.GetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "TextPanelFontSize");
            nFontWeight = INIFile.GetValue(_SourceFolder.. "\\AutoPlay\\Docs\\txt\\user.ini", "Journal", "TextPanelFontWeight");
            tTPc = {}
            tTPc.BackgroundColor = nTPColor
            tTPc.FontName = sFont
            tTPc.FontSize = nFontSize
            tTPc.FontColor = nFCColor
            tTPc.FontWeight = nFontWeight
            Input.SetProperties("Journal_inp", tTPc);

            Comment

            Working...
            X