GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::LABEL (3)

.ds Aq ’

NAME

Tk::Label - Create and manipulate Label widgets

CONTENTS

SYNOPSIS

$label = $parent-><B>LabelB>(?options?);

STANDARD OPTIONS

<B>-activebackgroundB> <B>-activeforegroundB> <B>-anchorB> <B>-backgroundB> <B>-bitmapB> <B>-borderwidthB> <B>-compoundB> <B>-cursorB> <B>-disabledforegroundB> <B>-fontB> <B>-foregroundB> <B>-highlightbackgroundB> <B>-highlightcolorB> <B>-highlightthicknessB> <B>-imageB> <B>-justifyB> <B>-padxB> <B>-padyB> <B>-reliefB> <B>-takefocusB> <B>-textB> <B>-textvariableB> <B>-underlineB> <B>-wraplengthB>

See Tk::options for details of the standard options.

WIDGET-SPECIFIC OPTIONS

Name:  <B>heightB>
Class: <B>HeightB>
Switch:        <B>-heightB> 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 (i.e. any of the forms acceptable to <B>Tk_GetPixelsB>); 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.
Name:  <B>stateB>
Class: <B>StateB>
Switch:        <B>-stateB> Specifies one of three states for the label: <B>normalB>, <B>activeB>, or <B>disabledB>. In normal state the label is displayed using the <B>foregroundB> and <B>backgroundB> options. In active state the label is displayed using the <B>activeForegroundB> and <B>activeBackgroundB> options. In the disabled state the <B>disabledForegroundB> and <B>backgroundB> options determine how the button is displayed.
Name:  <B>widthB>
Class: <B>WidthB>
Switch:        <B>-widthB> 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 (i.e. any of the forms acceptable to <B>Tk_GetPixelsB>); 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.

DESCRIPTION

The <B>LabelB> method creates a new window (given by the $widget argument) and makes it into a label widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the label such as its colors, font, text, and initial relief. The <B>labelB> command returns its $widget argument. At the time this command is invoked, there must not exist a window named $widget, but $widget’s parent must exist.

A label is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the <B>wrapLengthB> option) and one of the characters may optionally be underlined using the <B>underlineB> option. The label can be manipulated in a few simple ways, such as changing its relief or text, using the commands described below.

WIDGET METHODS

The <B>LabelB> method creates a widget object. This object supports the <B>configureB> and <B>cgetB> methods described in Tk::options which can be used to enquire and modify the options described above. The widget also inherits all the methods provided by the generic Tk::Widget class.

BINDINGS

When a new label is created, it has no default event bindings: labels are not intended to be interactive.

KEYWORDS

label, widget
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LABEL (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.