Overview of Item Types

Frame Items

Frame items are widgets that act like top-level windows within Pad++. They are used to group a collection of items. They are similar to panels, except they window dressing that is used to manipulate the frame. Frames are created with widget commands of the following form:

pathName create frame [[x1 y1 x2 y2] option value option value ...]

Frames are one of several widgets that are designed to mirror the functionality and usage of the standard widgets in Java's Abstract Windowing Toolkit (AWT). When frames are created, they automatically get the tag "Frame". Frames have default event handlers which define their behavior. These event handlers are defined on the tag "Frame" for the "Run" event mode. See the section on Default Bindings for more details about the event bindings.

Unlike group items, frames do not set their size based on their contents. Rather, they are fixed size as specified by the command line coordinates, or by the -width [68] and -height [26] itemconfigure options. Frames have their own coordinate system where (0, 0) specifies the panels lower left corner. Adding items to a frame adds them relative to the frame's coordinate system.

The frame window dressing gives a pseudo-3D titlebar and border which can be used to move and resize the frame.

The following options are supported for frames:

-divisible [16] True if events go through the frame to its members

-fill [23] Specifies fill color

-members [38] The list of members of the frame

-menubar [40] Menubar associated with a frame

Also, see the addgroupmember [2] and removegroupmember [72] commands that can be used to add and remove items from the frame.


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility