VB6 Question

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

    #16
    Re: VB6 Question

    Dean Earley <dean.earley@ic ode.co.uk>'s wild thoughts were
    released on Mon, 21 Aug 2006 12:02:14 +0100 bearing the
    following fruit:
    >>>>I'm making an administrationa l software program in VB6 and was
    >>>>wondering if there is a way to display a (borderless) form
    >>>>inside a frame on another form, or to load the contents of a
    >>>>frame into another frame. I dont want to use MDI. The reason i
    >>>>want do this is because i have 1 main form with menu and all
    >>>>and want to display a number of different controls but not all
    >>>>at once, i want to create those 'frames' with controls
    >>>>somewhere . I thought of using some frames on the main form and
    >>>>making them visible or invisible on turns but i dont really
    >>>>like this way.
    >>>>
    >>>How about moving those option off the menu, and onto a tab strip
    >>>(SSTAB) it will also making mataining the form a lot easier.
    >>>
    >>Unfortunately , that also suffers from the issue I mentioned (still
    >>be "visible" and accessible)
    >>
    >Huh? Maybe I missed something, can you explain?
    >
    >"The SSTab control has a nice feature of allowing you to switch tabs and
    >place controls at runtime, but this comes at a price. When you change
    >tab, the controls aren't actually hidden, but moved a long way off to
    >the left. This has the undesired side affect of keeping them in the tab
    >order and accessible (although out of sight)"
    Easily resolved with a few frame controls, which is
    something you want to do as standard when working with the
    SSTAB.

    J

    Jan Hyde (VB MVP)

    --
    Wedding Ring: A small tourniquet. It cuts off circulation (Stan Kegel)

    Comment

    • Dean Earley

      #17
      Re: VB6 Question

      >"The SSTab control has a nice feature of allowing you to switch
      >tabs and place controls at runtime, but this comes at a price. When
      >you change tab, the controls aren't actually hidden, but moved a
      >long way off to the left. This has the undesired side affect of
      >keeping them in the tab order and accessible (although out of
      >sight)"
      >
      Easily resolved with a few frame controls, which is something you
      want to do as standard when working with the SSTAB.
      Yes, but you'd still need to make all the non active ones "not visible"
      rather than just leaving them.

      --
      Dean Earley (dean.earley@ic ode.co.uk)
      i-Catcher Development Team

      iCode Systems

      Comment

      • Jan Hyde

        #18
        Re: VB6 Question

        Dean Earley <dean.earley@ic ode.co.uk>'s wild thoughts were
        released on Mon, 21 Aug 2006 13:39:40 +0100 bearing the
        following fruit:
        >>"The SSTab control has a nice feature of allowing you to switch
        >>tabs and place controls at runtime, but this comes at a price. When
        >>you change tab, the controls aren't actually hidden, but moved a
        >>long way off to the left. This has the undesired side affect of
        >>keeping them in the tab order and accessible (although out of
        >>sight)"
        >>
        >Easily resolved with a few frame controls, which is something you
        >want to do as standard when working with the SSTAB.
        >
        >Yes, but you'd still need to make all the non active ones "not visible"
        >rather than just leaving them.
        No you don't.



        Jan Hyde (VB MVP)

        --
        Who knocks on your door selling Halloween cookies?
        Ghoul Scouts

        (Ken Pinkham)

        Comment

        • Jan Hyde

          #19
          Re: VB6 Question

          Dean Earley <dean.earley@ic ode.co.uk>'s wild thoughts were
          released on Mon, 21 Aug 2006 13:39:40 +0100 bearing the
          following fruit:
          >>"The SSTab control has a nice feature of allowing you to switch
          >>tabs and place controls at runtime, but this comes at a price. When
          >>you change tab, the controls aren't actually hidden, but moved a
          >>long way off to the left. This has the undesired side affect of
          >>keeping them in the tab order and accessible (although out of
          >>sight)"
          >>
          >Easily resolved with a few frame controls, which is something you
          >want to do as standard when working with the SSTAB.
          >
          >Yes, but you'd still need to make all the non active ones "not visible"
          >rather than just leaving them.
          Anyway even if you choose to change the visible propery
          instead of the enabled property, we're talking two lines of
          code. Seriously that can't be more of a problem than trying
          to shoehorn forms into frames which will result in a lot
          more code and lot more problems.



          Jan Hyde (VB MVP)

          --
          NEWSFLASH - HIGH COURT TO HEAR DRUG CASE

          Comment

          • Dean Earley

            #20
            Re: VB6 Question

            >>>"The SSTab control has a nice feature of allowing you to switch
            >>>tabs and place controls at runtime, but this comes at a price. When
            >>>you change tab, the controls aren't actually hidden, but moved a
            >>>long way off to the left. This has the undesired side affect of
            >>>keeping them in the tab order and accessible (although out of
            >>>sight)"
            >>Easily resolved with a few frame controls, which is something you
            >>want to do as standard when working with the SSTAB.
            >Yes, but you'd still need to make all the non active ones "not visible"
            >rather than just leaving them.
            >
            No you don't.
            Yes we do.
            Without code to set the other frames invisible, you can use the tab key
            to switch focus to controls on the other tabs.
            This won't have a huge affect to most people except when they use the
            keyboard to navigate and the cursor disappears for ages while it goes
            through all the controls, "visible" or not.

            (I did double check to make sure it still applies to the SSTab control)

            --
            Dean Earley (dean.earley@ic ode.co.uk)
            i-Catcher Development Team

            iCode Systems

            Comment

            • Jan Hyde

              #21
              Re: VB6 Question

              Dean Earley <dean.earley@ic ode.co.uk>'s wild thoughts were
              released on Mon, 21 Aug 2006 14:09:34 +0100 bearing the
              following fruit:
              >>>>"The SSTab control has a nice feature of allowing you to switch
              >>>>tabs and place controls at runtime, but this comes at a price. When
              >>>>you change tab, the controls aren't actually hidden, but moved a
              >>>>long way off to the left. This has the undesired side affect of
              >>>>keeping them in the tab order and accessible (although out of
              >>>>sight)"
              >>>Easily resolved with a few frame controls, which is something you
              >>>want to do as standard when working with the SSTAB.
              >>Yes, but you'd still need to make all the non active ones "not visible"
              >>rather than just leaving them.
              >>
              >No you don't.
              >
              >Yes we do.
              >Without code to set the other frames invisible, you can use the tab key
              >to switch focus to controls on the other tabs.
              You can just disable the frames.
              >This won't have a huge affect to most people except when they use the
              >keyboard to navigate and the cursor disappears for ages while it goes
              >through all the controls, "visible" or not.
              >(I did double check to make sure it still applies to the SSTab control)
              Like I said, it's two lines of code to deal with this, far
              far less work than the path your attempting to follow.



              Jan Hyde (VB MVP)

              --
              Foresight: Spectacles are (Jan Hyde)

              Comment

              • Dean Earley

                #22
                Re: VB6 Question

                >This won't have a huge affect to most people except when they use the
                >keyboard to navigate and the cursor disappears for ages while it goes
                >through all the controls, "visible" or not.
                >(I did double check to make sure it still applies to the SSTab control)
                >
                Like I said, it's two lines of code to deal with this, far
                far less work than the path your attempting to follow.
                I wasn't advocating the multiple form method, it's hideous :)
                I was just raising awareness of having to disable/hide the frames when
                using the SSTab control.

                --
                Dean Earley (dean.earley@ic ode.co.uk)
                i-Catcher Development Team

                iCode Systems

                Comment

                • Kevin

                  #23
                  Re: VB6 Question

                  Yeah, i already made it like that, didnt change the z-order, just make all
                  invisible and the one i want to see visible.

                  "Dean Earley" <dean.earley@ic ode.co.ukwrote in message
                  news:44e97fb2$0 $1857$db0fefd9@ news.zen.co.uk. ..
                  >>I thought of using some frames on the main form and making them
                  >>visible or invisible on turns but i dont really like this way.
                  >>
                  >Hmmm, I like it. Making the frames same zize and on top of each other.
                  >Then just ThisFrame.Zorde r and voila it's on top.
                  >
                  Make sure you make the "hidden" ones invisible as well, otherwise the
                  user can still tab to them and blindly "change" things.
                  >
                  --
                  Dean Earley (dean.earley@ic ode.co.uk)
                  i-Catcher Development Team
                  >
                  iCode Systems

                  Comment

                  Working...