Manual Pages for UNIX Darwin command on man SetAppName
MyWebUniversity

Manual Pages for UNIX Darwin command on man SetAppName

TkSetAppName(3) Tk Library Procedures TkSetAppName(3)

NAME

TkSetAppName - Set the name of an application for ``send'' commands

SYNOPSIS

##iinncclluuddee <>

CONST char * TTkkSSeettAAppppNNaammee(tkwin, name) AARRGGUUMMEENNTTSS TkWindow tkwin (in) Token for window in application. Used only to select a particular application.

CONST char *name (in) Name under which to register the appli-

cation.

DESCRIPTION

TTkkSSeettAAppppNNaammee associates a name with a given application and records that association on the display containing with the application's main window. After this procedure has been invoked, other applications on the display will be able to use the sseenndd command to invoke operations

in the application. If name is already in use by some other applica-

tion on the display, then a new name will be generated by appending ``

##22'' to name; if this name is also in use, the number will be incre-

mented until an unused name is found. The return value from the proce-

dure is a pointer to the name actually used. If the application already has a name when TTkkSSeettAAppppNNaammee is called, then the new name replaces the old name.

TTkkSSeettAAppppNNaammee also adds a sseenndd command to the application's inter-

preter, 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 sseenndd command is deleted from interp, at which point the

name is automatically unregistered and the application becomes inacces-

sible via sseenndd. The application can be made accessible again by call-

ing TTkkSSeettAAppppNNaammee. TTkkSSeettAAppppNNaammee is called automatically by TTkkIInniitt, so applications don't normally need to call it explicitly.

The command ttkk aappppnnaammee provides Tcl-level access to the functionality

of TTkkSSeettAAppppNNaammee. KKEEYYWWOORRDDSS application, name, register, send command

Tk 4.0 TkSetAppName(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™