1 Reply Latest reply on Jun 26, 2006 4:31 PM by Newsgroup_User

    DateChooser Scroll

    jimherr
      Is it possible to hide or remove the scroll thumbs from a dateChooser ui component? I want to lock the component to a single month.
        • 1. Re: DateChooser Scroll
          Level 7
          There is no property or style that controls whether the prevMonth and
          nextMonth arrow buttons are visible. Instead, you can skin these buttons so
          that they don't draw anything and have no size.

          I've included a working example in Flex 2.0. I'm using the mx.skins.Border
          which doesn't draw anything and has a width/height of 0.

          <?xml version="1.0" encoding="iso-8859-1" ?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

          <mx:Style>

          DateChooser
          {
          nextMonthUpSkin: ClassReference('mx.skins.Border');
          nextMonthDisabledSkin: ClassReference('mx.skins.Border');
          nextMonthDownSkin: ClassReference('mx.skins.Border');
          nextMonthOverSkin: ClassReference('mx.skins.Border');

          prevMonthUpSkin: ClassReference('mx.skins.Border');
          prevMonthDisabledSkin: ClassReference('mx.skins.Border');
          prevMonthDownSkin: ClassReference('mx.skins.Border');
          prevMonthOverSkin: ClassReference('mx.skins.Border');
          }

          </mx:Style>

          <mx:DateChooser selectableRange="{{rangeStart : new Date(2006,6,1), rangeEnd
          : new Date(2006,6,31)}}" id="cl"/>

          </mx:Application>

          --
          Jason Szeto
          Adobe Flex SDK Developer

          "jimherr" <webforumsuser@macromedia.com> wrote in message
          news:e7harl$rcl$1@forums.macromedia.com...
          > Is it possible to hide or remove the scroll thumbs from a dateChooser ui
          > component? I want to lock the component to a single month.