01-16-2015 02:13 AM
Hi, I need to resize programmatically the element of a Matrix. The External frame of the matrix control should hold the same size, but the internal element should chang their size programmatically.
I did not find any property/method to do this. Expect using Xcontrol I guess.
Any idea?
Thank you.
Solved! Go to Solution.
01-16-2015 02:43 AM
From your image you inserted, i take it that your 'matrix' is a 2D array LED display.
In order to resize these elements while maintaining the "original size of the matrix", you have to implement two steps:
1. Resize of the LEDs:
Please note that now the size of ALL LEDs change. This is because all elements of an array share the same properties (including size) with the exception of the "Value" property!
Also, the Array shell resizes as it still displays the same amount of LEDs (columns, rows)
2. Calculate the new number of columns/rows to keep the Array shell at about the same size
Please note that this will "resize the array to about the same size it previously had". Resizes due to rounding issues very likely (there are no 0.5 LEDs available!)
Norbert
01-16-2015 02:58 AM
Thank You.
I did not find the reference for the element. It is the very first of the list ![]()
01-16-2015 03:08 AM