M max19871 Member Licensed User Longtime User May 22, 2011 #1 I'm (try) to build a preferences panel for my app and i would like to make vertical scrollable TabView panel, but i can't get it to work... is it possible?? :sign0104:
I'm (try) to build a preferences panel for my app and i would like to make vertical scrollable TabView panel, but i can't get it to work... is it possible?? :sign0104:
XverhelstX Well-Known Member Licensed User Longtime User May 22, 2011 #2 So a Scrollview in your tabview? I guess its possible. Could you post your code so far? (if possible between [code ] tags) XverhelstX Upvote 0
So a Scrollview in your tabview? I guess its possible. Could you post your code so far? (if possible between [code ] tags) XverhelstX
klaus Expert Licensed User Longtime User May 22, 2011 #3 What exactly do you mean with TabView panel ? Attached a demo program with a TabHost View with two tabs with ScrollViews. Best regards. EDIT. Amended the error reported here. Attachments TabHostScrollView1.jpg 39.9 KB · Views: 32,886 TabHostScrollView2.jpg 38.7 KB · Views: 32,732 TabHostScrollViews.zip TabHostScrollViews.zip 6.4 KB · Views: 1,657 Last edited: Jul 13, 2013 Upvote 0
What exactly do you mean with TabView panel ? Attached a demo program with a TabHost View with two tabs with ScrollViews. Best regards. EDIT. Amended the error reported here.
M max19871 Member Licensed User Longtime User May 23, 2011 #4 klaus said: What exactly do you mean with TabView panel ? Attached a demo program with a TabHost View with two tabs with ScrollViews. Best regards. Click to expand... Exactly what i'm looking for!! :sign0060: Thank you so much!!! Upvote 0
klaus said: What exactly do you mean with TabView panel ? Attached a demo program with a TabHost View with two tabs with ScrollViews. Best regards. Click to expand... Exactly what i'm looking for!! :sign0060: Thank you so much!!!
barx Well-Known Member Licensed User Longtime User Jun 28, 2011 #5 max19871 said: Exactly what i'm looking for!! :sign0060: Thank you so much!!! Click to expand... QFA Upvote 0
barx Well-Known Member Licensed User Longtime User Jun 28, 2011 #6 Quick Question: Code: Copy For i=0 To i1 Dim lbl As Label lbl.Initialize("lbl1") lbl.Color = Colors.Blue lbl.Tag=i lbl.Text = "Test1 line # "&i scvTest1.Panel.AddView(lbl,0,i*lblHeight1,100%x,lblHeight) scvTest1.Panel.Height = i1*lblHeight1 Next In the above code (taken from the tabhost/scrollview demo), why is Code: Copy scvTest1.Panel.Height = i1*lblHeight1 in the For loop. Doesn't this just set the height of the scrollview and use variables set outside the loop therefore setting with same value each time? That's how I read it anyway. Also, I Don't see any code to set the width of the scrollviews. Is this not needed? Does it default to 100%x? Cheers Upvote 0
Quick Question: Code: Copy For i=0 To i1 Dim lbl As Label lbl.Initialize("lbl1") lbl.Color = Colors.Blue lbl.Tag=i lbl.Text = "Test1 line # "&i scvTest1.Panel.AddView(lbl,0,i*lblHeight1,100%x,lblHeight) scvTest1.Panel.Height = i1*lblHeight1 Next In the above code (taken from the tabhost/scrollview demo), why is Code: Copy scvTest1.Panel.Height = i1*lblHeight1 in the For loop. Doesn't this just set the height of the scrollview and use variables set outside the loop therefore setting with same value each time? That's how I read it anyway. Also, I Don't see any code to set the width of the scrollviews. Is this not needed? Does it default to 100%x? Cheers
klaus Expert Licensed User Longtime User Jun 28, 2011 #7 Shure the line must be outsides the for loop! The ScrollView width defaults to the width of the TabHost view. Just for your information, if you have other questions, be patient i'll be absent 2 days. Best regards. Upvote 0
Shure the line must be outsides the for loop! The ScrollView width defaults to the width of the TabHost view. Just for your information, if you have other questions, be patient i'll be absent 2 days. Best regards.
barx Well-Known Member Licensed User Longtime User Jun 28, 2011 #8 No worries klaus. You deserve a break. See you soon. Thanks again. Sent from my Desire Z Upvote 0