Add TabFrame window property.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-08-10 16:12:12 +00:00
parent bce831ef4a
commit a57dddca06

View File

@ -172,6 +172,11 @@ static property_info sWindowPropInfo[] = {
"Minimize", { B_GET_PROPERTY, B_SET_PROPERTY },
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_BOOL_TYPE }
},
{
"TabFrame", { B_GET_PROPERTY },
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_RECT_TYPE }
},
{}
};
@ -830,6 +835,18 @@ BWindow::MessageReceived(BMessage* msg)
}
}
break;
case 12:
if (msg->what == B_GET_PROPERTY) {
BMessage settings;
if (GetDecoratorSettings(&settings) == B_OK) {
BRect frame;
if(settings.FindRect("tab frame", &frame) == B_OK) {
replyMsg.AddRect("result", frame);
handled = true;
}
}
}
break;
default:
return BLooper::MessageReceived(msg);
}