Tcl8.6.7/Tk8.6.7 Documentation > Tk C API, version 8.6.7 > SetAppName
Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API
const char *
- Tk_Window tkwin (in)
- Token for window in application. Used only to select a particular application.
- const char *name (in)
- Name under which to register the application.
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_Init, so applications do not normally need to call it explicitly.
The command tk appname provides Tcl-level access to the functionality of Tk_SetAppName.application, name, register, send command
Copyright © 1994-1997 Sun Microsystems, Inc.