Initial Check in. Coded by Mattias Sundblad.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1135 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#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();
|
||||
menu->SetHighColor(fItemColor);
|
||||
BMenuItem::DrawContent();
|
||||
}
|
||||
Reference in New Issue
Block a user