05-10-2017 12:08 PM
Hey All! I'm building a temperature monitor for a system with a chamber class that has values of temperature, time, and on/off status. I have a few questions in regards to the best way to proceed.
While the number of chambers will be predefined at runtime (n=15), the size of the display (and aspect ratio) that the user sees the data on can vary from an overhead projector to a small laptop. Is there a good way to create a grid that can dynamically adjust to make sure all n classes are displayed?
05-10-2017 04:05 PM
If you put the information into a 2D array of clusters as a control on the front panel, you can use a "Pane size" event to detect whenever the front panel resizes and then create a property node for the array that sets the "Number of Rows" and "Number of Columns" properties to an appropriate size for whatever the pane dimensions are. Don't forget to make both scrollbars on the array enabled to allow it to move around easily.