Overview of Item Types

Window Items

Window items are widgets that act like top-level windows within Pad++, but with no window dressing. They are used to group a collection of items. They are similar to frames, except they have no window dressing and no default event handlers. Windows are created with widget commands of the following form:

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

Windows 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 windows are created, they automatically get the tag "Window". Windows have no default event handlers which define their behavior. Windows are basically the essence of a Frame item type without the window dressing and without the event handlers.

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

The following options are supported for windows:

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

-fill [23] Specifies fill color

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

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


Pad++ Reference Manual - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility