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

    // Create a menu item object
    AutoMenuItem newItem = binding->__CreateCheckMenuItem(args);
    this->EnsureHasSubmenu();
    this->submenu->AppendItem(newItem);

    result->SetObject(newItem);
}