Description
This simple Tk widget is a place for a complex GUI to display one-line
messages (typically on the status of the task being controlled by the
GUI) and simultaneously log those messages to the AIPS++ logger via
the note function.
The messageline widget is in many ways just like an entry widget.
The messageline widget supports these entry widget events: background,
bind, borderwidth, exportselection, font, foreground,
justify, relief, view, and width. These events are all forwarded
directly to the underlying entry widget.
In addition, the following three events control the displayed text:
- post
- This is what you use to display a message and send it off
to the logger. It takes a single argument, the message.
- postnoforward
- Use this to display a message which should not be logged. It takes a single argument, the message.
- clear
- This clears the message.
All events emitted by the underlying entry widget are re-emitted by
this widget. These events will be any events due to binds set through
the bind event plus the xscroll event. The xscroll event, along with the
view event, allows a horizontal scrollbar to be associated with this widget
just as you would the entry widget.
The widget can be destroyed using the done function.