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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

menu dialogs

Status
Not open for further replies.

gregoryYES

Programmer
Jun 7, 2001
2
US
I have been building a menu in the C++ builder 5. I want to assign a menu's functionality to an existing dialog (e.g. File->New, I want the new file dialog to come up that has already been written from either borland or MSVC). I can't figure out how to assign the onclick command for the new file button to the existing dialg.

I also have been having trouble using the onclick function of a button to bring up a frame I have created.

Thank you,

Greg
 
Greetinx!

It may be so....
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int i = Form2->ShowModal();
...
}


Happy programming!))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top