#include <tk.h> char * Tk_SetAppName(tkwin, name)
If the application already has a name when Tk_SetAppName is called, then the new name replaces the old name.
Tk_SetAppName also adds a send command to the application's interpreter, which can be used to send commands from this application to others on any of the displays where the application has windows.
The application's name registration persists until the interpreter is deleted or the send command is deleted from interp, at which point the name is automatically unregistered and the application becomes inaccessible via send. The application can be made accessible again by calling Tk_SetAppName.
Tk_SetAppName is called automatically by Tk_CreateMainWindow, so applications don't normally need to call it explicitly.
The command tk appname provides Tcl-level access to the functionality of Tk_SetAppName.
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.