For XP, you have your Window_PartyCommand you can use as a reference for that... I dunno for VX out of my mind right now, but I can remember that being even easier... just look at Window_Selectable, where you should have a column_max variable (in each maker version), which should display commands horizontally if it equals the size of the commands variable.