Docking Issue

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

    #1

    Docking Issue

    Hello,

    I can't figure this out - I coded 2 panels and set one to be docked Left and
    the other to be docked Fill. However, everytime, no matter what I do, the
    docked Fill panel always ends up "behind" the Left docked panel. This is
    all done at runtime. There are no tab indexes defined - I've deleted the
    panel and recreated, but no luck - I need the Left panel to stay in place
    and the fill to panel to start to the right of the Left and when the user
    expands the application, the Fill panel expands, but the Left panel does not
    adjust in size.

    I hope this makes sense....can someone please help.

    Thanx,
    Doug


  • Ayende Rahien

    #2
    Re: Docking Issue

    Check the order they added to the Controls

    "Doug" <dkhandler@_nos pam_hotmail.com > wrote in message
    news:eb3N23CwDH A.2464@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hello,
    >
    > I can't figure this out - I coded 2 panels and set one to be docked Left[/color]
    and[color=blue]
    > the other to be docked Fill. However, everytime, no matter what I do, the
    > docked Fill panel always ends up "behind" the Left docked panel. This is
    > all done at runtime. There are no tab indexes defined - I've deleted the
    > panel and recreated, but no luck - I need the Left panel to stay in place
    > and the fill to panel to start to the right of the Left and when the user
    > expands the application, the Fill panel expands, but the Left panel does[/color]
    not[color=blue]
    > adjust in size.
    >
    > I hope this makes sense....can someone please help.
    >
    > Thanx,
    > Doug
    >
    >[/color]


    Comment

    • Robin.Liu

      #3
      Docking Issue

      Change the adding orders of the controls.

      this.Controls.A dd(panel1); //left dockstyle
      this.Controls.A dd(panel2); //fill dockstyle

      change order as below

      this.Controls.A dd(panel2);
      this.Controls.A dd(panel1);

      [color=blue]
      >-----Original Message-----
      >Hello,
      >
      >I can't figure this out - I coded 2 panels and set one to[/color]
      be docked Left and[color=blue]
      >the other to be docked Fill. However, everytime, no[/color]
      matter what I do, the[color=blue]
      >docked Fill panel always ends up "behind" the Left docked[/color]
      panel. This is[color=blue]
      >all done at runtime. There are no tab indexes defined -[/color]
      I've deleted the[color=blue]
      >panel and recreated, but no luck - I need the Left panel[/color]
      to stay in place[color=blue]
      >and the fill to panel to start to the right of the Left[/color]
      and when the user[color=blue]
      >expands the application, the Fill panel expands, but the[/color]
      Left panel does not[color=blue]
      >adjust in size.
      >
      >I hope this makes sense....can someone please help.
      >
      >Thanx,
      >Doug
      >
      >
      >.
      >[/color]

      Comment

      • AllanC

        #4
        Docking Issue

        btw you can edit this manually or you can use "send to
        front/ back" in v designer

        [color=blue]
        >-----Original Message-----
        >Change the adding orders of the controls.
        >
        >this.Controls. Add(panel1); //left dockstyle
        >this.Controls. Add(panel2); //fill dockstyle
        >
        >change order as below
        >
        >this.Controls. Add(panel2);
        >this.Controls. Add(panel1);
        >
        >[color=green]
        >>-----Original Message-----
        >>Hello,
        >>
        >>I can't figure this out - I coded 2 panels and set one[/color][/color]
        to[color=blue]
        >be docked Left and[color=green]
        >>the other to be docked Fill. However, everytime, no[/color]
        >matter what I do, the[color=green]
        >>docked Fill panel always ends up "behind" the Left[/color][/color]
        docked[color=blue]
        >panel. This is[color=green]
        >>all done at runtime. There are no tab indexes defined -[/color][/color]
        [color=blue]
        >I've deleted the[color=green]
        >>panel and recreated, but no luck - I need the Left[/color][/color]
        panel[color=blue]
        >to stay in place[color=green]
        >>and the fill to panel to start to the right of the Left[/color]
        >and when the user[color=green]
        >>expands the application, the Fill panel expands, but[/color][/color]
        the[color=blue]
        >Left panel does not[color=green]
        >>adjust in size.
        >>
        >>I hope this makes sense....can someone please help.
        >>
        >>Thanx,
        >>Doug
        >>
        >>
        >>.
        >>[/color]
        >.
        >[/color]

        Comment

        Working...