Jump to content

scrollbox


jahlxx
 Share

Recommended Posts

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.
 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...