Cd to "next" subpad

is there a possibility to change to the “next” subpad? I.e. if i have a pad with e.g. 4 subpads, is there a command like TPad::cdnext(), or TPad::cd(TPad::NEXT) that can cd from the active subpad to the next, or at least a function that returns the number of the currently choosen subpad (so that a TPad::(current_subpad+1) is possible)?
Cheers, J.

You can do:

int cur = gPad->GetNumber();


thank you :slight_smile: