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

How do invoke a Tk button to a procedure in C.

Status
Not open for further replies.

KumarSree

Programmer
Mar 16, 2003
5
IN
Hello

I have written a program in C using MS VC++,to which
i have added extensions of Tcl/tk.I am able to get
a Tcl interpreter and also a widget on which i am able to place buttons.

But the problem i facing is how do i invoke a procedure
by pressing a button.Suppose i have written a command
say cube of number.
I am able to get it run using the tcl interpreter,but
i want to do the same by just pressing a button after
giving the required input.
Hope u understood my problem,sorry the message was long.

Could u give a example for me .
maybe a small program .
Thank u.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top