Loading...
Logo
Processing Forum
Hello guys, 

I am trying use ControlP5 library to get event handling with gstreamer video library.
I want make my video window in sketch disappear if i click into menu button. the code is something like that ,


void menu() {
  //adding menu list//
  controlP5 = new ControlP5(this);
  l= controlP5.addMultiList("MyList", 680, 150, 100, 12);

  //adding new button to list
  MultiListButton b;
  b = l.add("Menu", 1);


  //adding items to a sublist

  b.add("level11", 11).setLabel("Video disappear");
  
}

public void level11(int theValue) {
 
  myMovie.setVisible(true); ///something like that would be great to use
  
}


Any idea ??

Replies(1)

Moved to Contributed Library Questions.

First, read this: https://forum.processing.org/topic/where-to-place-threads-and-other-forum-practices

Second, use a button that can toggle a boolean. When false don't display the movie/image.