Files
haiku-beta6/src/apps/stylededit/ColorMenuItem.cpp
T

22 lines
451 B
C++
Raw Normal View History

#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();
menu->SetHighColor(fItemColor);
BMenuItem::DrawContent();
2003-08-11 05:34:52 +00:00
menu->SetHighColor(menuColor);
}