TABLE OF CONTENTS


TtkButton/TtkCheckButton [ Packages ]

[ Top ] [ TtkButton ] [ Packages ]

FUNCTION

 Provides code for Tk Ttk::CheckButton

SOURCE

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

TtkCheckButton/TtkCheckButton.Ttk_CheckButton [ Types ]

[ Top ] [ TtkCheckButton ] [ 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_CheckButton is new Ttk_Button with private;

TtkCheckButton/TtkCheckButton.Create_(function) [ Subprograms ]

[ Top ] [ TtkCheckButton ] [ Subprograms ]

FUNCTION

 Creates a new Ttk_CheckButton in the specified interpreter.

SOURCE

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

EXAMPLE

   -- Create a new checkbutton with pathname .mybutton and text hello world
   My_Button: constant Ttk_CheckButton := Create(".mybutton", "-text {hello world}");

SEE ALSO

 TtkCheckButton.Create_(procedure)

COMMANDS

 ttk::checkbutton pathName ?options?

HISTORY

 8.6.1 - Added

TtkCheckButton/TtkCheckButton.Create_(procedure) [ Subprograms ]

[ Top ] [ TtkCheckButton ] [ Subprograms ]

FUNCTION

 Creates a new Ttk_CheckButton in the specified interpreter.

SOURCE

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

PARAMETERS

 Widgt    - Ttk_CheckButton 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_CheckButton as parameter Widgt

EXAMPLE

     -- Create checkbutton My_Button with pathname .mybutton and selected state on the current Tcl interpreter
     declare
        My_Button: Ttk_CheckButton;
     begin
        Create(My_Button, ".mybutton", "-state selected");
     end;

SEE ALSO

 TtkCheckButton.Create_(function)

COMMANDS

 ttk::checkbutton pathName ?options?

HISTORY

 8.6.1 - Added

TtkCheckButton/TtkCheckButton.Get_Widget [ Subprograms ]

[ Top ] [ TtkCheckButton ] [ Subprograms ]

FUNCTION

 Get the existing Ttk_CheckButton widget

SOURCE

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

EXAMPLE

     -- Get checkbutton widget with name .mycheckbutton on the current Tcl interpreter
     My_Checkbutton: constant Ttk_CheckButton := Get_Widget(".mycheckbutton");

HISTORY

 8.6.9 - Added