05-19-2008 03:55 PM
05-19-2008 06:46 PM
05-19-2008 10:30 PM
That's the behavior I expected, but it doesn't seem to work that way. Here's a sample of how I'm trying to advance the index to the next item in the list:
int ItemIndex;
GetCtrlVal(panelHandle, controlHandle, &ItemIndex);
if (++ItemIndex == NUMBER_OF_ITEMS) ItemIndex = 0;
SetCtrlVal(panelHandle, controlHandle, ItemIndex);
Maybe my assumption that the Get/Set functions operate on the index is incorrect?
05-20-2008 09:07 AM
Nevermind!
I switched to GetCtrlIndex and SetCtrlIndex and it works as expected. Maybe next time I should pay more attention to the documentation (duh).