mohammed

mohammed


  • Name: [not set]
  • Favorite Languages: [not set]
  • Website: [not set]
  • Location: [not set]
  • About Me: [not set]

Recent Comments

  • Javascript Controls - The Spin Control
    02/03/2009 - 07:00

    hi
    To add disable function,add this to javascript file

      this.SetDisabled = function(boolValue){
            if(boolValue==false){
                    this.SetBackgroundColor('#FFFFFF');
                    this.SetBorderColor('#A5ACB2');
                    this.SetButtonColor('#000000');
                    this.SetFontColor('#000000');
                    this.StartListening();
            }else{
                    this.SetBackgroundColor('#CCCCC');
                    this.SetBorderColor('#AAAAAA');
                    this.SetButtonColor('#AAAAAA');
                    this.SetFontColor('#AAAAAA');
                    this.StopListening();
            }
            _textBox.disabled=boolValue;
      }

    Now you can use this line to disable spinCtrl:

    spinCtrl.SetDisabled(true);