controlp5: setting visibility of tab items
in
Contributed Library Questions
•
10 months ago
Hi ,
I was programming with processing 1.2.1 using controlp5 controllers. i need to develop an application with multiple tab widgets. i have created 'labels' , 'textfields' and 'buttons'. i want to customize each tab such that one button shown in one tab should not be visible in another tab. i have used the following codes to move each items to various tabs.
cp5.getController("label1").moveTo("tab1");
cp5.getController("Select COM").moveTo("tab2");
cp5.getController("Read").moveTo("tab3");
When the application starts, it looks fine. the default tab is not displaying controllers from other tabs. But after selecting other tabs, when the controllers come, they wouldn't go even after selecting another tab. They are permanently visible. I used "hide()' and 'setVisible(false)' to hide the items. in that case, they are not accessible from other widgets, but they are visible. please someone help me to manage the visibilty of each tab items.
ANY HELP WOULD BE APPRECIATED. THANK YOU..... PLEASE REPLY, IT MAY BE SIMPLE FOR YOU, BUT I AM STUCK WITH. HELP ME
I was programming with processing 1.2.1 using controlp5 controllers. i need to develop an application with multiple tab widgets. i have created 'labels' , 'textfields' and 'buttons'. i want to customize each tab such that one button shown in one tab should not be visible in another tab. i have used the following codes to move each items to various tabs.
cp5.getController("label1").moveTo("tab1");
cp5.getController("Select COM").moveTo("tab2");
cp5.getController("Read").moveTo("tab3");
When the application starts, it looks fine. the default tab is not displaying controllers from other tabs. But after selecting other tabs, when the controllers come, they wouldn't go even after selecting another tab. They are permanently visible. I used "hide()' and 'setVisible(false)' to hide the items. in that case, they are not accessible from other widgets, but they are visible. please someone help me to manage the visibilty of each tab items.
ANY HELP WOULD BE APPRECIATED. THANK YOU..... PLEASE REPLY, IT MAY BE SIMPLE FOR YOU, BUT I AM STUCK WITH. HELP ME
1