XtLoseSeleB man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XtLoseSelectionProc()					 XtLoseSelectionProc()

Name
  XtLoseSelectionProc  - interface definition for procedure to notify the
  selection owner it has lost selection ownership.

Synopsis
  typedef void (*XtLoseSelectionProc)(Widget, Atom *);
	 Widget w;
	 Atom *selection;

Inputs
  w	    Specifies the widget that has lost selection ownership.

  selection Specifies the atom that names the selection.

Description
  An XtLoseSelectionProc is optionally registered in a call  to	 XtOwnSe‐
  lection() and is called by the Intrinsics when the widget it was regis‐
  tered with loses the selection because another  widget  or  client  has
  claimed  the	selection.   It	 is  not  called when the selection owner
  relinquishes selection ownership with XtDisownSelection().  This proce‐
  dure	should	take  whatever	action	is  appropriate for the widget or
  application when it loses selection ownership.

  Note that this procedure is not a request to the widget  to  relinquish
  selection ownership; it is called after the widget has already lost the
  selection.

Usage
  Most selection owners (widgets or applications) will	want  to  display
  selected  data highlighted in some way, and so will need to be informed
  when they lose the selection so that they can unhighlight that data.

  An XtLoseSelectionIncrProc is a similar  procedure  type  used  by  the
  Intrinsics incremental selection transfer mechanism.	It takes an addi‐
  tional client_data argument.

Example
  The XtLoseSelectionProc below is from	 the  xcalc  client.   It  simply
  unhighlights the value currently shown in the calculator display.

     /*
      * called when xcalc loses ownership of the selection.
      */
     /*ARGSUSED*/
     void lose(w, selection)
	 Widget	     w;
	 Atom	     *selection;
     {
	 XawToggleUnsetCurrent(LCD);
     }

See Also
  XtDisownSelection(1), XtGetSelectionValue(1), XtGetSelectionValueIncre‐
  mental(1), XtOwnSelection(1),
  XtLoseSelectionIncrProc(2).

Xt - Selections						 XtLoseSelectionProc()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net