Reference

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 ([email protected])