81364c9d82
http://insightfactory.tumblr.com/image/142366356207 * Make the color box a rectangle with proportions of golden ratio. * Override GetContentSize() to make menu item area larger. * Label should never truncate since I make sure there is enough room. * Draw the label using BMenuItem parent class * Carefully adjust the spacing so that there is an attractive amount of padding between the checkmark and color box and the color box and label. Add _AddMenu method to BMenuField that adds BColorMenuItem as its base menu item. This shows the BColorMenuItem in the closed state. Create BPrivate::MenuItemPrivate Add a SetSubmenu() method to MenuItemPrivate that gives you the ability to add a submenu after creating the object. This method should be public Skip disabled items Color gets updated even if you select an item in a submenu |
||
---|---|---|
.. | ||
AboutWindow.h | ||
AbstractSpinner.h | ||
BitmapPrivate.h | ||
BMCPrivate.h | ||
clipping.h | ||
ColorConversion.h | ||
ColorMenuItem.h | ||
ColumnListView.h | ||
ColumnTypes.h | ||
DecimalSpinner.h | ||
DecoratorPrivate.h | ||
DecorInfo.h | ||
DefaultColors.h | ||
DirectWindowPrivate.h | ||
DraggerPrivate.h | ||
FontPrivate.h | ||
Icon.h | ||
input_globals.h | ||
InterfacePrivate.h | ||
MenuItemPrivate.h | ||
MenuPrivate.h | ||
MenuWindow.h | ||
Palette.h | ||
PictureDataWriter.h | ||
PicturePlayer.h | ||
PicturePrivate.h | ||
PictureProtocol.h | ||
PrivateScreen.h | ||
RegionSupport.h | ||
ShapePrivate.h | ||
Spinner.h | ||
StackAndTilePrivate.h | ||
TabViewPrivate.h | ||
TextViewSupportBuffer.h | ||
ToolTip.h | ||
ToolTipManager.h | ||
ToolTipWindow.h | ||
truncate_string.h | ||
utf8_functions.h | ||
ViewPort.h | ||
ViewPrivate.h | ||
WidthBuffer.h | ||
WindowInfo.h | ||
WindowPrivate.h | ||
WindowStack.h | ||
ZombieReplicantView.h |