NAME
Label - Label widget with state option, dynamic help and drag and drop facilities
CREATION
Label pathName ?option value...?
STANDARD OPTIONS
  -anchor
  -background or -bg
  -bitmap
  -borderwidth or -bd
  -cursor
  -disabledforeground
  -font
  -foreground or -fg
  -highlightbackground
  -highlightcolor
  -highlightthickness
  -image
  -justify
  -padx
  -pady
  -relief
  -takefocus
  -text
  -textvariable
  -wraplength
WIDGET-SPECIFIC OPTIONS
  -dragenabled
  -dragendcmd
  -dragevent
  -draginitcmd
  -dragtype
  -dropcmd
  -dropenabled
  -dropovercmd
  -droptypes
  -focus
  -height
  -helptext
  -helptype
  -helpvar
  -name
  -state
  -underline
  -width
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?
pathName setfocus



DESCRIPTION

The Label widget extends the default Tk label. Options have been added to provide visual effect depending on the state of the Label, DynamicHelp options, and Drag and Drop.




WIDGET-SPECIFIC OPTIONS
-dragenabled
A boolean specifying if drag is enabled.
-dragendcmd
Command associated when drag-end event occurs. See DragSite::register for more informations.
-dragevent
Event associated to the drag. Must be a <ButtonPress-x> event.
-draginitcmd
Label has a command wrapper for drag-init events.
If draginitcmd is empty, the command returns:
IMAGE {copy move} <image name> if an image is displayed.
BITMAP {copy move} <bitmap name> if a bitmap is displayed.
TEXT {copy move} <text> if a text is displayed. Note that if dragtype option is not empty, the tag TEXT is replaced by its value.
If draginitcmd is not empty, the command must be conform to the description of the option draginitcmd in DragSite::register.
-dragtype
Specifies an alternate type for TEXT when dragged object is the text of the label.
-dropcmd
Label has a command wrapper for drop events.
If dropcmd is empty, the command updates the label following the type of the data:
image option is set to empty.
COLOR or FGCOLOR reconfigure the foreground of the Label.
BGCOLOR reconfigure the background of the Label.
IMAGE reconfigure the Label to display the associated image.
BITMAP
TEXT,
or any other tag
reconfigure the Label to display the associated string. image and bitmap options are set to empty.
and returns 1.
If dropcmd is not empty, the command must be conform to the description of the option dropcmd in DropSite::register.
-dropenabled
A boolean specifying if drop is enabled.
-dropovercmd
Label has a command wrapper for drop-over events.
If dropovercmd is empty, Label always accepts the drop if data type is FGCOLOR, COLOR, BGCOLOR, and accepts all other data type only if state is normal.
If dropovercmd is not empty, the command must be conform to the description of the option dropovercmd in DropSite::register.
-droptypes
Specifies a list of accepted dropped object/operation. If empty, default is used:
   {FGCOLOR {copy move} COLOR {copy move} BGCOLOR {copy move}
    TEXT {copy move} BITMAP {copy move} IMAGE {copy move}}
-focus
Specifies a pathname to set the focus for Label::setfocus command.
-height
Specifies a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units, for text it is in lines of text. If this option isn't specified, the label's desired height is computed from the size of the image or bitmap or text being displayed in it.
-helptext
Text for dynamic help. If empty, no help is available for this widget. See also DynamicHelp.
-helptype
Type of dynamic help. Use balloon or variable. See also DynamicHelp.
-helpvar
Variable to use when helptype option is variable. See also DynamicHelp.
-name
Specifies a standard name for the label. If the option *nameName is found in the resources database, then text and underline options are extracted from its value.
-state
Specifies one of two states for the Label: normal or disabled. In normal state the text of the Label is displayed using the foreground option. In disabled state the text of the Label is displayed using the disabledforeground option.
-underline
Specifies the integer index of a character to underline in the label. 0 corresponds to the first character of the text displayed, 1 to the next character, and so on.
The binding <Alt-char> is automatically set on the toplevel of the Label to call Label::setfocus.
-width
Specifies a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units, for text it is in characters. If this option isn't specified, the label's desired width is computed from the size of the image or bitmap or text being displayed in it.


WIDGET COMMAND
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the create command.
pathName configure ?option? ?value option value ...?
Modify the configuration options of the widget. Option may have any of the values accepted by the create command, except those who are read-only.
pathName setfocus
Set the focus on the pathname given by focus option if state is normal.