• Subform appearance

    • This topic has 5 replies, 2 voices, and was last updated 16 years ago.
    Author
    Topic
    #458423

    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!

    Viewing 0 reply threads
    Author
    Replies
    • #1152725

      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.

      • #1152727

        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.

        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

        • #1152730

          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.

          If you set Enabled to No and Locked to Yes, the controls will look normal (not grayed out).

          • #1152736

            If you set Enabled to No and Locked to Yes, the controls will look normal (not grayed out).

            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.

            • #1152738

              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.

              Enabled = No and Locked = No: controls are grayed out.
              Enabled = No and Locked = Yes: controls look normal.

    Viewing 0 reply threads
    Reply To: Subform appearance

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: