07-02-2009 03:49 PM
I am wondering if there is any way to limit an array control so that the user can only put information into a certain number of spots. What I mean is: I have an array of clusters that ask for certain configuration controls from the user. However there can only be 8 different configurations per array. I can't find a way to keep the user from editing more entries than 8. (This is purely for ease of use, as it is the program will discard anything past the 8th entry).
Attached is a picture of the control that I want to limit the user from selecting 9 or more entries on.
07-02-2009 03:56 PM
My first thought is that you could solve this problem by building a XControl where you make you own control for the index of the array element. This index could be limited to 8 as the maximum. Within the XControl you update the visible element of the array according to data change of the new index control.
Jörn
07-02-2009 05:04 PM
07-03-2009 05:15 AM
That's true.
I am currently developing a larger application which gets easily crowded with little features of this sort. With the XControl it is hidden in the event structure of the XControal and can easily reused. But it is much more work to get into XControls so it might not be appropriate for small applications.