Creating columns in panel with ("\t") and ("\n")
-
Hey guys,
Looking for some scripting advice. I'd like to create a panel that contains some various elements (label, combobox, etc...) and arrange them within the panel.I can arrange text with something like:
Content.setPropertiesFromJSON("Panel1", { "popupMenuItems": "A\tB\tC\tD\nA\tB\tC\tD\n", });
What tools am I looking for to script elements?
-
@dustbro Paint routines
-
@d-healey Ultimately I'm looking to make a table that works as a sequencer in conjunction with the MidiPlayer.
something like this:
Would that be a Viewport instead?
-
@d-healey reading the Paint routine API now.
Seems that I'm looking to make a Table List Box...
https://docs.juce.com/master/tutorial_table_list_box.html@Christoph-Hart any way to mimic this with current HISE resources?
edit... nevermind... I'm tinkering :) -
@dustbro There are a few ways to do it. For the sliders I'd use standard controls although you could create them with paint routines if you're feeling adventurous. For the scrolling part use a viewport, inside the viewport put a panel and use paint routines to draw all of the text and show which line is selected etc. The buttons would be part of the paint routine.
This is something similar I made
If this is your first time playing with paint routines and panels then I would start with something much simpler. I'll be doing a video about getting started with paint routines next month!
-
@d-healey
Can't wait to watch!
-
This post is deleted! -
Is there a way to set JSON properties for all elements in an array?
I'm trying to reference the API, but the link is 404for individual components, I've used:
Content.setPropertiesFromJSON("ComboBox1", { "width": 100, "height": 50 });
I tried replacing the component with a for-in loop... no good.
Content.setPropertiesFromJSON( for(c in ComboArray) Content.getComponent(), { "width": 100, "height": 50 });
-
Not enough coffee... I guess I just have to put the setPropertiesFromJSON IN a for loop
-
@dustbro
I'm trying to reference the API, but the link is 404
Press F1 when you're in HISE ;)