Controls with Text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • schmendrick

    Controls with Text

    Is it possible to disable a control with Text (Textbox, combobox etc)
    but not have the text fade?

    I have a bunch of text boxes for a database, want them disabled till i
    hit the edit key, not a problem, cept they are kind of hard to read
    while disabled.

    thanks!
  • Rick Rothstein

    #2
    Re: Controls with Text

    > Is it possible to disable a control with Text (Textbox, combobox etc)[color=blue]
    > but not have the text fade?
    >
    > I have a bunch of text boxes for a database, want them disabled till i
    > hit the edit key, not a problem, cept they are kind of hard to read
    > while disabled.[/color]

    You could put the controls on a container (say, a Frame) and disable the
    Frame. However, unless you signal that the control is disabled, this
    might be confusing to the user (how is he/she to know when they can use
    the control and when they can't?).

    Rick - MVP

    Comment

    • schmendrick

      #3
      Re: Controls with Text

      true, but it is so hard to read when everything is dimmed like that.
      btw, the frame idea does work! thank you.


      Rick Rothstein wrote:[color=blue][color=green]
      >>Is it possible to disable a control with Text (Textbox, combobox etc)
      >>but not have the text fade?
      >>
      >>I have a bunch of text boxes for a database, want them disabled till i
      >>hit the edit key, not a problem, cept they are kind of hard to read
      >>while disabled.[/color]
      >
      >
      > You could put the controls on a container (say, a Frame) and disable the
      > Frame. However, unless you signal that the control is disabled, this
      > might be confusing to the user (how is he/she to know when they can use
      > the control and when they can't?).
      >
      > Rick - MVP
      >[/color]

      Comment

      • B

        #4
        Re: Controls with Text

        Another way would be to use labels to show the content, and replace them
        with textboxes at the appropiate time.

        B

        Rick Rothstein schreef:[color=blue][color=green]
        >>Is it possible to disable a control with Text (Textbox, combobox etc)
        >>but not have the text fade?
        >>
        >>I have a bunch of text boxes for a database, want them disabled till i
        >>hit the edit key, not a problem, cept they are kind of hard to read
        >>while disabled.[/color]
        >
        >
        > You could put the controls on a container (say, a Frame) and disable the
        > Frame. However, unless you signal that the control is disabled, this
        > might be confusing to the user (how is he/she to know when they can use
        > the control and when they can't?).
        >
        > Rick - MVP
        >[/color]

        Comment

        • Rick Rothstein

          #5
          Re: Controls with Text

          > >>Is it possible to disable a control with Text (Textbox, combobox
          etc)[color=blue][color=green][color=darkred]
          > >>but not have the text fade?
          > >>
          > >>I have a bunch of text boxes for a database, want them disabled till[/color][/color][/color]
          i[color=blue][color=green][color=darkred]
          > >>hit the edit key, not a problem, cept they are kind of hard to read
          > >>while disabled.[/color]
          > >
          > >
          > > You could put the controls on a container (say, a Frame) and disable[/color][/color]
          the[color=blue][color=green]
          > > Frame. However, unless you signal that the control is disabled, this
          > > might be confusing to the user (how is he/she to know when they can[/color][/color]
          use[color=blue][color=green]
          > > the control and when they can't?).[/color]
          >
          >
          > Another way would be to use labels to show the content, and replace[/color]
          them[color=blue]
          > with textboxes at the appropiate time.[/color]

          Unless the TextBoxes are multi-lined and have scroll bars.

          Rick - MVP

          Comment

          • Steve Gerrard

            #6
            Re: Controls with Text


            "B" <nospam@nospam. com> wrote in message
            news:dG09e.6608 1$Sc7.60321@ams news05.chello.c om...[color=blue]
            > Another way would be to use labels to show the content, and replace them
            > with textboxes at the appropiate time.
            >[color=green][color=darkred]
            >>>Is it possible to disable a control with Text (Textbox, combobox etc)
            >>>but not have the text fade?
            >>>
            >>>I have a bunch of text boxes for a database, want them disabled till i
            >>>hit the edit key, not a problem, cept they are kind of hard to read
            >>>while disabled.[/color]
            >>
            >>[/color][/color]

            I have found it useful to Lock the text boxes and change the background color,
            instead of disabling them. This allows the user to for instance copy the text,
            but still provides a visual cue that it is not editable. Try changing the
            background to gray when it is locked, and to white when it is unlocked.


            Comment

            • Jody

              #7
              Re: Controls with Text

              [color=blue][color=green][color=darkred]
              >>>>Is it possible to disable a control with Text (Textbox, combobox etc)
              >>>>but not have the text fade?
              >>>>
              >>>>I have a bunch of text boxes for a database, want them disabled till i
              >>>>hit the edit key, not a problem, cept they are kind of hard to read
              >>>>while disabled.
              >>>
              >>>[/color][/color][/color]

              How about putting another transparent control (ie, a transparent label or
              something) over top the text box?
              I think that works. Been a while..

              jody


              Comment

              • schmendrick

                #8
                Re: Controls with Text

                I ended up useing the frame method... works beautifully! thanks!

                schmendrick wrote:[color=blue]
                > Is it possible to disable a control with Text (Textbox, combobox etc)
                > but not have the text fade?
                >
                > I have a bunch of text boxes for a database, want them disabled till i
                > hit the edit key, not a problem, cept they are kind of hard to read
                > while disabled.
                >
                > thanks![/color]

                Comment

                • Bill D'Innocenzo

                  #9
                  Re: Controls with Text

                  Locking the text boxes and using a different color scheme is a good option
                  since it gives the user a visual cue. I think the other method of using a
                  frame is ok, but even still giving the user a cue when it's ok to edit
                  should be used. The user may thing the application has hung up and kill the
                  app or reboot the machine.

                  -Bill

                  "Steve Gerrard" <mynamehere@com cast.net> wrote in message
                  news:6sWdncdAZ4 XTgvjfRVn-hg@comcast.com. ..[color=blue]
                  >
                  > "B" <nospam@nospam. com> wrote in message
                  > news:dG09e.6608 1$Sc7.60321@ams news05.chello.c om...[color=green]
                  > > Another way would be to use labels to show the content, and replace them
                  > > with textboxes at the appropiate time.
                  > >[color=darkred]
                  > >>>Is it possible to disable a control with Text (Textbox, combobox etc)
                  > >>>but not have the text fade?
                  > >>>
                  > >>>I have a bunch of text boxes for a database, want them disabled till i
                  > >>>hit the edit key, not a problem, cept they are kind of hard to read
                  > >>>while disabled.
                  > >>
                  > >>[/color][/color]
                  >
                  > I have found it useful to Lock the text boxes and change the background[/color]
                  color,[color=blue]
                  > instead of disabling them. This allows the user to for instance copy the[/color]
                  text,[color=blue]
                  > but still provides a visual cue that it is not editable. Try changing the
                  > background to gray when it is locked, and to white when it is unlocked.
                  >
                  >[/color]


                  Comment

                  Working...