TABLE OF CONTENTS


Widgets/Label [ Packages ]

[ Top ] [ Widgets ] [ Packages ]

FUNCTION

 Provides code for manipulate Tk widget Label

SOURCE

package Tcl.Tk.Ada.Widgets.Label with
   SPARK_Mode
is
   pragma Elaborate_Body;

Label/Label.Tk_Label [ Types ]

[ Top ] [ Label ] [ Types ]

FUNCTION

 This is a non-abstract type derived directly from Tk_Widget.
 Each of the derived widgets redefines the Create subprogram
 in order to create the correct type of widget.

SOURCE

   type Tk_Label is new Tk_Widget with private;

Label/Label.Create_(function) [ Subprograms ]

[ Top ] [ Label ] [ Subprograms ]

FUNCTION

 Creates a new Tk_Label in the specified interpreter.

SOURCE

   overriding function Create
     (pathName: in String; options: in String := "";
      Interp: in Tcl_Interp := Null_Interp) return Tk_Label with
      Global => null;

PARAMETERS

 pathName - Tk path (starts with dot) for the widget
 options  - Options which will be passed to the widget. Default value is
            empty
 Interp   - Tcl interpreter to which the widget will be created. If null,
            the widget will be created in the "contextual" interpreter.
            Default value is null.

RESULT

 Newly created Tk_Label

EXAMPLE

   -- Create a new label with pathname .mylabel with text hello world
   My_Label: constant Tk_Label := Create(".mylabel", "-text {hello world}");

SEE ALSO

 Label.Create_(procedure)

COMMANDS

 label pathName ?options?

HISTORY

 8.6.1 - Moved from Tcl.Tk.Ada.Widgets

Label/Label.Create_(procedure) [ Subprograms ]

[ Top ] [ Label ] [ Subprograms ]

FUNCTION

 Creates a new Tk_Label in the specified interpreter.

SOURCE

   overriding procedure Create
     (Widgt: out Tk_Label; pathName: in String; options: in String := "";
      Interp: in Tcl_Interp := Null_Interp) with
      Global => null;

PARAMETERS

 Widgt    - Tk_Label which will be created
 pathName - Tk path (starts with dot) for the widget
 options  - Options which will be passed to the widget. Default value is
            empty
 Interp   - Tcl interpreter to which the widget will be created. If null,
            the widget will be created in the "contextual" interpreter.
            Default value is null.

OUTPUT

 Newly created Tk_Label as parameter Widgt

EXAMPLE

     -- Create label My_Label with pathname .mylabel and with text hello world on the current Tcl interpreter
     declare
        My_Label: Tk_Label;
     begin
        Create(My_Label, ".mylabel", "-text {hello world}");
     end;

SEE ALSO

 Label.Create_(function)

COMMANDS

 label pathName ?options?

HISTORY

 8.6.1 - Moved from Tcl.Tk.Ada.Widgets

Label/Label.Get_Widget [ Subprograms ]

[ Top ] [ Label ] [ Subprograms ]

FUNCTION

 Get the existing Tk_Label widget

SOURCE

   overriding function Get_Widget
     (pathName: in String; Interp: in Tcl_Interp := Get_Context)
      return Tk_Label with
      Global => null;

PARAMETERS

 pathName - Tk path (starts with dot) for the widget
 Interp   - Tcl interpreter on which the widget exists. Can be empty.
            Default value is current Tcl interpreter

RESULT

 Existing Tk_Label widget

EXAMPLE

     -- Get label widget with name .mylabel on the current Tcl interpreter
     My_Label: constant Tk_Label := Get_Widget(".mylabel");

HISTORY

 8.6.9 - Added