P psdos Active Member Licensed User Longtime User Apr 28, 2012 #1 Hi, I have a problem with ScrollChanged event, i have this code in my program for to see that value "Position" change when scrolling it and event not changed. Anyone know why? Code: Copy Sub ScrollView1_ScrollChanged(Position As Int) Label7.Text = Position End Sub Thanks.
Hi, I have a problem with ScrollChanged event, i have this code in my program for to see that value "Position" change when scrolling it and event not changed. Anyone know why? Code: Copy Sub ScrollView1_ScrollChanged(Position As Int) Label7.Text = Position End Sub Thanks.
klaus Expert Licensed User Longtime User Apr 28, 2012 #2 You need to post more code to find where the problem is. The code you show works, so the problem is somewhere else. The most efficient way is to post your project as a zip file (IDE menu Files / Export As Zip) Best regards. Upvote 0
You need to post more code to find where the problem is. The code you show works, so the problem is somewhere else. The most efficient way is to post your project as a zip file (IDE menu Files / Export As Zip) Best regards.
P psdos Active Member Licensed User Longtime User Apr 28, 2012 #3 klaus, the problem is this line Code: Copy Activity.AddView(ScrollView2, 0, 920, 400, 360) i have a ScrollView that show list from SQL elements database. If i desactive this line ScrollView_ScrollChanged event if is ok, but ScrollView dont show anything elements from SQL. Thanks. Here have a sample of ScrollView with Event and Label1 to show value Position of ScrollView Last edited: Apr 28, 2012 Upvote 0
klaus, the problem is this line Code: Copy Activity.AddView(ScrollView2, 0, 920, 400, 360) i have a ScrollView that show list from SQL elements database. If i desactive this line ScrollView_ScrollChanged event if is ok, but ScrollView dont show anything elements from SQL. Thanks. Here have a sample of ScrollView with Event and Label1 to show value Position of ScrollView
klaus Expert Licensed User Longtime User Apr 28, 2012 #4 I repeat once again, it is impossible to help you if we don't have the full code, or at least a smaller project that shows the problem ! Posting just one line is not enough. What is the device resolution ? In your line you set the Top value to 920 ? Code: Copy Activity.AddView(ScrollView2, 0, 920, 400, 360) Are you sure that the ScrollView is visible on the screen? Best regards. Upvote 0
I repeat once again, it is impossible to help you if we don't have the full code, or at least a smaller project that shows the problem ! Posting just one line is not enough. What is the device resolution ? In your line you set the Top value to 920 ? Code: Copy Activity.AddView(ScrollView2, 0, 920, 400, 360) Are you sure that the ScrollView is visible on the screen? Best regards.
P psdos Active Member Licensed User Longtime User Apr 28, 2012 #5 I added the project looks up to see if you can make it work, is identical to mine 920 is for Galaxy Note (1280x800) and yes is visible Upvote 0
I added the project looks up to see if you can make it work, is identical to mine 920 is for Galaxy Note (1280x800) and yes is visible
P psdos Active Member Licensed User Longtime User Apr 28, 2012 #7 in post nº 3, you dont see it? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2012 #8 You should use File - Export as zip when uploading files to the forum (otherwise you are uploading many unnecessary files). Change: Code: Copy scvList.Initialize(0) To: Code: Copy scvList.Initialize2(0, "scvList") Upvote 0
You should use File - Export as zip when uploading files to the forum (otherwise you are uploading many unnecessary files). Change: Code: Copy scvList.Initialize(0) To: Code: Copy scvList.Initialize2(0, "scvList")
P psdos Active Member Licensed User Longtime User Apr 28, 2012 #9 Thanks Erel, now all is perfect. Upvote 0