Esempio n. 1
0
	void Menu::_AddSeparatorItem(const ValueList& args, SharedValue result)
	{
		UIBinding* binding = UIBinding::GetInstance();
		AutoMenuItem newItem = binding->__CreateSeparatorMenuItem(args);
		this->AppendItem(newItem);
		result->SetObject(newItem);
	}
Esempio n. 2
0
void MenuItem::_AddSeparatorItem(const ValueList& args, KValueRef result)
{
    UIBinding* binding = UIBinding::GetInstance();
    AutoMenuItem newItem = binding->__CreateSeparatorMenuItem(args);
    this->EnsureHasSubmenu();
    this->submenu->AppendItem(newItem);

    result->SetObject(newItem);
}