Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Text window scrolling

Author
Message
Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 5th Dec 2008 22:28 Edited at: 5th Dec 2008 22:40
Hello, my name Sph!nx and I'm a newcomer. I'm still learning the basics of the language so here's my first question!

I've made a simple text input window, where the user can input commands and certain action would happen.

Now when I fill in every line the screen, or text, does not automatically scroll upwards, but the input field simply goes out of view.



I would not mind seeing a scroll bar or something but a simple scroll effect would be sufficient. Can anyone help me?

Thanks a lot!

Sph!nx

Regards,
Sph!nx
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 6th Dec 2008 01:18
There's no one easy command to make a scrollbar, you'd have to make a function for it. Here's a basic one that will just make the text automatically move up when the input would go below the screen:



Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 6th Dec 2008 20:16
Thank you very much! This is just what I needed!

Regards,
Sph!nx

Login to post a reply

Server time is: 2024-11-24 16:26:52
Your offset time is: 2024-11-24 16:26:52