TABLE OF CONTENTS
Widgets/TtkSeparator [ Packages ]
[ Top ] [ Widgets ] [ Packages ]
FUNCTION
Provides code for manipulate Tk widget Ttk::Separator
SOURCE
package Tcl.Tk.Ada.Widgets.TtkSeparator with SPARK_Mode is pragma Elaborate_Body;
TtkSeparator/TtkSeparator.Ttk_Separator [ Types ]
[ Top ] [ TtkSeparator ] [ 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_Separator is new Tk_Widget with private;
TtkSeparator/TtkSeparator.Create_(function) [ Subprograms ]
[ Top ] [ TtkSeparator ] [ Subprograms ]
FUNCTION
Creates a new Ttk_Separator in the specified interpreter.
SOURCE
overriding function Create (pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) return Ttk_Separator 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_Separator
EXAMPLE
-- Create a new horizontal separator with pathname .myseparator My_Separator: constant Ttk_Separator := Create(".myseparator", "-orient horizontal");
SEE ALSO
TtkSeparator.Create_(procedure)
COMMANDS
ttk::separator pathName ?options?
HISTORY
8.6.1 - Added
TtkSeparator/TtkSeparator.Create_(procedure) [ Subprograms ]
[ Top ] [ TtkSeparator ] [ Subprograms ]
FUNCTION
Creates a new Ttk_Separator in the specified interpreter.
SOURCE
overriding procedure Create (Widgt: out Ttk_Separator; pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) with Global => null;
PARAMETERS
Widgt - Ttk_Separator 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_Separator as parameter Widgt
EXAMPLE
-- Create vertical separator My_Separator with pathname .myseparator on the current Tcl interpreter declare My_Separator: Ttk_Separator; begin Create(My_Separator, ".myseparator", "-orient vertical"); end;
SEE ALSO
TtkSeparator.Create_(function)
COMMANDS
ttk::separator pathName ?options?
HISTORY
8.6.1 - Added
TtkSeparator/TtkSeparator.Get_Widget [ Subprograms ]
[ Top ] [ TtkSeparator ] [ Subprograms ]
FUNCTION
Get the existing Ttk_Separator widget
SOURCE
overriding function Get_Widget (pathName: in String; Interp: in Tcl_Interp := Get_Context) return Ttk_Separator 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_Separator widget
EXAMPLE
-- Get separator widget with name .myseparator on the current Tcl interpreter My_Separator: constant Ttk_Separator := Get_Widget(".myseparator");
HISTORY
8.6.9 - Added