03-22-2011 09:34 PM
I have an application which utilises the vertical scroll to list 20 buttons one below each other. The problem I have is that there is a lot of un used space after the final button. How do I go about setting a limit for the vertical scroll so it stops at the end of the final button.
03-23-2011 05:20 AM
It sounds like you have have a nested collection of Managers and at least one of them is confused about the space it should take up, probably because you have defined it with USE_ALL_HEIGHT, or overridden sublayout(..) in some way so that its vertical extent is larger than it needs to be when displaying the contained Fields.
So review all the Managers used in the application.
I think you will find this useful:
03-23-2011 07:33 AM
I've read the article you suggested and it is true I have made use of the USE_ALL_HEIGHT function. How do I go about correcting this. This is my code below:
03-23-2011 07:51 AM
Towards the end of the article Peter mentioned (I'm glad you find it useful, by the way ), there is a reference to the article explaining how to create custom backgrounds. The reference also asks you to review comments in that other ("background") article. Please do so - if you read thoroughly, you will figure it out by yourself. Judging by the level of your code, you shouldn't have much trouble doing so.
03-23-2011 08:03 AM
I edited these lines of the code to end up with this :
Now when I scroll the screen ends after the final button. However one of the shaded rectangles I have drawn to act as the bottom edge border is not visable.
03-23-2011 08:54 AM
That sounds like a layout problem with that specific button rather than an issue with the Manager. I suggest you raise this as a separate problem. I think we will need to see some code too.
03-23-2011 10:24 AM - edited 03-23-2011 10:28 AM
This (losing the last of the rectangles in the background) is indeed a separate issue. The solution to it will certainly include setVirtualExtent on your inner Manager inside its sublayout. Try looking at those, then, if you are still unsuccessful, start a new topic.
[Edit]: Are definitely on the right track with your style bits usage.