Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

ControlP5 : How to add callbacklistener on a tab

$
0
0

Hello,

I made a complex IU where tabs may cover some controller. I want the priority to be given to the table button. But even if the tab is drawn above, i click on the button in the background.

I tried a function like myTab.onEnter(toFront);

With the callback listener toFront is simply

CallbackListener toFront = new CallbackListener() {
      public void controlEvent(CallbackEvent theEvent) {
        theEvent.getController().bringToFront();
      }
    };

but this option works only with controller object...

Any tips ?


Viewing all articles
Browse latest Browse all 2896

Trending Articles