View Single Post
Old 02-28-2008, 02:26 AM   #24
The Missing Link
Professional Lurker
 
The Missing Link's Avatar
 
Join Date: Dec 2000
Location: New Hyrule, Washington, US
Gender: Male
Posts: 15,752
Thanks: 96
Thanked 317 Times in 215 Posts
Points: 16,007.56
Bank: 112,864.19
Total Points: 128,871.75
   
Quote:
Originally Posted by McSARS DOUBLE SARS View Post
setvar tmlnutskicked = 0
setvar jealousy = 1

LOOP

IF $location = "at gdc"
THEN tmlnutskicked = tmlnutskicked + jealousy

RUN LOOP
This probably won't compile, but it should be close. XD

Code:
ref class BestProgramEvar : public System::Windows::Forms::Form {
public:
  BestProgramEvar() : System::Windows::Forms::Form() {
    System::Windows::Forms::Label^ pLabel = gcnew System::Windows::Forms::Label;
    pLabel->Text = "Look @ me!  I'm at GDC!";
    pLabel->Location = System::Drawing::Point(0, 0);
    pLabel->Size = System::Drawing::Size(200, 50);

    System::Windows::Forms::Button^ pButton = gcnew System::Windows::Forms::Button;
    pButton->Text = "I don't wanna hear it anymore, TML!";
    pButton->Location = System::Drawing::Point(0, 50);
    pButton->Size = System::Drawing::Size(200, 50);
    pButton->Click += gcnew System::Windows::Forms::EventHandler(&BestProgramEvar::CloseForm);
    pButton->MouseOver += gcnew System::Windows::Forms::MouseEventHandler(&BestProgramEvar::Haha);

    this->Contents->Add(pLabel);
    this->Contents->Add(pButton);
    this->Size = System::Drawing::Size(200, 100);
    this->Show();
  }

protected:
  ~BestProgramEvar() {}

private:
  void CloseForm(System::Object^, System::EventArgs^) {
    this->Close();
  }

  void Haha(System::Object^, System::Windows::Forms::MouseEventArgs^ pArgs) {
    this->Location = System::Drawing::Point(pArgs->X, pArgs->Y);
    // can't touch the button; sucks to be you!
  }
};

[System::STAThread]
int main(cli::array<System::String^>^)
{
  BestProgramEvar^ pWindow = gcnew BestProgramEvar;
  pWindow->Run();
}

Last edited by The Missing Link; 02-28-2008 at 02:35 AM.
The Missing Link is offline   Reply With Quote
 
Page generated in 0.08644 seconds with 12 queries