DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 11 of 11

Thread: How can I split 2 panels horizontally?

  1. #1
    Patrick Ireland Guest

    How can I split 2 panels horizontally?


    I am trying to use the new splitter control in Beta2. I want to have an
    upper and lower panel with the splitter between them. I add the top panel
    and anchor it on left, top, and right. I add the splitter control. Since
    it starts as a VSplit, I change the selection to HSplit. However, the
    control does not seem to change nor can I redemsion it graphically or by
    altering the values in the properties (also at design time).

    What is the procedure for doing a HSplit between 2 panels?

    TNX


  2. #2
    Arthur Wood Guest

    Re: How can I split 2 panels horizontally?


    Patrick,

    1) add the first panel to the form, set its DOCK property to TOP

    2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    DOCK below the top panel.

    3) now add the bottom panel, set its Dock Property to FILL.

    that should get you what you want.

    Arthur Wood


    "Patrick Ireland" <ireland@airmail.net> wrote:
    >
    >I am trying to use the new splitter control in Beta2. I want to have an
    >upper and lower panel with the splitter between them. I add the top panel
    >and anchor it on left, top, and right. I add the splitter control. Since
    >it starts as a VSplit, I change the selection to HSplit. However, the
    >control does not seem to change nor can I redemsion it graphically or by
    >altering the values in the properties (also at design time).
    >
    >What is the procedure for doing a HSplit between 2 panels?
    >
    >TNX
    >



  3. #3
    Patrick Ireland Guest

    Re: How can I split 2 panels horizontally?


    Arthur,

    Thanks for the response. When I do (1) then (2) the splitter does indeed
    dock below the first panel, however it appears as a vertical bar along the
    left edge of the form. You can better see the splitter by setting its
    background color to red, white, or blue - whatever your favorite color is.
    I would have thought the splitter would lay horizontally below the upper
    panel. Doing step (3) allows the top or bottom panel to move corresponding
    but I still have the splitter along the left edge of the lower panel. Is
    this the way it should work?

    Pat

    "Arthur Wood" <wooda@saic-trsc.com> wrote:
    >
    >Patrick,
    >
    > 1) add the first panel to the form, set its DOCK property to TOP
    >
    > 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >DOCK below the top panel.
    >
    > 3) now add the bottom panel, set its Dock Property to FILL.
    >
    >that should get you what you want.
    >
    >Arthur Wood
    >
    >
    >"Patrick Ireland" <ireland@airmail.net> wrote:
    >>
    >>I am trying to use the new splitter control in Beta2. I want to have an
    >>upper and lower panel with the splitter between them. I add the top panel
    >>and anchor it on left, top, and right. I add the splitter control. Since
    >>it starts as a VSplit, I change the selection to HSplit. However, the
    >>control does not seem to change nor can I redemsion it graphically or by
    >>altering the values in the properties (also at design time).
    >>
    >>What is the procedure for doing a HSplit between 2 panels?
    >>
    >>TNX
    >>

    >



  4. #4
    Arthur Wood Guest

    Re: How can I split 2 panels horizontally?


    Make sure that you are setting the CURSOR property of the Splitter to HSplit
    (it defaults to VSplit, and then behaves, by default, the way you are describing).




    "Patrick Ireland" <ireland@airmail.net> wrote:
    >
    >Arthur,
    >
    >Thanks for the response. When I do (1) then (2) the splitter does indeed
    >dock below the first panel, however it appears as a vertical bar along the
    >left edge of the form. You can better see the splitter by setting its
    >background color to red, white, or blue - whatever your favorite color is.
    >I would have thought the splitter would lay horizontally below the upper
    >panel. Doing step (3) allows the top or bottom panel to move corresponding
    >but I still have the splitter along the left edge of the lower panel. Is
    >this the way it should work?
    >
    >Pat
    >
    >"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>
    >>Patrick,
    >>
    >> 1) add the first panel to the form, set its DOCK property to TOP
    >>
    >> 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >>DOCK below the top panel.
    >>
    >> 3) now add the bottom panel, set its Dock Property to FILL.
    >>
    >>that should get you what you want.
    >>
    >>Arthur Wood
    >>
    >>
    >>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>
    >>>I am trying to use the new splitter control in Beta2. I want to have

    an
    >>>upper and lower panel with the splitter between them. I add the top panel
    >>>and anchor it on left, top, and right. I add the splitter control. Since
    >>>it starts as a VSplit, I change the selection to HSplit. However, the
    >>>control does not seem to change nor can I redemsion it graphically or

    by
    >>>altering the values in the properties (also at design time).
    >>>
    >>>What is the procedure for doing a HSplit between 2 panels?
    >>>
    >>>TNX
    >>>

    >>

    >



  5. #5
    Patrick Ireland Guest

    Re: How can I split 2 panels horizontally?


    Arthur,

    I did set the CURSOR property to HSplit, however, I had to change the
    DOCK property manually from left to top, then the Splitter control worked
    as expected. For other readers - to make a Splitter control which from
    Vertical to Horizontal split, requires you to set the CURSOR property to
    HSplit AND set the DOCK property to TOP. 8-)

    Pat



    "Arthur Wood" <wooda@saic-trsc.com> wrote:
    >
    >Make sure that you are setting the CURSOR property of the Splitter to HSplit
    >(it defaults to VSplit, and then behaves, by default, the way you are describing).
    >
    >
    >
    >
    >"Patrick Ireland" <ireland@airmail.net> wrote:
    >>
    >>Arthur,
    >>
    >>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>dock below the first panel, however it appears as a vertical bar along

    the
    >>left edge of the form. You can better see the splitter by setting its
    >>background color to red, white, or blue - whatever your favorite color

    is.
    >>I would have thought the splitter would lay horizontally below the upper
    >>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>but I still have the splitter along the left edge of the lower panel.

    Is
    >>this the way it should work?
    >>
    >>Pat
    >>
    >>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>
    >>>Patrick,
    >>>
    >>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>
    >>> 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >>>DOCK below the top panel.
    >>>
    >>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>
    >>>that should get you what you want.
    >>>
    >>>Arthur Wood
    >>>
    >>>
    >>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>
    >>>>I am trying to use the new splitter control in Beta2. I want to have

    >an
    >>>>upper and lower panel with the splitter between them. I add the top

    panel
    >>>>and anchor it on left, top, and right. I add the splitter control.

    Since
    >>>>it starts as a VSplit, I change the selection to HSplit. However, the
    >>>>control does not seem to change nor can I redemsion it graphically or

    >by
    >>>>altering the values in the properties (also at design time).
    >>>>
    >>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>
    >>>>TNX
    >>>>
    >>>

    >>

    >



  6. #6
    Patrick Ireland Guest

    Re: How can I split 2 panels horizontally?


    Arthur,

    I spoke to soon. By docing the splitter control at the top it covers
    the top panel. I'll try and play around some more with it, however,
    I don't seen the automatic movement of the splitter control from left
    vertical to horizontal when I set the CURSOR property as you recommended.

    Pat

    "Arthur Wood" <wooda@saic-trsc.com> wrote:
    >
    >Make sure that you are setting the CURSOR property of the Splitter to HSplit
    >(it defaults to VSplit, and then behaves, by default, the way you are describing).
    >
    >
    >
    >
    >"Patrick Ireland" <ireland@airmail.net> wrote:
    >>
    >>Arthur,
    >>
    >>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>dock below the first panel, however it appears as a vertical bar along

    the
    >>left edge of the form. You can better see the splitter by setting its
    >>background color to red, white, or blue - whatever your favorite color

    is.
    >>I would have thought the splitter would lay horizontally below the upper
    >>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>but I still have the splitter along the left edge of the lower panel.

    Is
    >>this the way it should work?
    >>
    >>Pat
    >>
    >>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>
    >>>Patrick,
    >>>
    >>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>
    >>> 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >>>DOCK below the top panel.
    >>>
    >>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>
    >>>that should get you what you want.
    >>>
    >>>Arthur Wood
    >>>
    >>>
    >>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>
    >>>>I am trying to use the new splitter control in Beta2. I want to have

    >an
    >>>>upper and lower panel with the splitter between them. I add the top

    panel
    >>>>and anchor it on left, top, and right. I add the splitter control.

    Since
    >>>>it starts as a VSplit, I change the selection to HSplit. However, the
    >>>>control does not seem to change nor can I redemsion it graphically or

    >by
    >>>>altering the values in the properties (also at design time).
    >>>>
    >>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>
    >>>>TNX
    >>>>
    >>>

    >>

    >



  7. #7
    Arthur Wood Guest

    Re: How can I split 2 panels horizontally?


    Patrick,
    if you read 1) CAREFULLY, I explicitly said to set the DOCK property to
    TOP.

    Arthur Wood

    "Patrick Ireland" <ireland@airmail.net> wrote:
    >
    >Arthur,
    >
    >I did set the CURSOR property to HSplit, however, I had to change the
    >DOCK property manually from left to top, then the Splitter control worked
    >as expected. For other readers - to make a Splitter control which from
    >Vertical to Horizontal split, requires you to set the CURSOR property to
    >HSplit AND set the DOCK property to TOP. 8-)
    >
    >Pat
    >
    >
    >
    >"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>
    >>Make sure that you are setting the CURSOR property of the Splitter to HSplit
    >>(it defaults to VSplit, and then behaves, by default, the way you are describing).
    >>
    >>
    >>
    >>
    >>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>
    >>>Arthur,
    >>>
    >>>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>>dock below the first panel, however it appears as a vertical bar along

    >the
    >>>left edge of the form. You can better see the splitter by setting its
    >>>background color to red, white, or blue - whatever your favorite color

    >is.
    >>>I would have thought the splitter would lay horizontally below the upper
    >>>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>>but I still have the splitter along the left edge of the lower panel.


    >Is
    >>>this the way it should work?
    >>>
    >>>Pat
    >>>
    >>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>
    >>>>Patrick,
    >>>>
    >>>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>>
    >>>> 2) add the Splitter, set its CURSOR Property to HSplit---it should

    automatically
    >>>>DOCK below the top panel.
    >>>>
    >>>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>>
    >>>>that should get you what you want.
    >>>>
    >>>>Arthur Wood
    >>>>
    >>>>
    >>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>
    >>>>>I am trying to use the new splitter control in Beta2. I want to have

    >>an
    >>>>>upper and lower panel with the splitter between them. I add the top

    >panel
    >>>>>and anchor it on left, top, and right. I add the splitter control.


    >Since
    >>>>>it starts as a VSplit, I change the selection to HSplit. However, the
    >>>>>control does not seem to change nor can I redemsion it graphically or

    >>by
    >>>>>altering the values in the properties (also at design time).
    >>>>>
    >>>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>>
    >>>>>TNX
    >>>>>
    >>>>
    >>>

    >>

    >



  8. #8
    Arthur Wood Guest

    Re: How can I split 2 panels horizontally?


    Patrick,
    You must do things in the proper order.

    so I repeat myself:

    1) add the first panel to the form, set its DOCK property to TOP

    2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    DOCK below the top panel.

    3) now add the bottom panel, set its Dock Property to FILL.

    note that each step MUST BE COMPLETED BEFORE going on to the next step.

    Arthur Wood

    "Patrick Ireland" <ireland@airmail.net> wrote:
    >
    >Arthur,
    >
    >I spoke to soon. By docing the splitter control at the top it covers
    >the top panel. I'll try and play around some more with it, however,
    >I don't seen the automatic movement of the splitter control from left
    >vertical to horizontal when I set the CURSOR property as you recommended.
    >
    >Pat
    >
    >"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>
    >>Make sure that you are setting the CURSOR property of the Splitter to HSplit
    >>(it defaults to VSplit, and then behaves, by default, the way you are describing).
    >>
    >>
    >>
    >>
    >>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>
    >>>Arthur,
    >>>
    >>>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>>dock below the first panel, however it appears as a vertical bar along

    >the
    >>>left edge of the form. You can better see the splitter by setting its
    >>>background color to red, white, or blue - whatever your favorite color

    >is.
    >>>I would have thought the splitter would lay horizontally below the upper
    >>>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>>but I still have the splitter along the left edge of the lower panel.


    >Is
    >>>this the way it should work?
    >>>
    >>>Pat
    >>>
    >>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>
    >>>>Patrick,
    >>>>
    >>>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>>
    >>>> 2) add the Splitter, set its CURSOR Property to HSplit---it should

    automatically
    >>>>DOCK below the top panel.
    >>>>
    >>>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>>
    >>>>that should get you what you want.
    >>>>
    >>>>Arthur Wood
    >>>>
    >>>>
    >>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>
    >>>>>I am trying to use the new splitter control in Beta2. I want to have

    >>an
    >>>>>upper and lower panel with the splitter between them. I add the top

    >panel
    >>>>>and anchor it on left, top, and right. I add the splitter control.


    >Since
    >>>>>it starts as a VSplit, I change the selection to HSplit. However, the
    >>>>>control does not seem to change nor can I redemsion it graphically or

    >>by
    >>>>>altering the values in the properties (also at design time).
    >>>>>
    >>>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>>
    >>>>>TNX
    >>>>>
    >>>>
    >>>

    >>

    >



  9. #9
    Patrick Ireland Guest

    Re: How can I split 2 panels horizontally?


    Arthur,

    This is what I have done:

    Starting with a new VB.NET windows project

    1) Add a panel, Panel1
    2) For Panel1, modify DOCK property to TOP
    "Poof" - the panel fills across the top of the designer form
    as expected
    3) Add Splitter to form in space below Panel1
    The Splitter control appears on the left edge of the designer form
    as expected since the default DOCK is left. It extends from the
    bottom of Panel1 to the bottom of the form
    4) For Splitter, modify the CURSOR to HSPLIT
    At this point I would have expected the splitter to change from
    a vertical to horizontal position. It does NOT automatically position
    itself immediately below Panel1 8-(
    5) For Splitter, modify the DOCK to TOP
    At this point the Splitter is NOW positioned immediately below
    Panel1 8-)
    6) Add second panel, Panel2 below the Splitter control
    7) For Panel2, modify the DOCK property to FILL

    By adding step (5) I get the results you mention but only then.

    However, the control setup doesn't work quite the way I expect it to.
    I can move the boundary of the the panels freely (in designer) only if
    I select Panel1 (the top panel). If I try to move the boundary between
    the 2 panels with Panel2 selected, the designer blinks the screen a little
    but does not move the boundary. Screen blinking aside, I would have
    expected to be able to move the boundary with either Panel1 (upper) or
    Panel2 (lower) selected. Are my expections to much, or does it behave
    similarly for you?

    FYI, I can and did follow your instructions exactly. The missing step
    (5) was the problem. Is there a possibility that our Beta 2's are different?
    I have noticed that there is a patch from MS for the Beta 2.
    I don't have the patch on my machine at home but do have it on my machine
    at work. The patch(s) was(were) automatically invoked across the net when
    I installed at work. I have not tried step (5) at work, one has got to
    take some time off beside it was my birthday. I do appreciate your efforts
    8-).

    "Arthur Wood" <wooda@saic-trsc.com> wrote:
    >
    >Patrick,
    > You must do things in the proper order.
    >
    >so I repeat myself:
    >
    > 1) add the first panel to the form, set its DOCK property to TOP
    >
    > 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >DOCK below the top panel.
    >
    > 3) now add the bottom panel, set its Dock Property to FILL.
    >
    >note that each step MUST BE COMPLETED BEFORE going on to the next step.
    >
    >Arthur Wood
    >
    >"Patrick Ireland" <ireland@airmail.net> wrote:
    >>
    >>Arthur,
    >>
    >>I spoke to soon. By docing the splitter control at the top it covers
    >>the top panel. I'll try and play around some more with it, however,
    >>I don't seen the automatic movement of the splitter control from left
    >>vertical to horizontal when I set the CURSOR property as you recommended.
    >>
    >>Pat
    >>
    >>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>
    >>>Make sure that you are setting the CURSOR property of the Splitter to

    HSplit
    >>>(it defaults to VSplit, and then behaves, by default, the way you are

    describing).
    >>>
    >>>
    >>>
    >>>
    >>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>
    >>>>Arthur,
    >>>>
    >>>>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>>>dock below the first panel, however it appears as a vertical bar along

    >>the
    >>>>left edge of the form. You can better see the splitter by setting its
    >>>>background color to red, white, or blue - whatever your favorite color

    >>is.
    >>>>I would have thought the splitter would lay horizontally below the upper
    >>>>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>>>but I still have the splitter along the left edge of the lower panel.

    >
    >>Is
    >>>>this the way it should work?
    >>>>
    >>>>Pat
    >>>>
    >>>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>>
    >>>>>Patrick,
    >>>>>
    >>>>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>>>
    >>>>> 2) add the Splitter, set its CURSOR Property to HSplit---it should

    >automatically
    >>>>>DOCK below the top panel.
    >>>>>
    >>>>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>>>
    >>>>>that should get you what you want.
    >>>>>
    >>>>>Arthur Wood
    >>>>>
    >>>>>
    >>>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>>
    >>>>>>I am trying to use the new splitter control in Beta2. I want to have
    >>>an
    >>>>>>upper and lower panel with the splitter between them. I add the top

    >>panel
    >>>>>>and anchor it on left, top, and right. I add the splitter control.

    >
    >>Since
    >>>>>>it starts as a VSplit, I change the selection to HSplit. However,

    the
    >>>>>>control does not seem to change nor can I redemsion it graphically

    or
    >>>by
    >>>>>>altering the values in the properties (also at design time).
    >>>>>>
    >>>>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>>>
    >>>>>>TNX
    >>>>>>
    >>>>>
    >>>>
    >>>

    >>

    >



  10. #10
    Arthur Wood Guest

    Re: How can I split 2 panels horizontally?


    I cannot explain why Step 4 does NOT appear to behave "properly" - on my copy
    it does exactly what I described-the splitterappears horizontal, and DOCKS
    below the panel. But then Step 5 is WRONG. You cannot have BOTH the panel
    AND the splitter docked TOP as TOP means the TOP of the FORM and they both
    cannt dock to the top of the form - the splitter must dock to the BOTTOM
    of the PANEL (that is NOT one of the settable choices, so DO NOT TRY to set
    it)


    Arthur Wood

    "Patrick Ireland" <ireland@airmail.net> wrote:
    >
    >Arthur,
    >
    >This is what I have done:
    >
    >Starting with a new VB.NET windows project
    >
    >1) Add a panel, Panel1
    >2) For Panel1, modify DOCK property to TOP
    > "Poof" - the panel fills across the top of the designer form
    > as expected
    >3) Add Splitter to form in space below Panel1
    > The Splitter control appears on the left edge of the designer form
    > as expected since the default DOCK is left. It extends from the
    > bottom of Panel1 to the bottom of the form
    >4) For Splitter, modify the CURSOR to HSPLIT
    > At this point I would have expected the splitter to change from
    > a vertical to horizontal position. It does NOT automatically position
    > itself immediately below Panel1 8-(
    >5) For Splitter, modify the DOCK to TOP
    > At this point the Splitter is NOW positioned immediately below
    > Panel1 8-)
    >6) Add second panel, Panel2 below the Splitter control
    >7) For Panel2, modify the DOCK property to FILL
    >
    >By adding step (5) I get the results you mention but only then.
    >
    >However, the control setup doesn't work quite the way I expect it to.
    >I can move the boundary of the the panels freely (in designer) only if
    >I select Panel1 (the top panel). If I try to move the boundary between
    >the 2 panels with Panel2 selected, the designer blinks the screen a little
    >but does not move the boundary. Screen blinking aside, I would have
    >expected to be able to move the boundary with either Panel1 (upper) or
    >Panel2 (lower) selected. Are my expections to much, or does it behave
    >similarly for you?
    >
    >FYI, I can and did follow your instructions exactly. The missing step
    >(5) was the problem. Is there a possibility that our Beta 2's are different?
    > I have noticed that there is a patch from MS for the Beta 2.
    >I don't have the patch on my machine at home but do have it on my machine
    >at work. The patch(s) was(were) automatically invoked across the net when
    >I installed at work. I have not tried step (5) at work, one has got to
    >take some time off beside it was my birthday. I do appreciate your efforts
    >8-).
    >
    >"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>
    >>Patrick,
    >> You must do things in the proper order.
    >>
    >>so I repeat myself:
    >>
    >> 1) add the first panel to the form, set its DOCK property to TOP
    >>
    >> 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >>DOCK below the top panel.
    >>
    >> 3) now add the bottom panel, set its Dock Property to FILL.
    >>
    >>note that each step MUST BE COMPLETED BEFORE going on to the next step.
    >>
    >>Arthur Wood
    >>
    >>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>
    >>>Arthur,
    >>>
    >>>I spoke to soon. By docing the splitter control at the top it covers
    >>>the top panel. I'll try and play around some more with it, however,
    >>>I don't seen the automatic movement of the splitter control from left
    >>>vertical to horizontal when I set the CURSOR property as you recommended.
    >>>
    >>>Pat
    >>>
    >>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>
    >>>>Make sure that you are setting the CURSOR property of the Splitter to

    >HSplit
    >>>>(it defaults to VSplit, and then behaves, by default, the way you are

    >describing).
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>
    >>>>>Arthur,
    >>>>>
    >>>>>Thanks for the response. When I do (1) then (2) the splitter does indeed
    >>>>>dock below the first panel, however it appears as a vertical bar along
    >>>the
    >>>>>left edge of the form. You can better see the splitter by setting its
    >>>>>background color to red, white, or blue - whatever your favorite color
    >>>is.
    >>>>>I would have thought the splitter would lay horizontally below the upper
    >>>>>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>>>>but I still have the splitter along the left edge of the lower panel.

    >>
    >>>Is
    >>>>>this the way it should work?
    >>>>>
    >>>>>Pat
    >>>>>
    >>>>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>>>
    >>>>>>Patrick,
    >>>>>>
    >>>>>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>>>>
    >>>>>> 2) add the Splitter, set its CURSOR Property to HSplit---it should

    >>automatically
    >>>>>>DOCK below the top panel.
    >>>>>>
    >>>>>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>>>>
    >>>>>>that should get you what you want.
    >>>>>>
    >>>>>>Arthur Wood
    >>>>>>
    >>>>>>
    >>>>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>>>
    >>>>>>>I am trying to use the new splitter control in Beta2. I want to have
    >>>>an
    >>>>>>>upper and lower panel with the splitter between them. I add the top
    >>>panel
    >>>>>>>and anchor it on left, top, and right. I add the splitter control.

    >>
    >>>Since
    >>>>>>>it starts as a VSplit, I change the selection to HSplit. However,

    >the
    >>>>>>>control does not seem to change nor can I redemsion it graphically

    >or
    >>>>by
    >>>>>>>altering the values in the properties (also at design time).
    >>>>>>>
    >>>>>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>>>>
    >>>>>>>TNX
    >>>>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>

    >>

    >



  11. #11
    Patrick Ireland Guest

    Re: How can I split 2 panels horizontally?


    OTay

    FYI, it docked correctly under the top panel. The mystery deeps.
    Da-dun da-dun 8-)

    I do agree with you that it should work the way you state. Quoting Paul
    Atreides before becoming Paul maud'Dib in Dune, "It seemed the natural way".

    By the way did you connect to the internet to get the latest patches
    for Beta 2?

    Since I am currently testing this a home, I only installed from the DVD
    since my Beta 2 machine does not have network access. Therein may lay the
    difference!



    Pat


    "Arthur Wood" <wooda@saic-trsc.com> wrote:
    >
    >I cannot explain why Step 4 does NOT appear to behave "properly" - on my

    copy
    >it does exactly what I described-the splitterappears horizontal, and DOCKS
    >below the panel. But then Step 5 is WRONG. You cannot have BOTH the panel
    >AND the splitter docked TOP as TOP means the TOP of the FORM and they both
    >cannt dock to the top of the form - the splitter must dock to the BOTTOM
    >of the PANEL (that is NOT one of the settable choices, so DO NOT TRY to

    set
    >it)
    >
    >
    >Arthur Wood
    >
    >"Patrick Ireland" <ireland@airmail.net> wrote:
    >>
    >>Arthur,
    >>
    >>This is what I have done:
    >>
    >>Starting with a new VB.NET windows project
    >>
    >>1) Add a panel, Panel1
    >>2) For Panel1, modify DOCK property to TOP
    >> "Poof" - the panel fills across the top of the designer form
    >> as expected
    >>3) Add Splitter to form in space below Panel1
    >> The Splitter control appears on the left edge of the designer form
    >> as expected since the default DOCK is left. It extends from the
    >> bottom of Panel1 to the bottom of the form
    >>4) For Splitter, modify the CURSOR to HSPLIT
    >> At this point I would have expected the splitter to change from
    >> a vertical to horizontal position. It does NOT automatically position
    >> itself immediately below Panel1 8-(
    >>5) For Splitter, modify the DOCK to TOP
    >> At this point the Splitter is NOW positioned immediately below
    >> Panel1 8-)
    >>6) Add second panel, Panel2 below the Splitter control
    >>7) For Panel2, modify the DOCK property to FILL
    >>
    >>By adding step (5) I get the results you mention but only then.
    >>
    >>However, the control setup doesn't work quite the way I expect it to.
    >>I can move the boundary of the the panels freely (in designer) only if
    >>I select Panel1 (the top panel). If I try to move the boundary between
    >>the 2 panels with Panel2 selected, the designer blinks the screen a little
    >>but does not move the boundary. Screen blinking aside, I would have
    >>expected to be able to move the boundary with either Panel1 (upper) or
    >>Panel2 (lower) selected. Are my expections to much, or does it behave
    >>similarly for you?
    >>
    >>FYI, I can and did follow your instructions exactly. The missing step
    >>(5) was the problem. Is there a possibility that our Beta 2's are different?
    >> I have noticed that there is a patch from MS for the Beta 2.
    >>I don't have the patch on my machine at home but do have it on my machine
    >>at work. The patch(s) was(were) automatically invoked across the net when
    >>I installed at work. I have not tried step (5) at work, one has got to
    >>take some time off beside it was my birthday. I do appreciate your efforts
    >>8-).
    >>
    >>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>
    >>>Patrick,
    >>> You must do things in the proper order.
    >>>
    >>>so I repeat myself:
    >>>
    >>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>
    >>> 2) add the Splitter, set its CURSOR Property to HSplit---it should automatically
    >>>DOCK below the top panel.
    >>>
    >>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>
    >>>note that each step MUST BE COMPLETED BEFORE going on to the next step.
    >>>
    >>>Arthur Wood
    >>>
    >>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>
    >>>>Arthur,
    >>>>
    >>>>I spoke to soon. By docing the splitter control at the top it covers
    >>>>the top panel. I'll try and play around some more with it, however,
    >>>>I don't seen the automatic movement of the splitter control from left
    >>>>vertical to horizontal when I set the CURSOR property as you recommended.
    >>>>
    >>>>Pat
    >>>>
    >>>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>>
    >>>>>Make sure that you are setting the CURSOR property of the Splitter to

    >>HSplit
    >>>>>(it defaults to VSplit, and then behaves, by default, the way you are

    >>describing).
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>>
    >>>>>>Arthur,
    >>>>>>
    >>>>>>Thanks for the response. When I do (1) then (2) the splitter does

    indeed
    >>>>>>dock below the first panel, however it appears as a vertical bar along
    >>>>the
    >>>>>>left edge of the form. You can better see the splitter by setting

    its
    >>>>>>background color to red, white, or blue - whatever your favorite color
    >>>>is.
    >>>>>>I would have thought the splitter would lay horizontally below the

    upper
    >>>>>>panel. Doing step (3) allows the top or bottom panel to move corresponding
    >>>>>>but I still have the splitter along the left edge of the lower panel.
    >>>
    >>>>Is
    >>>>>>this the way it should work?
    >>>>>>
    >>>>>>Pat
    >>>>>>
    >>>>>>"Arthur Wood" <wooda@saic-trsc.com> wrote:
    >>>>>>>
    >>>>>>>Patrick,
    >>>>>>>
    >>>>>>> 1) add the first panel to the form, set its DOCK property to TOP
    >>>>>>>
    >>>>>>> 2) add the Splitter, set its CURSOR Property to HSplit---it should
    >>>automatically
    >>>>>>>DOCK below the top panel.
    >>>>>>>
    >>>>>>> 3) now add the bottom panel, set its Dock Property to FILL.
    >>>>>>>
    >>>>>>>that should get you what you want.
    >>>>>>>
    >>>>>>>Arthur Wood
    >>>>>>>
    >>>>>>>
    >>>>>>>"Patrick Ireland" <ireland@airmail.net> wrote:
    >>>>>>>>
    >>>>>>>>I am trying to use the new splitter control in Beta2. I want to

    have
    >>>>>an
    >>>>>>>>upper and lower panel with the splitter between them. I add the

    top
    >>>>panel
    >>>>>>>>and anchor it on left, top, and right. I add the splitter control.
    >>>
    >>>>Since
    >>>>>>>>it starts as a VSplit, I change the selection to HSplit. However,

    >>the
    >>>>>>>>control does not seem to change nor can I redemsion it graphically

    >>or
    >>>>>by
    >>>>>>>>altering the values in the properties (also at design time).
    >>>>>>>>
    >>>>>>>>What is the procedure for doing a HSplit between 2 panels?
    >>>>>>>>
    >>>>>>>>TNX
    >>>>>>>>
    >>>>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>

    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center