Newbie struggling with controlP5 - Tabs
in
Contributed Library Questions
•
1 year ago
Hi
I'm a complete newbie to processing, I don't think like a programmer and I'm generally very confused.
I'm trying to build a control interface for Arduino (no, I haven't mastered that either!!!) and I have several things that are really puzzling me, but I'll post them individually by control...
I'll start with Tabs
1) How do I change the font for a Tab? I have four Control Fonts set up ("cf1", "cf2", etc) and I can use them for buttons, radio buttons and text labels, but I can't get it to work with tabs.
2) How do I draw lines, rectangles, etc in one tab's 'window' but not in another? I'm trying to create a set of sequential screens that are accessed by the tabs and I need to visually break the screens into various 'zones' according to function. I've got the controls sorted out using " cp5.getController("t20").moveTo("tab1");" (as an example) but I can't see how to achieve that for lines or rectangles.
3) Can the tabs have borders? I've managed to achieve an outer border using rectangles but the tab draws on top and the "dividers" get overwritten (at least I think that's what is happening).
Thanks for any help but, please, make it simple...
Duncan
I'm a complete newbie to processing, I don't think like a programmer and I'm generally very confused.
I'm trying to build a control interface for Arduino (no, I haven't mastered that either!!!) and I have several things that are really puzzling me, but I'll post them individually by control...
I'll start with Tabs
1) How do I change the font for a Tab? I have four Control Fonts set up ("cf1", "cf2", etc) and I can use them for buttons, radio buttons and text labels, but I can't get it to work with tabs.
2) How do I draw lines, rectangles, etc in one tab's 'window' but not in another? I'm trying to create a set of sequential screens that are accessed by the tabs and I need to visually break the screens into various 'zones' according to function. I've got the controls sorted out using " cp5.getController("t20").moveTo("tab1");" (as an example) but I can't see how to achieve that for lines or rectangles.
3) Can the tabs have borders? I've managed to achieve an outer border using rectangles but the tab draws on top and the "dividers" get overwritten (at least I think that's what is happening).
Thanks for any help but, please, make it simple...
Duncan
1