Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: scrolltext - Constructor Up: widgets - Module Previous: scrolllistbox.seeoninsert - Function


scrolltext - Tool



Package display
Module widgets


Postscript file available

A Tk text widget with optional scrollbars.

include "scrolltext.g"

Constructors
scrolltext Construct a scrolltext
Functions
done Destroy ourselves
hscrollbar Turn on or off the horizontal scrollbar
text Return the underlying text widget agent
vscrollbar Turn on or off the vertical scrollbar



Description

The scrolltext widget is a text widget with optional associated horizontal and vertical scrollbars. It has very nearly the same interface as the standard text widget.

The scrolltext widget supports all text widget events.

All events which are emitted by the underlying text are forwarded and will be seen to be emitted by the scrolltext.

Direct access to the underlying text is provided by the text function. This is necessary in order to support popup help on scrolltexts. Popuphelp uses the tlead argument in constructing the outframe. The value of that argument needs to be one of the underlying widgets hence the need to return a reference to the listbox used in scrolltext. Care should be taken in using this as it allows the user to destroy the underlying text widget.

Note that most of the functions listed here are actually events. These include hscrollbar, scrolltext, and vscrollbar. In addition to these events, any valid text widget event can be sent to the scrolltext.



Example
include 'scrolltext.g'   
f := frame()
slb := scrolltext(f)
slb->append('\none \ntwo \nthree')
# you decide you don't want the horizontal scrollbar
slb->hscrollbar(F)
# you decide you don't want the widget to always show the end




next up previous contents index
Next: scrolltext - Constructor Up: widgets - Module Previous: scrolllistbox.seeoninsert - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15