Ejemplo n.º 1
0
//__________________________________________________________________
void		_HYPullDown::EnableItem	 (long theItem, bool toggle)
{
	if ((theItem>=0)&&(theItem<menuSelections.lLength))
	{
		_EnableItem (theItem,toggle);
	}
}
Ejemplo n.º 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();
}
Ejemplo n.º 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();
}