ArminKH Well-Known Member Oct 13, 2015 #1 hi what is the event name for an array of scroll view? for example i add 3 scroll view like this Code: Dim SV(3) AS ScrollView now i want to handle _ScrollChanged Event but i'm failed by this code Code: Sub SV_ScrollChanged(Position As Int) Log("Changed") End Sub !!!!! or some thing like this Code: Sub SV(0)_ScrollChanged(Position As Int) Log("Changed") End Sub thanks
hi what is the event name for an array of scroll view? for example i add 3 scroll view like this Code: Dim SV(3) AS ScrollView now i want to handle _ScrollChanged Event but i'm failed by this code Code: Sub SV_ScrollChanged(Position As Int) Log("Changed") End Sub !!!!! or some thing like this Code: Sub SV(0)_ScrollChanged(Position As Int) Log("Changed") End Sub thanks
ArminKH Well-Known Member Oct 13, 2015 #2 oppppppppps sorry i missed Initialize2 and found it after 1 min Upvote 0
klaus Expert Licensed User Longtime User Oct 13, 2015 #3 When you initialize the ScrollViews you must need Code: SV(i).Initialize2(500, "SV") Set SV(i).Tag = i And Code: Sub SV_ScrollChanged(Position As Int) Dim scv As ScrollView scv = Sender Dim Index As Int Index = scv.Tag Log("ScrollView index:" & Index) Log("Changed") End Sub Upvote 0
When you initialize the ScrollViews you must need Code: SV(i).Initialize2(500, "SV") Set SV(i).Tag = i And Code: Sub SV_ScrollChanged(Position As Int) Dim scv As ScrollView scv = Sender Dim Index As Int Index = scv.Tag Log("ScrollView index:" & Index) Log("Changed") End Sub
ArminKH Well-Known Member Oct 13, 2015 #4 klaus said: When you initialize the ScrollViews you must need Code: SV(i).Initialize2(500, "SV") Set SV(i).Tag = i And Code: Sub SV_ScrollChanged(Position As Int) Dim scv As ScrollView scv = Sender Dim Index As Int Index = scv.Tag Log("ScrollView index:" & Index) Log("Changed") End Sub Click to expand... Yes thank u As i said i forgot to use initialize2 Upvote 0
klaus said: When you initialize the ScrollViews you must need Code: SV(i).Initialize2(500, "SV") Set SV(i).Tag = i And Code: Sub SV_ScrollChanged(Position As Int) Dim scv As ScrollView scv = Sender Dim Index As Int Index = scv.Tag Log("ScrollView index:" & Index) Log("Changed") End Sub Click to expand... Yes thank u As i said i forgot to use initialize2