コード例 #1
0
ファイル: HYPullDown.cpp プロジェクト: mdsmith/OCLHYPHY
//__________________________________________________________________
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();
}