Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2002
    Posts
    75

    Unanswered: Container or Panel Control with Scrollbar

    Hello,

    I have a form that, based on the number of records in a particular table, dynamically creates an array, feeds those records into that array and then displays the respective number of checkboxes and optionGroups to enable the further input into another table. Everything works fine, except for the form layout: because of the unknown number of controls sets (max is 7) that would be displayed at run-time, I have to reserve enough space for all those seven sets. But if only 1 or 2, or even 3 sets are displayed, the form doesn't look good because of the empty space. I though it would look much better if I used some kind of control with a vertical scrollbar on it. So far the only control I know of that can do the job is an unbound subform, but that would require me to re-write the code. Are there any other controls that could be used for this task? Maybe some kind of a container or a panel that have a scrollbar? Any ActiveX control?

    Thank you.

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    It's a long time since I've done this, but have you tried altering the InsideHeight property of the form?
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    I'd be making heavy use of the Left property of those controls so that no gaps appear, making the form still look reasonable.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Apr 2002
    Posts
    75
    pootle flump and StarTrekker, thank you for your responses!

    I haven't tried modifying InsideHeight property - that might work though...

    The control sets are residing vertically, one set under another. Trying justifying them vertically with top/bottom properties seems to be too complicated, but after all it might be the only option if InsideHeight won't do the job.

    Thanks again!

  5. #5
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    There is another option, but you don't want to
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  6. #6
    Join Date
    Apr 2002
    Posts
    75
    Actually, I do

  7. #7
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Well you could leave all objects visible, just disable the ones that don't apply. This tends to make for better looking forms than ones with gaps.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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