Exemple #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);
	}
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);
}