예제 #1
0
//__________________________________________________________________
void		_HYPullDown::EnableItem	 (long theItem, bool toggle)
{
	if ((theItem>=0)&&(theItem<menuSelections.lLength))
	{
		_EnableItem (theItem,toggle);
	}
}
예제 #2
0
/*
================
rvRollupPanel::EnableAllItems

enable/disable all items in the panel
================
*/
void rvRollupPanel::EnableAllItems(bool enable)
{
	int i;

	for (i=0; i < mItems.Num(); i++) {
		_EnableItem(mItems[i], enable);
	}

	RecallLayout();
}
예제 #3
0
/*
================
rvRollupPanel::EnableItem

enable/disable the item at the given index
================
*/
void rvRollupPanel::EnableItem(int index, bool enable)
{
	// safety check
	if (index >= mItems.Num() || index < 0) {
		return;
	}

	_EnableItem(mItems[index], enable);
	RecallLayout();
}