R Ramezanpour Active Member Licensed User Longtime User Mar 11, 2015 #1 Hello, i want to Remove horizontal scroll i create scrollview with: cc as CustomListView Panel5 as Panel Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height)
Hello, i want to Remove horizontal scroll i create scrollview with: cc as CustomListView Panel5 as Panel Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height)
omidaghakhani1368 Well-Known Member Licensed User Longtime User Mar 11, 2015 #2 Hi. You can add Scollview in activity with increase scrollview width example 4dip(scollbar hidden when scrollview is large ) Upvote 0
Hi. You can add Scollview in activity with increase scrollview width example 4dip(scollbar hidden when scrollview is large )
R Ramezanpour Active Member Licensed User Longtime User Mar 11, 2015 #3 omidaghakhani1368 said: Hi. You can add Scollview in activity with increase scrollview width example 4dip(scollbar hidden when scrollview is large ) Click to expand... please give me a code. I add scrollview and load this view with : scrollview1.panel.addview ... but it size is small (i change width and height but it dont work) and again it have horizontal scroll Upvote 0
omidaghakhani1368 said: Hi. You can add Scollview in activity with increase scrollview width example 4dip(scollbar hidden when scrollview is large ) Click to expand... please give me a code. I add scrollview and load this view with : scrollview1.panel.addview ... but it size is small (i change width and height but it dont work) and again it have horizontal scroll
klaus Expert Licensed User Longtime User Mar 11, 2015 #4 You should post your code so we can see what you have done and how to find what's wrong ! Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Mar 11, 2015 #5 klaus said: You should post your code so we can see what you have done and how to find what's wrong ! Click to expand... Code: 'Code module Sub Process_Globals Dim page5 As Page Dim data As DB Dim cc As CustomListView Private Panel5 As Panel End Sub Sub ShowPageMe page5.Initialize("page5") page5.RootPanel.LoadLayout("page5") Main.NavControl.ShowPage(page5) cc.Initialize(Me,"cvc",100%x) data.Initialize Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) Dim list1 As List For i = 0 To list1.Size - 1 Dim t1 As Topic t1.Initialize t1 = list1.Get(i) Dim p1 As Panel p1.Initialize("") cc.Add(p1,80dip,t1.sID) p1.LoadLayout("myapp69") Next End Sub Upvote 0
klaus said: You should post your code so we can see what you have done and how to find what's wrong ! Click to expand... Code: 'Code module Sub Process_Globals Dim page5 As Page Dim data As DB Dim cc As CustomListView Private Panel5 As Panel End Sub Sub ShowPageMe page5.Initialize("page5") page5.RootPanel.LoadLayout("page5") Main.NavControl.ShowPage(page5) cc.Initialize(Me,"cvc",100%x) data.Initialize Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) Dim list1 As List For i = 0 To list1.Size - 1 Dim t1 As Topic t1.Initialize t1 = list1.Get(i) Dim p1 As Panel p1.Initialize("") cc.Add(p1,80dip,t1.sID) p1.LoadLayout("myapp69") Next End Sub
omidaghakhani1368 Well-Known Member Licensed User Longtime User Mar 11, 2015 #6 My solution is : Change Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) To Panel5.AddView(cc.AsView,0,0,Panel5.Width+7,Panel5.Height) This solution is very easy. Because it increase scrollview width and scrollbar set behind of Page Upvote 0
My solution is : Change Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) To Panel5.AddView(cc.AsView,0,0,Panel5.Width+7,Panel5.Height) This solution is very easy. Because it increase scrollview width and scrollbar set behind of Page
R Ramezanpour Active Member Licensed User Longtime User Mar 11, 2015 #7 omidaghakhani1368 said: My solution is : Change Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) To Panel5.AddView(cc.AsView,0,0,Panel5.Width+7,Panel5.Height) This solution is very easy. Because it increase scrollview width and scrollbar set behind of Page Click to expand... dont work ! i want to disable horizontal scrolling Upvote 0
omidaghakhani1368 said: My solution is : Change Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) To Panel5.AddView(cc.AsView,0,0,Panel5.Width+7,Panel5.Height) This solution is very easy. Because it increase scrollview width and scrollbar set behind of Page Click to expand... dont work ! i want to disable horizontal scrolling
klaus Expert Licensed User Longtime User Mar 11, 2015 #8 You must somewhere have ScrollView. You need to set the ScrollView.ContentWidth = ScrollView.Width Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Mar 11, 2015 #9 klaus said: You must somewhere have ScrollView. You need to set the ScrollView.ContentWidth = ScrollView.Width Click to expand... can you give me a code Upvote 0
klaus said: You must somewhere have ScrollView. You need to set the ScrollView.ContentWidth = ScrollView.Width Click to expand... can you give me a code
klaus Expert Licensed User Longtime User Mar 11, 2015 #10 You should post your project as a zip file, or a small one showing the problem, so we can look at it in your conditions. As I don't know where the ScrollView is in your project, I suppose in the CustomListView. I have never used it. Giving you just a code snippet showing the setting of ScrollView.ContentWidth won't for sure not help you. Not sure that I could answer you, I'll be on travel for a week since tomorrow. But others for sure will do . Upvote 0
You should post your project as a zip file, or a small one showing the problem, so we can look at it in your conditions. As I don't know where the ScrollView is in your project, I suppose in the CustomListView. I have never used it. Giving you just a code snippet showing the setting of ScrollView.ContentWidth won't for sure not help you. Not sure that I could answer you, I'll be on travel for a week since tomorrow. But others for sure will do .
R Ramezanpour Active Member Licensed User Longtime User Mar 18, 2015 #11 I am grateful for your guidance Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Mar 18, 2015 #12 I can not find a ScrollView in your code. Could you send the project? Narek Upvote 0
R Ramezanpour Active Member Licensed User Longtime User Mar 18, 2015 #13 narek adonts said: I can not find a ScrollView in your code. Could you send the project? Narek Click to expand... Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) I send you project files Upvote 0
narek adonts said: I can not find a ScrollView in your code. Could you send the project? Narek Click to expand... Panel5.AddView(cc.AsView,0,0,Panel5.Width,Panel5.Height) I send you project files