using splitter object

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

    using splitter object

    Hello.
    I have put 3 components on the form :
    Panel . dock property is left (left panel).
    Spliter. dock property is left.
    Panel. dock property is fill (right panel).

    I see that the spliter has some width, and all the elements on the right
    panel,
    are invisible when they are neer the left edge of the right panel
    (the splitter component hides them).

    How can I overcome that problem ?

    Thanks :)


  • kimiraikkonen

    #2
    Re: using splitter object

    On Feb 20, 3:33 pm, "Mr. X." <no_spam_please @nospam_please. comwrote:
    Hello.
    I have put 3 components on the form :
    Panel . dock property is left (left panel).
    Spliter. dock property is left.
    Panel. dock property is fill (right panel).
    >
    I see that the spliter has some width, and all the elements on the right
    panel,
    are invisible when they are neer the left edge of the right panel
    (the splitter component hides them).
    >
    How can I overcome that problem ?
    >
    Thanks :)
    Well, if i understood your issue correctly, i have seen that kind of
    issues and IMHO the best way is to solve is to use "anchor" property
    instead of docking which works work me. But i've found that dragging
    an objects edges to fit the form does NOT 1:1 fit control (a very tiny
    space is present or you should enter spacing values manually in
    properties window), but which works as you wish.

    For example add a webbrowser control on a form that's docked on the
    form center by default, then add status bar. You'll see that one of
    these controls will be hidden / mixed , therefore remove docking
    property and set "anchor" property's value to up / left/ right to fit
    your control around the container.

    Sometimes right clicking on your control and "bring to front" command
    is used to work out this issue.

    Hope this helps.

    Comment

    • kimiraikkonen

      #3
      Re: using splitter object

      On Feb 20, 3:33 pm, "Mr. X." <no_spam_please @nospam_please. comwrote:
      Hello.
      I have put 3 components on the form :
      Panel . dock property is left (left panel).
      Spliter. dock property is left.
      Panel. dock property is fill (right panel).
      >
      I see that the spliter has some width, and all the elements on the right
      panel,
      are invisible when they are neer the left edge of the right panel
      (the splitter component hides them).
      >
      How can I overcome that problem ?
      >
      Thanks :)
      Also look at this link that contains good definitions:

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: using splitter object

        "Mr. X." <no_spam_please @nospam_please. comschrieb:
        I have put 3 components on the form :
        Panel . dock property is left (left panel).
        Spliter. dock property is left.
        Panel. dock property is fill (right panel).
        >
        I see that the spliter has some width, and all the elements on the right
        panel,
        are invisible when they are neer the left edge of the right panel
        (the splitter component hides them).
        In addition to the other replies: If you are using .NET 2.0 or newer, you
        may want to use the SplitPanel control instead of the splitter control.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • Mr. X.

          #5
          Re: using splitter object

          You meant : SplitContainer.
          When first time I ran my program,
          the splitter line is hidden, so I need to drag it once.

          How can I solve the above problem ?

          Thank :)


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: using splitter object

            "Mr. X." <no_spam_please @nospam_please. comschrieb:
            You meant : SplitContainer.
            Yes, sorry...
            When first time I ran my program,
            the splitter line is hidden, so I need to drag it once.
            Are you talking about SplitContainer? You can set the 'SplitPosition'
            property to position the splitter.

            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

            Comment

            • Mr. X.

              #7
              Re: using splitter object

              Thanks,
              .... but there is not such property splitPosition.


              Comment

              • Armin Zingler

                #8
                Re: using splitter object

                "Mr. X." <no_spam_please @nospam_please. comschrieb
                Thanks,
                ... but there is not such property splitPosition.
                This time he meant the SplitterDistanc e property. ;-) (you get a list
                after typing the ".")


                Armin

                Comment

                • Herfried K. Wagner [MVP]

                  #9
                  Re: using splitter object

                  "Armin Zingler" <az.nospam@free net.deschrieb:
                  >Thanks,
                  >... but there is not such property splitPosition.
                  >
                  This time he meant the SplitterDistanc e property. ;-) (you get a list
                  after typing the ".")
                  Sorry, I didn't have VS installed on the machine and thus I guessed the
                  property's name.

                  --
                  M S Herfried K. Wagner
                  M V P <URL:http://dotnet.mvps.org/>
                  V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                  Comment

                  Working...