Overview of Item Types

Panel Items

Panel items are widgets that are used to group a collection of items. They are similar to groups, except they have a background color, and they are fixed size. Panels are created with widget commands of the following form:

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

Panels 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 panels are created, they automatically get the tag "Panel".

Unlike group items, panels 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. Panels have their own coordinate system where (0, 0) specifies the panels lower left corner. Adding items to a panel adds them relative to the panel's coordinate system.

The following options are supported for panels:

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

-fill [23] Specifies fill color

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

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


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility