jahlxx Posted August 25, 2016 Posted August 25, 2016 Hi. I have a tunipanel, and tuniscrollbox inside it. tunipanel is align altop, and tuniscrollbox is align alnone. the only way I've found to make work to the scrollbox is define in runtime its height and width. for example: panel.visible := true;scrollb.height := trunc(parent.height * 0.8);scrollb.width := trunc(parent.width * 0.9);scrollb.visible := true; if I remarks the 2 and 3 lines, the scroll dont' work and if I define the scrollbox aling as alclient, the scroll dont' work. I don't know why this works in that way, o I'm forgotting somethig. Any idea? Thanks. Quote
Sherzod Posted August 25, 2016 Posted August 25, 2016 Hi, Hi. I have a tunipanel, and tuniscrollbox inside it. if I remarks the 2 and 3 lines, the scroll dont' work Sorry, can you clarify ?! and if I define the scrollbox aling as alclient, the scroll dont' work. I can not reproduce this, can you make a testcase?! Best regards. Quote
jahlxx Posted August 25, 2016 Author Posted August 25, 2016 difficult. is there any way for scrollbox to not be transparent? Quote
erich.wanker Posted August 25, 2016 Posted August 25, 2016 scrollbox is not transparent ... why not use scrollbox.color in ObjectInspector ?? and: scrollb.height := trunc(parent.height * 0.8);scrollb.width := trunc(parent.width * 0.9); why not use Anchors: akBottom and akRight -> set "True" in ObjectInspector What have you stored in Scrollbox??? ... if there is no content - when you can not see a Scrollbar ... if your scollbox has height: 200 and in the scrollbox you have a button on top:300 - you should see a scrollbar hth Erich Quote
jahlxx Posted August 26, 2016 Author Posted August 26, 2016 Hi. After many tests, if I dont't define the height and width of the scrollbox in run time, the scroll doesn't work if I run the app in a cell phone. I'm sure that I'm doing something wrong, but is the only way that I've found for scrollbox work in a computer (with normal display) and a cell phone. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.