easily create popupmenu library
in
Library and Tool Development
•
2 years ago
Hi.
This library can easily create popupmenu in Processing code.
You can download it and show example code.
https://github.com/hixi-hyi/ppopupmenu/
Example
Hiroyoshi, HOUCHI
This library can easily create popupmenu in Processing code.
You can download it and show example code.
https://github.com/hixi-hyi/ppopupmenu/
Example
- import ppopupmenu.* ;
- PPopupMenu menu = null ;
- void setup (){
- size ( 200 , 200 );
- menu = new PPopupMenu ( this);
- menu . addMenuItem ( "menu1" , "menu1Func","str" );
- }
- void menu1Func ( String str ){
- println ( str);
- }
- void mousePressed (){
- if ( mouseButton == RIGHT ){
- menu . show();
- }
- }
- void draw (){
- }
Hiroyoshi, HOUCHI
1