AuthorMessage
Meka][Meka
Unstopable
Posts: 700

regardless of cpu, here is some starting code for making a app fader, might come in handy for someone
managed c++ version:
Code:
      Timer * tmr;
      bool bAdd;
   private: System::Void Form1_Load(System::Object *  sender, System::EventArgs *  e)
          {
             this->bAdd = false;
             this->tmr = new Timer();
             this->tmr->Interval = 100;
             this->tmr->Tick += new System::EventHandler(this, tmr_Tick);
             this->tmr->Start();
          }
   private: System::Void tmr_Tick(System::Object *  sender, System::EventArgs *  e)
          {
            if (bAdd == false){
               this->Opacity -= 0.01;
               if (this->Opacity < 0.01){
                  bAdd = true;
               }
            }
            else
            {
               this->Opacity += 0.01;
               if (this->Opacity > 0.99){
                  bAdd = false;
               }
            }
          }

-/Meka][Meka