home *** CD-ROM | disk | FTP | other *** search
Wrap
TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee((((3333TTTTkkkk)))) TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee((((3333TTTTkkkk)))) NNNNAAAAMMMMEEEE Tk_SetAppName - Set the name of an application for ``send'' commands SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>> char * TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee(_t_k_w_i_n, _n_a_m_e) AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS Tk_Window _t_k_w_i_n (in) Token for window in application. Used only to select a particular application. char *_n_a_m_e (in) Name under which to register the application. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee 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 sssseeeennnndddd command to invoke operations in the application. If _n_a_m_e is already in use by some other application on the display, then a new name will be generated by appending `` ####2222'' to _n_a_m_e; if this name is also in use, the number will be incremented until an unused name is found. The return value from the procedure is a pointer to the name actually used. If the application already has a name when TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee is called, then the new name replaces the old name. TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee also adds a sssseeeennnndddd 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 sssseeeennnndddd command is deleted from _i_n_t_e_r_p, at which point the name is automatically unregistered and the application becomes inaccessible via sssseeeennnndddd. The application can be made accessible again by calling TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee. TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee is called automatically by TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww, so applications don't normally need to call it explicitly. The command ttttkkkk aaaappppppppnnnnaaaammmmeeee provides Tcl-level access to the functionality of TTTTkkkk____SSSSeeeettttAAAAppppppppNNNNaaaammmmeeee. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS application, name, register, send command PPPPaaaaggggeeee 1111