How to deal with the default tab in ControlP5

edited October 2014 in Library Questions

I've created an array of Tab objects with ControlP5 1.5.2 and have instantiated tab[0] with the title 'Motion', but when I run my program there are TWO tabs one named 'Default' and the one I created 'Motion'. How do I deal with that default tab? can I remove it? Is it possible to rename it? Thanks.

Answers

  • All of the above. The easiest is to just .hide() it.

  • Yes, but I can't get to it. The tab's label reads as "DEFAULT" but guiTab[0] is labelled as "MOTION". If I have an array of Tab then how do I reference that default tab in order to .hide() it?

  • cp5.getTab("default").setLabel("MOTION");

    I'm not sure if you can remove the default tab but this is how you rename it to MOTION.

  • I'm tired with messing with it, so I just used .setPositionOfTabs() to move it off the Control Window completely.

Sign In or Register to comment.