P Pantelis Member Licensed User Longtime User May 27, 2013 #1 Hi all In the ScrollView.Initialize there is one parameter which is the inner height. But in the HorizontalScrollView.Initialize there is a second parameter named "event name". What is this? Why is necessary a second parameter? I don't find any help on BeginnersGuide nor on KeyWord_Views. What is the meaning of "set the sub that will handle the event"? Is there any place to find more information of parameters and methods of Views? Thanks
Hi all In the ScrollView.Initialize there is one parameter which is the inner height. But in the HorizontalScrollView.Initialize there is a second parameter named "event name". What is this? Why is necessary a second parameter? I don't find any help on BeginnersGuide nor on KeyWord_Views. What is the meaning of "set the sub that will handle the event"? Is there any place to find more information of parameters and methods of Views? Thanks
Erel B4X founder Staff member Licensed User Longtime User May 28, 2013 #2 EventName is a common convention used by many objects. Note that ScrollView.Initialize2 also has an EventName parameter. The EventName parameter defines which subs will handle the events. HorinzontalScrollView raises the ScrollChanged event. The sub that will handle this event will be: Sub <EventName>_ScrollChanged (Position As Int) Upvote 0
EventName is a common convention used by many objects. Note that ScrollView.Initialize2 also has an EventName parameter. The EventName parameter defines which subs will handle the events. HorinzontalScrollView raises the ScrollChanged event. The sub that will handle this event will be: Sub <EventName>_ScrollChanged (Position As Int)