input masks

Home Forums General Programming input masks

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5677
    Bomma72
    Participant
      • Topics: 20
      • Replies: 68
      • Total: 88

      Can you add input masks to label fields?  Looks like I will have to do that in the code behind right?  I don’t see how to do it however.  There doesn’t seem to be a key down event or something like that.

       

       

      • This topic was modified 11 years, 3 months ago by Bomma72.
      #5678
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        What’s an input mask in this case ? What characters are allowed ?

        #5687
        Bomma72
        Participant
          • Topics: 20
          • Replies: 68
          • Total: 88

          Yeah, for adding/changing the name of the patch.  I could always do it at the upload stage (meaning strip out the stuff that doesn’t translate, but it would be cool if I could just stop it on the key-up event)  This would be how I do it with Java.

          #5715
          atom
          Keymaster
            • Topics: 159
            • Replies: 2945
            • Total: 3104
            • ★★★★★

            There are 2 properties for a uiLabel that control that one is

            “Allowed characters the user can input”, witch is what it says, type in the characters you allow

            “Maximum length of the string a user can input”, that’s also self explanatory. If you need more control (regular expressions etc) you need to use LUA (there is a special callback triggered when a label changed, have a look at the DEMO – Request Program panel it utilizes the LUA callback to verify the contents of the label and informs the user if it’s ok or not.

            #5741
            Bomma72
            Participant
              • Topics: 20
              • Replies: 68
              • Total: 88

              Ok I was on the default download version for Mac which doesn’t have these options I think.

              #5743
              atom
              Keymaster
                • Topics: 159
                • Replies: 2945
                • Total: 3104
                • ★★★★★

                That was added a bit later.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The forum ‘Programming’ is closed to new topics and replies.
              There is currently 0 users and 57 guests online
              No users are currently active
              Forum Statistics
              Threads: 2,495, Posts: 17,374, Members: 77,605
              Most users ever online was 12 on January 22, 2019 3:47 pm
              Ctrlr