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
J# version:
Code:
   Timer tmr = new Timer();
   boolean bAdd = false;
   public static void main(String[] args)
   {
      Application.Run(new Form1());
   }
   private void Form1_Load (Object sender, System.EventArgs e)
   {
      tmr.set_Interval(100);
      this.tmr.add_Tick( new System.EventHandler(this.tmr_Tick) );
      tmr.Start();
   }
   private void tmr_Tick(Object sender, System.EventArgs e)
   {
      double d = this.get_Opacity();
      if (bAdd == false)
      {
         this.set_Opacity(d -= 0.01);
         if (this.get_Opacity() < 0.01)
         {
            bAdd = true;
         }
      }
      else
      {
         this.set_Opacity(d += 0.01);
         if (this.get_Opacity() > 0.99)
         {
            bAdd = false;
         }
      }
   }

-/Meka][Meka