Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Aug 2002
    Location
    Des Moines, Iowa, USA
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing look of a disabled field (XP)

    Hello again. I have a form created that is the typical address maintenance program. The user enters an account number, and selects what mode to go into (Add, Update, Delete, Inquiry). When going into Delete or Inquiry mode, I set the enabled property to the form fields to False and display the information. The enabled = False format, by default, grays the text field which could make it difficult for some users to read. Is there a way I can protect these fields and still keep the dark type over white background look?

    Another snag I encountered is that when Enabled = False is attached to a form field, it also affects the label associated with it. How do I keep the dark type in my labels from turning gray, and thus becoming more easily readable?

    Once again, I appreciate your time and effort!! <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Changing look of a disabled field (XP)

    Set Locked = True.

    This is how Enabled and Locked work in combination:

    <table border=1><td valign=bottom>Enabled</td><td valign=bottom>Locked</td><td valign=bottom>Editing</td><td valign=bottom>Visible effect</td><td valign=bottom>True</td><td valign=bottom>False</td><td valign=bottom>user can select and edit text</td><td valign=bottom>normal</td><td valign=bottom>True</td><td valign=bottom>True</td><td valign=bottom>user can select text, but not edit it</td><td valign=bottom>normal</td><td valign=bottom>False</td><td valign=bottom>False</td><td valign=bottom>user can't select or edit</td><td valign=bottom>grayed out</td><td valign=bottom>False</td><td valign=bottom>True</td><td valign=bottom>user can't select or edit</td><td valign=bottom>normal</td></table>

  3. #3
    Star Lounger
    Join Date
    Aug 2002
    Location
    Des Moines, Iowa, USA
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Changing look of a disabled field (XP)

    Wow, that was a fast response. I knew the question sounded basic, I just couldn't find the right combination of properties. I will play with the Locked and Enabled properties in tandem. Thank you so much!! <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> <img src=/S/thewave.gif border=0 alt=thewave width=225 height=33>

    (These smiley face dudes are so cool!!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •