예제 #1
0
void
RadioButtonGroup::_SelectionChanged()
{
	// send the message
	if (Message()) {
		BMessage message(*Message());
		message.AddPointer("button group", this);
		message.AddPointer("selected button", fSelected);
		message.AddInt32("selected index", SelectedIndex());
		InvokeNotify(&message);
	}
}
예제 #2
0
void LuaDebuggerInterface::toggleEditorSplit(void)
{
    Int32 SelectedIndex(_SplitButton->getSelectionIndex());
    if(SelectedIndex < 0)
    {
        SelectedIndex = 0;
    }
    else
    {
        SelectedIndex = (SelectedIndex + 1) % _SplitButton->getNumItems();
    }
    _SplitButton->setSelectionIndex(SelectedIndex);
}