0 Replies Latest reply on Jul 10, 2008 9:50 PM by treesg

    HdividedBox - stop divider drag problem

    treesg
      Hi ,
      I am having a HDividedBox which hold 3 tilelists. I want ,I drag the Dividers , when tileList get min width of 100 it get stops. How should I stop Divider dragging at any specified point.

      We have two options one contains only 2 tileList and other one three TileList...

      Now My code is something like this----


      public function resizeHDivider(event:DividerEvent) {
      setWidth=610
      dividerFlag=true;
      currentDivider=Number(event.dividerIndex+(1));
      trace(event.currentTarget+" currentDivider..... "+currentDivider)
      var myObj:Object=this["Col_"+currentDivider]

      if(currentDivider==1)
      {

      Col_1.width=setWidth;
      Col_2.width=setWidth
      Col_1.minWidth=100;
      Col_2.minWidth=100
      Col_1.maxWidth=setWidth+setWidth-Col_1.minWidth
      Col_2.maxWidth=setWidth+setWidth-Col_2.minWidth

      }

      if(currentDivider==2)
      {
      Col_3.width=setWidth;
      Col_2.width=setWidth
      //Col_3.minWidth=100;
      Col_2.minWidth=100
      Col_3.maxWidth=setWidth+setWidth-Col_3.minWidth
      Col_2.maxWidth=setWidth+Col_3.width-100

      }

      }


      but this is not functioning properly in case of third column...if I put

      col_3.minWidth=100;

      Please help what to do ..any new code to do the same..

      Please Help ASAP..

      Thanks