TABLE OF CONTENTS


Widgets/TtkLabelFrame [ Packages ]

[ Top ] [ Widgets ] [ Packages ]

FUNCTION

 Provides code for manipulate Tk widget Ttk::LabelFrame

SOURCE

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

TtkLabelFrame/TtkLabelFrame.Ttk_LabelFrame [ Types ]

[ Top ] [ TtkLabelFrame ] [ 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 Ttk_LabelFrame is new Tk_Widget with private;

TtkLabelFrame/TtkLabelFrame.Create_(function) [ Subprograms ]

[ Top ] [ TtkLabelFrame ] [ Subprograms ]

FUNCTION

 Creates a new Ttk_LabelFrame in the specified interpreter.

SOURCE

   overriding function Create
     (pathName: in String; options: in String := "";
      Interp: in Tcl_Interp := Null_Interp) return Ttk_LabelFrame 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 Ttk_LabelFrame

EXAMPLE

   -- Create a new frame with pathname .myframe with label hello world
   My_Frame: constant Ttk_LabelFrame := Create(".myframe", "-text {hello world}");

SEE ALSO

 TtkLabelFrame.Create_(procedure)

COMMANDS

 ttk::labelframe pathName ?options?

HISTORY

 8.6.1 - Added

TtkLabelFrame/TtkLabelFrame.Create_(procedure) [ Subprograms ]

[ Top ] [ TtkLabelFrame ] [ Subprograms ]

FUNCTION

 Creates a new Ttk_LabelFrame in the specified interpreter.

SOURCE

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

PARAMETERS

 Widgt    - Ttk_LabelFrame 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 Ttk_LabelFrame as parameter Widgt

EXAMPLE

     -- Create frame My_Frame with pathname .myframe and with label hello world on the current Tcl interpreter
     declare
        My_Frame: Ttk_LabelFrame;
     begin
        Create(My_Frame, ".myframe", "-text {hello world}");
     end;

SEE ALSO

 TtkLabelFrame.Create_(function)

COMMANDS

 ttk::labelframe pathName ?options?

HISTORY

 8.6.1 - Added

TtkLabelFrame/TtkLabelFrame.Get_Widget [ Subprograms ]

[ Top ] [ TtkLabelFrame ] [ Subprograms ]

FUNCTION

 Get the existing Ttk_Label widget

SOURCE

   overriding function Get_Widget
     (pathName: in String; Interp: in Tcl_Interp := Get_Context)
      return Ttk_LabelFrame 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 Ttk_LabelFrame widget

EXAMPLE

     -- Get frame widget with name .myframe on the current Tcl interpreter
     My_Frame: constant Ttk_LabelFrame := Get_Widget(".myframe");

HISTORY

 8.6.9 - Added