Query: tk_ownselection
OS: opensolaris
Section: 3tk
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Tk_OwnSelection(3TK) Tk Library Procedures Tk_OwnSelection(3TK) __________________________________________________________________________________________________________________________________________________NAMETk_OwnSelection - make a window the owner of the primary selectionSYNOPSIS#include <tk.h> Tk_OwnSelection(tkwin, selection, proc, clientData)ARGUMENTSTk_Window tkwin (in) Window that is to become new selection owner. Atom selection (in) The name of the selection to be owned, such as XA_PRIMARY. Tk_LostSelProc *proc (in) Procedure to invoke when tkwin loses selection ownership later. ClientData clientData (in) Arbitrary one-word value to pass to proc. _________________________________________________________________DESCRIPTIONTk_OwnSelection arranges for tkwin to become the new owner of the selection specified by the atom selection. After this call completes, future requests for the selection will be directed to handlers created for tkwin using Tk_CreateSelHandler. When tkwin eventually loses the selection ownership, proc will be invoked so that the window can clean itself up (e.g. by unhighlighting the selection). Proc should have arguments and result that match the type Tk_LostSelProc: typedef void Tk_LostSelProc(ClientData clientData); The clientData parameter to proc is a copy of the clientData argument given to Tk_OwnSelection, and is usually a pointer to a data struc- ture containing application-specific information about tkwin.KEYWORDSown, selection ownerATTRIBUTESSee attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+NOTESSource for Tk is available on http://opensolaris.org. Tk 4.0 Tk_OwnSelection(3TK)
Related Man Pages |
---|
tk_createselhandler(3) - centos |
tk_createselhandler(3) - mojave |
tk_deleteselhandler(3) - suse |
tk_createeventhandler(3tk) - opensolaris |
tk_createselhandler(3) - redhat |
Similar Topics in the Unix Linux Community |
---|
A selection menu in a shell script |
Php assign selection to a variable |