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); } }
void LuaDebuggerInterface::toggleEditorSplit(void) { Int32 SelectedIndex(_SplitButton->getSelectionIndex()); if(SelectedIndex < 0) { SelectedIndex = 0; } else { SelectedIndex = (SelectedIndex + 1) % _SplitButton->getNumItems(); } _SplitButton->setSelectionIndex(SelectedIndex); }