I have a container named conScroller where it is set as scroll direction vertical
I then have the code below to fill it with 20 containers called conNewMatch
The code sets the conScroller hight to a fixed height after filling with the 20 conNewMatch containers.
All works well but there is no vertical scroll bar. Is this my code or a bug?
Thanks
Windows 11 pro
R25.2
Var conscroller1 As New conScroller
conscroller1.EmbedWithin(Self, 0, 0, Self.Width, Self.Height)
Var topOffset As Integer = 30
Var itemHeight As Integer = 100
For i As Integer = 1 To 20
Var listItem As New connewmatch
listItem.EmbedWithin(conScroller1, 30, topOffset, conScroller1.width, itemHeight)
topOffset = topOffset + itemHeight
Next
conScroller1.height= 400
You’re responsible for implementing the scroll behavior on a Container or a Canvas control. You’ll probably need to add a Scrollbar control and/or implement the ScrollVertical event on the Container itself.
Now you can upload zip files to your posts. This can help others help you.
I was able to comment on your Issue because it had an example so I was able to see what you meant.
The Opening event of a WebPage the Self.Width is the size defined using the IDE but once the browser shows the page the Width can be larger or smaller than that.
Your code set the width as 1200 but if your browser is narrow you won’t see the scrollbar. If your browser is wider, then you will see the scrollbar way to the left of the right side of the browser edge.
Changing your code from Opening to Shown event, the Self.Width now is what the browser is actually showing, it could be 900 or 2000.
I hope this help you understand the problem you had.