Using BBox

A BBox is a purely cosmetic and organizational view that draws a labeled border around its (view) children. The border and label are drawn within the BBox's frame rectangle.

The BBox's label can be a string or it can be another view, such as a control. For example, a popup menu might be used as the BBox's label, to let the user select a group of options to view in a preference panel:

box_screen.png

Archived Fields

The Archive() function adds the following fields to its BMessage argument:
FieldType codeMeaning
"_frame" B_RECT_TYPE The BBitmap's bounds rectangle.
"_cspace" B_INT32_TYPE The color_space of the data.
"_view_ok" B_BOOL_TYPE Always true, indicating the BBitmap accepts views (only present in deep copy archives of BBitmaps accepting views).
"_data" B_RAW_TYPE The bitmap data (present only if "_view_ok" not present).
"_continguous" B_BOOL_TYPE Whether the BBitmap requires memory in one contiguous chunk.
If the "_view_ok" field is present, the child views of the BBitmap are additionally archived in the "_views" array of BMessages. See the description of the BView Archived Fields for more information on those fields.
Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.