---
name: "gk_popup"
section: "3gk"
platform: "linux"
package: "groupkit"
version: "3.2-1"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/gk_popup"
---

# gk\_popup(3gk)

Display a window with users name.

## NAME

gk\_popup - Display a window with users name.

## SYNOPSIS

- **gk\_popup** *pathname user local which*

  ## DESCRIPTION

This widget was not constructed with the class builder.  Therefore, it is not a full Tk widget and is very limited in scope.  However, it will pop-up a menu with a particular users name in it.  This is useful to use when you need to let users know what portions of a display belong to what users.  Intended use is with a *mouse* *button*, the menu will be displayed at the position the *mouse* *button* was pressed..

## WIDGET COMMAND

The *gk\_popup command does not creates a new Tcl command whose name* *is pathname*, therefore, no  commands may be used to invoke various operations on the widget.

The various arguments given to the command are as follows:

- **pathname**

  The pathname refers to the widget that the mouse events are to be bound too.  In other words the canvas, text, label or any other widget where the event will occur.

- **user**

  The user number of the particular user that is to be associated with the particular location.

- **local**

  The user number of the local user, to find this you can use the  *userprefs* environment.

- **which**

  This refers to which type of binding system is to be used.  Valid values are *canvas* and *text*.  *Canvas* causes binding of the form *pathname bind tagname event script*. *Text* causes binding of the form *pathname tag bind tagname event script* .

## DEFAULT BINDINGS

Pressing mouse button one (left button) causes the menu to pop-up. Releasing mouse button one causes the menu to disappear.

## NOTE

These widget probably will change in the near future, it will become a full Tk widget.

## AUTHOR

Shannon Jaeger (jaeger@cpsc.ucalgary.ca)
