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.

DarkBASIC Discussion / help and advice on a scrollbar menu

Author
Message
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 19th Aug 2005 13:05
heya, ive spent a few hours trying to figure out how to make windows style scroll bars and ive put some code togather but it lacks practibility and im sure this can be constructed much more organised and wanted to know if anyone had any ideas on how i could sort this code out (notes its not complete so its got some errors) any ideas or herlp will be great. thanks in advance

kR

kR

Attachments

Login to view attachments
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th Aug 2005 15:54
My opinion is that you are writing too much code.

Here is a simple example of a scroll window:



If you have any questions, just ask...

Immunity and Annihalation makes Immunihalation...
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 19th Aug 2005 16:40 Edited at: 19th Aug 2005 16:56
thats what i was trying to create, which part of the code only shows the numbers within the blue box? and how does that work as thats what i was having problems with. also ive been trying to replce the numbers with words and been having many problems and cannt get it to work at all

thanks

kR

kR
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 20th Aug 2005 13:19 Edited at: 20th Aug 2005 13:21
This part displays the text (except it's out of the window)



remember:
sy is the scrolling variable
posx,posy is the left-top position of the window
sizex,sizey is the size of the window
string$(data) is the array wich contains all the strings that should be displayed.

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2025-05-22 13:05:57
Your offset time is: 2025-05-22 13:05:57