Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    San Francisco, California, USA
    Posts
    358
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey all,

    I have a subform that displays data related to the main form. The subform can have more than one record on it. I have the subform set to display the data only (no edits, additions, deletions), I have the back color of the controls set to transparent (so it's obvious there's no point in clicking in there), all controls are set to Locked, and I have every control on the subform set to Tab Stop=No. Default View=Single form, all the other form types are set to No, recordset type is snapshot, border is none, control box is none.

    The problem is that the form wants to show that there is a default tab stop, and because it wants to do that, at least one control has a white back color, despite any back color settings I may set.

    Any ideas? The subform just displays data, and having one textbox appear different than the others looks just ugly (I'm even trying to disguise that it is a subform, since the user doesn't really care, they just want to see the data).

    TIA!

    PS Congrats on the new message board! Smooth!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    [quote name='Cecilia' post='766247' date='19-Mar-2009 18:24'][/quote]
    You could set the Enabled property of all text boxes etc. to No.

    Alternatively, create a new text box, make it the first in the tab order so that it will have the focus initially, and set its Height and Width to 0. This makes it effectively invisible.

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    San Francisco, California, USA
    Posts
    358
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='766250' date='19-Mar-2009 17:34']You could set the Enabled property of all text boxes etc. to No.

    Alternatively, create a new text box, make it the first in the tab order so that it will have the focus initially, and set its Height and Width to 0. This makes it effectively invisible.[/quote]
    If I set the enabled property to No, then the data doesn't look like data, it looks like whited out data. Not quite what I'm looking for.

    The alternative is what I usually do, I just thought that maybe there was a more appropriate solution rather than trying to fake out the form. It doesn't make sense that if there is no tab stop that there has to be one OR ELSE!

    Thanks, Hans

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    [quote name='Cecilia' post='766253' date='19-Mar-2009 18:39']If I set the enabled property to No, then the data doesn't look like data, it looks like whited out data. Not quite what I'm looking for.[/quote]
    If you set Enabled to No and Locked to Yes, the controls will look normal (not grayed out).

  5. #5
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    San Francisco, California, USA
    Posts
    358
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='766256' date='19-Mar-2009 17:43']If you set Enabled to No and Locked to Yes, the controls will look normal (not grayed out).[/quote]
    Ooops, I haven't done this stuff in quite some time. I thought it enabled=no used to make it grayed out, but maybe they took that away? My bad.

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    [quote name='Cecilia' post='766263' date='19-Mar-2009 18:56']Ooops, I haven't done this stuff in quite some time. I thought it enabled=no used to make it grayed out, but maybe they took that away? My bad.[/quote]
    Enabled = No and Locked = No: controls are grayed out.
    Enabled = No and Locked = Yes: controls look normal.

Posting Permissions

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