The CewTitleFrame widget draws a rounded-corner rectangle around its single child, and displays its title in the upper-left portion of the rectangle. This widget is similar to CwFrame, and, like CwFrame, does not support any special callbacks. Its purpose is to provide decoration, not interactive behavior.The extended widget is implemented using a CwDrawingArea for the primary widget, with an expose callback to draw the frame and title, and a resize callback to make sure the child always fits inside the frame.CwExtendedComposite subclass: #CewTitleFrametitle: resourceValueborderInset: anIntegerchildInset: anIntegerradius: anIntegerangles: anArraylineSegments: anOrderedCollectionarcOrigins: anArraygc: aCgGCThe following code creates a CewTitleFrame instance with a radio-box child (a CwRowColumn with radioBehaviour set to true). The radio box then creates two CwToggleButton children. This is shown in the diagram at the beginning of this section, on page Example: a composite extended widget.
|