11-21-2007 03:56 PM
11-21-2007 04:17 PM
Jason2006 wrote:
I need to change the content of another array that will display the visible line number of the first array.
11-21-2007 04:40 PM
11-21-2007 04:46 PM
Basically what I'd like to do is part of my GUI. Like in the example, there are 2 arrays. One array called Array is with scroll bar. Another array called Array2 is without scroll bar. What I called "visible line number" in this example is 4 lines that we can see. What I expected is that Array2 will display the so-called line number of Array. At the beginning, I expected Array2 will display 1,2,3,4. After scrolling Array, let's say, the top element of Array index is 3, then I expect Array2 will display 3,4,5,6. etc. In this example, both Array and Array2 has 9 elements. If I scroll Array so that the top element of Array index is 7, then I expect Array2 will display 7,8,9 and last element will grey out. I just want use Array2 to display so-called line number of Array so that customer could track where the Array is. Once again, Array index may not appropriate and understandable for the customer.
In this example, if I press so-called up and down arrow at the scroll bar side, Array2 does not follow. If I add and delete one element in the Array, Array2 does not follow either. I just wonder whether I could get the event from Array scroll bar, that will be easy. But I could not find such event for an array.
11-21-2007 04:50 PM
11-21-2007 05:10 PM
Jason2006 wrote:
If I add and delete one element in the Array, Array2 does not follow either.
11-21-2007 06:41 PM
11-21-2007 06:52 PM
Jason2006 wrote:
I also write a similiar example as attached. It is a good idea to make it a XControl.
03-30-2017 07:58 AM
..i have the same problem, but the solution doesn't seem to work properly in a particular case.
If I start scrolling the scrollbar and then I move the mouse off the control, the mouse move event stop but the scrolling of the control continue leaving the "master" array with an inedx value different from the "slave" array.
Any other solution to solve this issue?
04-07-2017 11:25 AM
gepponline wrote:If I start scrolling the scrollbar and then I move the mouse off the control, the mouse move event stop but the scrolling of the control continue leaving the "master" array with an inedx value different from the "slave" array.
Are you seeing this behavior when using the mouse wheel? If so, you could modify the example posted earlier to include a mouse wheel event to get similar functionality.