TABLE OF CONTENTS


Widgets/Message [ Packages ]

[ Top ] [ Widgets ] [ Packages ]

FUNCTION

 Provides code for manipulate Tk widget Message

SOURCE

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

Message/Message.Tk_Message [ Types ]

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

Message/Message.Create_(function) [ Subprograms ]

[ Top ] [ Message ] [ Subprograms ]

FUNCTION

 Creates a new Tk_Message in the specified interpreter.

SOURCE

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

EXAMPLE

   -- Create a new message with pathname .mymessage and text hello world
   My_Message: constant Tk_Message := Create(".mymessage", "-text {hello world}");

SEE ALSO

 Message.Create_(procedure)

COMMANDS

 message pathName ?options?

HISTORY

 8.6.1 - Moved from Tcl.Tk.Ada.Widgets

Message/Message.Create_(procedure) [ Subprograms ]

[ Top ] [ Message ] [ Subprograms ]

FUNCTION

 Creates a new Tk_Message in the specified interpreter.

SOURCE

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

PARAMETERS

 Widgt    - Tk_Message 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_Message as parameter Widgt

EXAMPLE

     -- Create message My_Message with pathname .mymessage and text hello world on the current Tcl interpreter
     declare
        My_Message: Tk_Message;
     begin
        Create(My_Message, ".mymessage", "-text {hello world}");
     end;

SEE ALSO

 Message.Create_(function)

COMMANDS

 message pathName ?options?

HISTORY

 8.6.1 - Moved from Tcl.Tk.Ada.Widgets

Message/Message.Get_Widget [ Subprograms ]

[ Top ] [ Message ] [ Subprograms ]

FUNCTION

 Get the existing Tk_Message widget

SOURCE

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

EXAMPLE

     -- Get message widget with name .mymessage on the current Tcl interpreter
     My_Message: constant Tk_Message := Get_Widget(".mymessage");

HISTORY

 8.6.9 - Added