05-17-2012 06:22 AM
In my gui I have an array of clusters that I am auto-sizing based on number of rows property node. I have a delete and ok button under the indicator for the array and would like to position the buttons at the bottom of the array. The easy solution is to put the buttons to the side of the array, but I'd like to make this look nice and have them appear at the bottom of the array no matter how many rows are displayed. Any suggestions?
I've looked into position property nodes which give the option of top and left, and wanted to calculate the bottom from the height, but haven't figured out how to do this.
05-17-2012 06:44 AM - edited 05-17-2012 06:45 AM
05-17-2012 07:36 AM - edited 05-17-2012 07:37 AM
Not sure what the difficulty you're having is. The Height property gives you the height of the array, in pixels. Perhaps you're having a race condition. I'd suggest posting your code.
Of course, one issue is: what happens if the array is set to display so many rows that it extends beyond the size of the panel's window height?
In general, I'm not a fan of user interfaces where buttons start moving on me.
05-17-2012 08:24 AM
I have set limits on the amount of rows to display before you get a scroll bar.
I figured out my problem, I was using the xcontrol container bounds rather than simply the bounds property.