Home

SpeakComputers.com | Text-to-Speech Software

Natural sounding TTS voice support | Cepstral TTS voices | Text to MP3 | Natural Readers

Text to Speech Software Text to Speech Voices SpeakComputer Text to Speech Software

C++ Button Control.

The C++ Button control can be used to initiate a function, confirm an entry, compare values and many other actions. The button can be clicked by the use of the mouse or if the button has focus, with the enter key or the space bar. The C++ button control can be disabled and only enabled under certain application conditions or changes.

Namespace: System::Windows::Forms
System.Windows.Forms (in system.windows.forms.dll)

Creating an new C++ Windows forms Button.
Button^ button = gcnew Button;

Assigning a new location for the C++ Windows Forms Button.
button->Location = Point(10,10);

Assigning a text value to the C++ Button control.
button->Text = "Click ME";

Adding a C++ Button control to the form.
Controls->Add(button);

Creating a Click Event for the C++ Button control.
button->Click += gcnew System::EventHandler(this, &Cplus::Form1::button_DoClick);

Responding to the C++ Button Click event.
private: System::Void button_DoClick(System::Object^ sender, System::EventArgs^ e)
{
MessageBox::Show("Button Clicked");
}

C++ Button control Tutorial.
Top of page
Text to Speech Speech synthesis Software TTS Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
About Privacy Policy TTS Resouces
Free Text to Speech software
Free Text to Speech Software