TABLE OF CONTENTS
- 1. Widgets/ListBox
- 1.1. ListBox/ListBox.Tk_ListBox
- 1.2. ListBox/ListBox.Activate
- 1.3. ListBox/ListBox.BBox
- 1.4. ListBox/ListBox.Create_(function)
- 1.5. ListBox/ListBox.Create_(procedure)
- 1.6. ListBox/ListBox.CurSelection
- 1.7. ListBox/ListBox.Delete
- 1.8. ListBox/ListBox.Get
- 1.9. ListBox/ListBox.Get_Widget
- 1.10. ListBox/ListBox.Index
- 1.11. ListBox/ListBox.Insert
- 1.12. ListBox/ListBox.Item_Cget
- 1.13. ListBox/ListBox.Item_Configure_(function)
- 1.14. ListBox/ListBox.Item_Configure_(procedure)
- 1.15. ListBox/ListBox.Nearest
- 1.16. ListBox/ListBox.Scan_DragTo
- 1.17. ListBox/ListBox.Scan_Mark
- 1.18. ListBox/ListBox.See
- 1.19. ListBox/ListBox.Selection_Anchor
- 1.20. ListBox/ListBox.Selection_Clear
- 1.21. ListBox/ListBox.Selection_Includes
- 1.22. ListBox/ListBox.Selection_Set
- 1.23. ListBox/ListBox.Size
- 1.24. ListBox/ListBox.XView_(function)
- 1.25. ListBox/ListBox.XView_(procedure)
- 1.26. ListBox/ListBox.Xview_Move_To
- 1.27. ListBox/ListBox.Xview_Scroll
- 1.28. ListBox/ListBox.YView_(function)
- 1.29. ListBox/ListBox.YView_(procedure)
- 1.30. ListBox/ListBox.Yview_Move_To
- 1.31. ListBox/ListBox.Yview_Scroll
Widgets/ListBox [ Packages ]
[ Top ] [ Widgets ] [ Packages ]
FUNCTION
Provides code for manipulate Tk widget ListBox
SOURCE
package Tcl.Tk.Ada.Widgets.ListBox with SPARK_Mode is pragma Elaborate_Body;
ListBox/ListBox.Tk_ListBox [ 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_ListBox is new Tk_Widget with private;
ListBox/ListBox.Activate [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Set the active element of Tk_ListBox to the selected index.
SOURCE
procedure Activate(ListboxWidget: in Tk_ListBox; Index: in String) with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which element will be set as active Index - Index of element to set as active
EXAMPLE
-- Set second element as active in My_Listbox Activate(My_Listbox, "1");
COMMANDS
ListboxWidget activate index
HISTORY
8.6.4 - Added
ListBox/ListBox.BBox [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get size of bounding box of the selected item text in the selected Tk_ListBox
SOURCE
function BBox (ListboxWidget: in Tk_ListBox; Index: in String) return String with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried Index - Index of item from which bounding box will be taken
RESULT
Four values: x1, y1 - coordinates of starting point of bounding box from top left, x2, y2 - coordinates of ending point from bottom right of bounding box.
EXAMPLE
-- Get the bounding box of My_Listbox listbox for third element Bounding_Box: constant String := BBox(My_Listbox, "2");
COMMANDS
ListboxWidget bbox index
HISTORY
8.6.4 - Added
ListBox/ListBox.Create_(function) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Creates a new Tk_ListBox in the specified interpreter.
SOURCE
overriding function Create (pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) return Tk_ListBox 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_ListBox
EXAMPLE
-- Create a new listbox with pathname .mylistbox My_Listbox: constant Tk_ListBox := Create(".mylistbox");
SEE ALSO
ListBox.Create_(procedure)
COMMANDS
listbox pathName ?options?
HISTORY
8.6.2 - Added
ListBox/ListBox.Create_(procedure) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Creates a new Tk_ListBox in the specified interpreter.
SOURCE
overriding procedure Create (Widgt: out Tk_ListBox; pathName: in String; options: in String := ""; Interp: in Tcl_Interp := Null_Interp) with Global => null;
PARAMETERS
Widgt - Tk_ListBox 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_ListBox as parameter Widgt
EXAMPLE
-- Create listbox My_Listbox with pathname .mylistbox and with black background on the current Tcl interpreter declare My_Listbox: Tk_Listbox; begin Create(My_Listbox, ".mylistbox", "-background black"); end;
SEE ALSO
ListBox.Create_(function)
COMMANDS
listbox pathName ?options?
HISTORY
8.6.2 - Added
ListBox/ListBox.CurSelection [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get the current selected items in the selected Tk_ListBox
SOURCE
function CurSelection(ListboxWidget: in Tk_ListBox) return String;
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for selection
RESULT
List of numerical indices of all of the elements in ListboxWidget that are currently selected or {} if no elements selected.
EXAMPLE
-- Get the current seelction in My_Listbox listbox Selection: constant String := CurSelection(My_Listbox);
COMMANDS
ListboxWidget curselection
HISTORY
8.6.4 - Added
ListBox/ListBox.Delete [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Delete the selected elements from the selected Tk_ListBox
SOURCE
procedure Delete (ListboxWidget: in Tk_ListBox; First: in String; Last: in String := "") with Pre'Class => First /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which elements will be deleted First - Index of first element to delete Last - Index of last element to delete. If empty, only one element will be deleted. Default value is empty
EXAMPLE
-- Delete second item from My_Listbox listbox Delete(My_Listbox, "1");
COMMANDS
ListboxWidget delete first ?last?
HISTORY
8.6.4 - Added
ListBox/ListBox.Get [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get the content of the selected elements in the selected Tk_ListBox
SOURCE
function Get (ListboxWidget: in Tk_ListBox; First: in String; Last: in String := "") return String with Pre'Class => First /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for elements First - Index of first element to get Last - Index of last element to get. Default value is empty
RESULT
If Last is empty, return only one element, marked by First argument. If both are present, return list of elements from First to Last. If no elements are in range, return {}
EXAMPLE
-- Get the content of the second and third element in My_Listbox listbox Elements: constant String := Get(My_Listbox, "1", "2");
COMMANDS
ListboxWidget get first ?last?
HISTORY
8.6.4 - Added
ListBox/ListBox.Get_Widget [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get the existing Tk_ListBox widget
SOURCE
overriding function Get_Widget (pathName: in String; Interp: in Tcl_Interp := Get_Context) return Tk_ListBox 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_ListBox widget
EXAMPLE
-- Get listbox widget with name .mylist on the current Tcl interpreter My_ListBox: constant Tk_ListBox := Get_Widget(".mylist");
HISTORY
8.6.9 - Added
ListBox/ListBox.Index [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get the index for the selected element in the selected Tk_ListBox
SOURCE
function Index (ListboxWidget: in Tk_ListBox; Index: in String) return String with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for index Index - Index of the element to get
RESULT
Numerical index of the selected element. If Index is set to "end", return count of numbers of the elements in the ListboxWidget
EXAMPLE
-- Get the index of the active element in My_Listbox listbox ActiveIndex: constant String := Index(My_Listbox, "active");
COMMANDS
ListboxWidget index index
HISTORY
8.6.4 - Added
ListBox/ListBox.Insert [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Insert zero or more elements to the selected Tk_ListBox
SOURCE
procedure Insert (ListboxWidget: in Tk_ListBox; Index: in String; Elements: in String := "") with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox to which elements will be added Index - Index in ListboxWidget where add the elements Elements - Elements to add. Default value is empty
EXAMPLE
-- Insert elements one and two elements at the end of the My_Listbox listbox Insert(My_Listbox, "end", "one two");
COMMANDS
ListboxWidget insert index ?elements?
HISTORY
8.6.4 - Added
ListBox/ListBox.Item_Cget [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get the selected option of the selected item in the selected Tk_ListBox
SOURCE
function Item_Cget (ListboxWidget: in Tk_ListBox; Index, Option: in String) return String with Pre'Class => Index /= "" and Option /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for the option Index - Index of the item in ListboxWidget which will be queried for the option Option - Tk option to get
EXAMPLE
-- Get the background color of the second element in My_Listbox listbox Options := constant String := Item_Cget(My_Listbox, "1", "-background");
COMMANDS
ListboxWidget itemcget index option
HISTORY
8.6.4 - Added
ListBox/ListBox.Item_Configure_(function) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Queries or modifies the configuration options of the selected item
SOURCE
function Item_Configure (ListBoxWidget: in Tk_ListBox; Index: in String; Options: in String := "") return String with Pre'Class => Index /= "";
PARAMETERS
ListBoxWidget - Tk_ListBox which will be queried or modified for options Index - Index of the item which will be queried or modified for options Options - Options to modify or get. Can be empty. Default value is empty
RESULT
If Options is empty, return all available options and their values for the selected item. Otherwise, return selected option's value for the selected item
EXAMPLE
-- Get the all options of the last element in the My_Listbox listbox Options: constant String := Item_Configure(My_Listbox, "end");
SEE ALSO
ListBox.Item_Configure_(procedure)
COMMANDS
ListBoxWidget itemconfigure index ?options?
HISTORY
8.6.4 - Added
ListBox/ListBox.Item_Configure_(procedure) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Modifies the configuration options of the selected item
SOURCE
procedure Item_Configure (ListBoxWidget: in Tk_ListBox; Index, Options: in String) with Pre'Class => Index /= "" and Options /= "";
PARAMETERS
ListBoxWidget - Tk_ListBox which will be modified for options Index - Index of the item which options will be modified Options - Options to modify.
EXAMPLE
-- Set the background color of the third item in the My_Listbox listbox to green Item_Configure(My_Listbox, "2", "-background green");
SEE ALSO
ListBox.Item_Configure_(function)
COMMANDS
ListBoxWidget itemconfigure index options
HISTORY
8.6.4 - Added
ListBox/ListBox.Nearest [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get nearest element to the selected point in the selected Tk_ListBox
SOURCE
function Nearest (ListboxWidget: in Tk_ListBox; Y: in String) return String with Pre'Class => Y /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for the item Y - Y coordinate to find the element
RESULT
Index of the nearest to Y visible element
EXAMPLE
-- Get the index of the element at 10px in My_Listbox listbox Index := constant String := Nearest(My_Listbox, "10");
COMMANDS
ListboxWidget nearest y
HISTORY
8.6.4 - Added
ListBox/ListBox.Scan_DragTo [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Computes the difference between its X and Y arguments and the X and Y arguments to the last Scan_Mark procedure for the Tk_ListBox. It then adjusts the view by 10 times the difference in coordinates.
SOURCE
procedure Scan_DragTo(ListboxWidget: in Tk_ListBox; X, Y: in String) with Pre'Class => X /= "" and Y /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which difference will be computed X - X coordinate which difference will be computed Y - Y coordinate which difference will be computed
EXAMPLE
-- Adjust the view of My_Listbox listbox to point (12, 84) Scan_DragTo(My_Listbox, "12", "84");
COMMANDS
ListboxWidget scan dragto x y
HISTORY
8.6.4 - Added
ListBox/ListBox.Scan_Mark [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Sets starting position for scan in the selected Tk_ListBox
SOURCE
procedure Scan_Mark(ListboxWidget: in Tk_ListBox; X, Y: in String) with Pre'Class => X /= "" and Y /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which mark will be set X - X coordinate of the mark to set Y - Y coordinate of the mark to set
EXAMPLE
-- Set the starting point for scan at point (10, 24) in My_Listbox listbox Scan_Mark(My_Listbox, "10", "24");
COMMANDS
ListboxWidget scan mark x y
HISTORY
8.6.4 - Added
ListBox/ListBox.See [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Make the selected element of the selected Tk_ListBox visible. If the element is visible, this procedure do nothing.
SOURCE
procedure See(ListboxWidget: in Tk_ListBox; Index: in String) with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which the selected element will be visible Index - Index of the element to make visible
EXAMPLE
-- Make visible third element in My_Listbox listbox See(My_Listbox, "2");
COMMANDS
ListboxWidget see index
HISTORY
8.6.4 - Added
ListBox/ListBox.Selection_Anchor [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Set the selection anchor to the selected element in the selected Tk_ListBox
SOURCE
procedure Selection_Anchor (ListboxWidget: in Tk_ListBox; Index: in String) with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which anchor will be set Index - Index of the element on which anchor will be set. If item doesn't exists, the anchor will be set to the closest item
EXAMPLE
-- Set the selection anchor to the active element at the My_Listbox listbox Selection_Anchor(My_Listbox, "active");
COMMANDS
ListboxWidget selection anchor index
HISTORY
8.6.4 - Added
ListBox/ListBox.Selection_Clear [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Deselect elements in the Tk_ListBox between First and Last indexes
SOURCE
procedure Selection_Clear (ListboxWidget: in Tk_ListBox; First: in String; Last: in String := "") with Pre'Class => First /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which selection will be removed First - Index of the first element to deselect Last - Index of the last element to deselect. If empty, deselect only one element. Default value is empty
EXAMPLE
-- Deselect first element in My_Listbox listbox Selection_Clear(My_Listbox, "0");
COMMANDS
ListboxWidget selection clear first ?last?
HISTORY
8.6.4 - Added
ListBox/ListBox.Selection_Includes [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Check if the selected element is in the selection in the selected Tk_ListBox
SOURCE
function Selection_Includes (ListboxWidget: in Tk_ListBox; Index: in String) return String with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which the selection will be queried Index - Index of the element to check if is in the selection
RESULT
1 if the selected element is in the selection, otherwise 0
EXAMPLE
-- Check if second element in My_Listbox listbox is selected Is_Selected: constant String := Selection_Includes(My_Listbox, "1");
COMMANDS
ListboxWidget selection includes index
HISTORY
8.6.4 - Added
ListBox/ListBox.Selection_Set [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Add the selected elements to the Tk_ListBox selection
SOURCE
procedure Selection_Set (ListboxWidget: in Tk_ListBox; First: in String; Last: in String := "") with Pre'Class => First /= "";
PARAMETERS
ListboxWidget - Tk_ListBox in which the elements will be added to the selection First - Index of the first element to add Last - Index of the last element to add. If empty, add only one element. Default value is empty
EXAMPLE
-- Select all elements in the My_Listbox listbox Selection_Set(My_Listbox, "0", "end");
COMMANDS
ListboxWidget selection set first ?last?
HISTORY
8.6.4 - Added
ListBox/ListBox.Size [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get amount of the elements in the selected Tk_ListBox
SOURCE
function Size(ListboxWidget: in Tk_ListBox) return String;
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for the elements
RESULT
Amount of the elements in the ListboxWidget
EXAMPLE
-- Get the amount of the elements in the My_Listbox listbox Elements: constant String := Size(My_Listbox);
COMMANDS
ListboxWidget size
HISTORY
8.6.4 - Added
ListBox/ListBox.XView_(function) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get which horizontal fraction of the Tk_ListBox is visible
SOURCE
function XView(ListboxWidget: in Tk_ListBox) return String;
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for visibility
RESULT
Pair of elements: first element is the start of horizontal fraction of the ListboxWidget which is visible, second is the end of horizontal fraction of the ListboxWidget which is visible.
EXAMPLE
-- Get the horizontal fraction of the My_Listbox listbox Horizontal_Fraction: constant String := XView(My_Listbox);
SEE ALSO
ListBox.YView_(function), ListBox.XView_(procedure), ListBox.YView_(procedure)
COMMANDS
ListboxWidget xview
HISTORY
8.6.4 - Added
ListBox/ListBox.XView_(procedure) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Adjusts the view in the window so that the character position given by index is displayed at the left edge of the window
SOURCE
procedure XView(ListboxWidget: in Tk_ListBox; Index: in String) with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be adjusted Index - Character index to which ListboxWidget will be adjusted. Character position starts from 0
EXAMPLE
-- Adjust the view in the My_Listbox listbox to second character index XView(My_Listbox, "1");
SEE ALSO
ListBox.YView_(function), ListBox.XView_(function), ListBox.YView_(procedure)
COMMANDS
ListboxWidget xview index
HISTORY
8.6.4 - Added
ListBox/ListBox.Xview_Move_To [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Adjusts the view in the window so that fraction of the total width of the Tk_ListBox is off-screen to the left.
SOURCE
procedure Xview_Move_To (ListboxWidget: in Tk_ListBox; Fraction: in String) with Pre'Class => Fraction /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which view will be adjusted Fraction - Fraction of the ListboxWidget to move. Must be between 0 and 1
EXAMPLE
-- Show the first half of the listbox My_Listbox Xview_Move_To(My_Listbox, "0.5");
SEE ALSO
ListBox.Yview_Move_To
COMMANDS
ListboxWidget xview moveto fraction
HISTORY
8.6.4 - Added
ListBox/ListBox.Xview_Scroll [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Shift the view in the window on left or right according to Number and What.
SOURCE
procedure Xview_Scroll (ListboxWidget: in Tk_ListBox; Number, What: in String) with Pre'Class => Number /= "" and (What = "units" or What = "pages");
PARAMETERS
ListboxWidget - Tk_ListBox which view will be shifted Number - The amount of What to shift the ListboxWidget What - Type of amount to move. Can be "units" or "pages"
EXAMPLE
-- Move the view in the My_Listbox listbox by 10 units to right Xview_Scroll(My_Listbox, "10", "units");
SEE ALSO
ListBox.Yview_Scroll
COMMANDS
ListboxWidget xview scroll number what
HISTORY
8.6.4 - Added
ListBox/ListBox.YView_(function) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Get which vertical fraction of the Tk_ListBox is visible
SOURCE
function YView(ListboxWidget: in Tk_ListBox) return String;
PARAMETERS
ListboxWidget - Tk_ListBox which will be queried for visibility
RESULT
Pair of elements: first element is the start of vertical fraction of the ListboxWidget which is visible, second is the end of vertical fraction of the ListboxWidget which is visible.
EXAMPLE
-- Get the vertical fraction of the My_Listbox listbox Vertical_Fraction: constant String := YView(My_Listbox);
SEE ALSO
ListBox.YView_(procedure), ListBox.XView_(function), ListBox.XView_(procedure)
COMMANDS
ListboxWidget yview
HISTORY
8.6.4 - Added
ListBox/ListBox.YView_(procedure) [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Adjusts the view in the window so that the element given by index is displayed at the top edge of the window
SOURCE
procedure YView(ListboxWidget: in Tk_ListBox; Index: in String) with Pre'Class => Index /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which will be adjusted Index - Element index to which ListboxWidget will be adjusted. Element position starts from 0
EXAMPLE
-- Adjust the view in the My_Listbox listbox to show the first element YView(My_Listbox, "0");
SEE ALSO
ListBox.XView_(procedure), ListBox.XView_(function), ListBox.YView_(procedure)
COMMANDS
ListboxWidget yview index
HISTORY
8.6.4 - Added
ListBox/ListBox.Yview_Move_To [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Adjusts the view in the window so that fraction of the total height of the Tk_ListBox is off-screen to the top.
SOURCE
procedure Yview_Move_To (ListboxWidget: in Tk_ListBox; Fraction: in String) with Pre'Class => Fraction /= "";
PARAMETERS
ListboxWidget - Tk_ListBox which view will be adjusted Fraction - Fraction of the ListboxWidget to move. Must be between 0 and 1
EXAMPLE
-- Show the first half of the listbox My_Listbox Yview_Move_To(My_Listbox, "0.5");
SEE ALSO
ListBox.Xview_Move_To
COMMANDS
ListboxWidget yview moveto fraction
HISTORY
8.6.4 - Added
ListBox/ListBox.Yview_Scroll [ Subprograms ]
[ Top ] [ ListBox ] [ Subprograms ]
FUNCTION
Shift the view in the window on up or down according to Number and What.
SOURCE
procedure Yview_Scroll (ListboxWidget: in Tk_ListBox; Number, What: in String) with Pre'Class => Number /= "" and (What = "units" or What = "pages");
PARAMETERS
ListboxWidget - Tk_ListBox which view will be shifted Number - The amount of What to shift the ListboxWidget What - Type of amount to move. Can be "units" or "pages"
EXAMPLE
-- Move the view in the My_Listbox listbox by 10 units to top Yview_Scroll(My_Listbox, "-10", "units");
SEE ALSO
ListBox.Xview_Scroll
COMMANDS
ListboxWidget yview scroll number what
HISTORY
8.6.4 - Added