TABLE OF CONTENTS
Widgets/Frame [ Packages ]
[ Top ] [ Widgets ] [ Packages ]
FUNCTION
Provides code for manipulate Tk widget Frame
SOURCE
package Tcl.Tk.Ada.Widgets.Frame with SPARK_Mode is pragma Elaborate_Body;
Frame/Frame.Tk_Frame [ 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_Frame is new Tk_Widget with private;
Frame/Frame.Create_(function) [ Subprograms ]
[ Top ] [ Frame ] [ Subprograms ]
FUNCTION
Creates a new Tk_Frame in the specified interpreter.
SOURCE
overriding function Create (pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) return Tk_Frame 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_Frame
EXAMPLE
-- Create a new frame with pathname .myframe My_Frame: constant Tk_Frame := Create(".myframe");
SEE ALSO
Frame.Create_(procedure)
COMMANDS
frame pathName ?options?
HISTORY
8.6.1 - Moved from Tcl.Tk.Ada.Widgets
Frame/Frame.Create_(procedure) [ Subprograms ]
[ Top ] [ Frame ] [ Subprograms ]
FUNCTION
Creates a new Tk_Frame in the specified interpreter.
SOURCE
overriding procedure Create (Widgt: out Tk_Frame; pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) with Global => null;
PARAMETERS
Widgt - Tk_Frame 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_Frame as parameter Widgt
EXAMPLE
-- Create frame My_Frame with pathname .myframe and with black backgroud on the current Tcl interpreter declare My_Frame: Tk_Frame; begin Create(My_Frame, ".myframe", "-background black"); end;
SEE ALSO
Frame.Create_(function)
COMMANDS
frame pathName ?options?
HISTORY
8.6.1 - Moved from Tcl.Tk.Ada.Widgets
Frame/Frame.Get_Widget [ Subprograms ]
[ Top ] [ Frame ] [ Subprograms ]
FUNCTION
Get the existing Tk_Frame widget
SOURCE
overriding function Get_Widget (pathName: in String; Interp: in Tcl_Interp := Get_Context) return Tk_Frame 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_Frame widget
EXAMPLE
-- Get frame widget with name .myframe on the current Tcl interpreter My_Frame: constant Tk_Frame := Get_Widget(".myframe");
HISTORY
8.6.9 - Added