Hi,
I have built a graphical interface using tk. Below is my problem.
I have a C++ function to output different strings. I would like them to appear in the interface. Rite now, I only know how to output one string.
I use
string a;
sprintf(buffer, ".c1 configure -text %s", a.c_str());
Tcl_Eval(globalinterp,buffer);
in my tk file, i have
label .word -text "The word is: "
label .c1 -text ""
how can i modify this to satisy multi string in the screen?
thx
I have built a graphical interface using tk. Below is my problem.
I have a C++ function to output different strings. I would like them to appear in the interface. Rite now, I only know how to output one string.
I use
string a;
sprintf(buffer, ".c1 configure -text %s", a.c_str());
Tcl_Eval(globalinterp,buffer);
in my tk file, i have
label .word -text "The word is: "
label .c1 -text ""
how can i modify this to satisy multi string in the screen?
thx