2002-09-23 23:01:55 +00:00
|
|
|
#ifndef _MENU_ITEM_H
|
|
|
|
|
#include <MenuItem.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef COLOR_MENU_ITEM_H
|
|
|
|
|
#include "ColorMenuItem.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
ColorMenuItem::ColorMenuItem(const char *label, rgb_color color,BMessage *message)
|
|
|
|
|
:BMenuItem(label, message,0,0){
|
|
|
|
|
fItemColor= color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ColorMenuItem::DrawContent(){
|
|
|
|
|
|
|
|
|
|
BMenu *menu= Menu();
|
2003-08-11 05:34:52 +00:00
|
|
|
rgb_color menuColor = menu->HighColor();
|
2002-09-23 23:01:55 +00:00
|
|
|
menu->SetHighColor(fItemColor);
|
|
|
|
|
BMenuItem::DrawContent();
|
2003-08-11 05:34:52 +00:00
|
|
|
menu->SetHighColor(menuColor);
|
2002-09-23 23:01:55 +00:00
|
|
|
}
|