Term::Stool::PaUser3Contributed Perl DocumenTerm::Stool::Panel(l) NAME Term::Stool::Window - scrollable panel DESCRIPTION This is a scrollable panel, which can contain other wid- gets, and scroll them around. Moving from widget to widget automatically scrolls the panel in an intelligent way. Panels are currently limited to vertical scrolling, and can only contain widgets that are one character high. TODO: remove these restrictions. Term::Stool::Container is the parent of this class. FIELDS topborder This is used to scroll the panel around, in a truely sick abuse of its original purpose. vscrollbar The vertical scrollbar on the right hand side of the panel. Is generally created and set up automatically. withframe This is normally set, and a panel normally has a frame drawn around it. If this is unset, the panel does not, which can be useful for placing panels inside windwos. METHODS init Sets the fields above to reasonable defaults. clear Clear out all contents, except the scroll bar. resize After a resize, make sure that the active element (if any) is still visible. If the panel was made shorter and it was near the bottom, it may not be. display Draws the panel, and any visible widgets inside it. scrollto Pass a widget that is on the panel, and the panel will be positioned to ensure that widget is visible. activate Ensures widgets are visible before displaying them. AUTHOR Joey Hess <joey@kitenet.net> 2001-05-23 perl v5.6.1 Term::Stool::Panel(l)