Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Buttons to another window/process in a program

Status
Not open for further replies.

Ternick

Programmer
Apr 6, 2003
2
US
I'm an Amuter programmer looking to go more into the professional side. The version of C++ that I have is a older version(5.01), and I can't find a help book for it. If anyone knows how I can tell a button to run another part of my program, (i.e. When they click on a button labeled "Make Character", the program runs that part). It would be a great help to me. Thanks


Ternick
 
You need divide yoyur program in modules.

If you want to run another part of your program, you need to have functions that contains the part that you want to run, something like this:
//function
void say_something (AnsiString Text)
{

ShowMessage (Text);
}

//condition to run part what you want
if (ButtonClick)
{
say_something ("Hello world");
}
else
// do another thing


---LastCyborg---


 
We are all "looking to go more into the professional side."

tomcruz.net ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top