0 Replies Latest reply on Jul 17, 2009 12:19 PM by Zolotoj

    Stuborn titlebar

    Zolotoj Level 3

      I am trying to add a slider to a titlewindow's titlebar:

      titleBar.setStyle("textAlign", "right");
      titleBar.setStyle("verticalAlign", "middle");
      var hg:VGroup = new VGroup();
      var hs:HSlider = new HSlider();
      hs.minimum  = 1;
      hs.maximum = 10;
      hs.stepSize = 1;
      hs.width = 100;
      hs.height = 15;
      hs.liveDragging = "true";
      hs.setStyle("snapInterval", "1");
      hs.setStyle("tickInterval", "1");
      hs.setStyle("labels", "[1, 10]");
      hs.setStyle("allowTrackClick", "true");
      hg.addElement(hs);
      hg.validateNow();
      titleBar.addChild(hg);
      titleBar.validateNow();     
      

      The Text is shown on the right, but the slider is in the left upper corner while I want it to be vertically in the middle.

      Any idea?

       

      Thanks