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.

Code Snippets / [DBP] Double scroll Text box list with pick Item.

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 20th Mar 2008 14:53
Hi All,

found this scroll box for text in code base by Phaelax and have taken it one step further, now you can scroll two text list plus you can pick the hightlighted item from the left side and it will be listed on the right, Also you can delete any hightlighted item from the right side.

up and scroll left box left and right scroll right box.

ho yes you will need two files one called items.txt - filled with some text, the other called picked.txt which is empty.(going to add save file when I get to it).




Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Mar 2008 03:41 Edited at: 21st Mar 2008 04:18
Moved on a bit now has scroll bars( also by Phaelax), you can pick an item and it will turn red plus it is also put in the other list.

in the down load there is the images you need for the sprite plus two txt files one containing some food items, but the list could be anything you want.

the code



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Mar 2008 03:48 Edited at: 21st Mar 2008 03:49
screen shot of it running.



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Mar 2008 10:20
one more update, think this it, if does not show a title that because it looking for the fonts starbats, but that is not requied just change it some font you have.

Will also need a background picture, that can be named to whatever picture file you have.

will need sprite file from above downloads.

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Mar 2008 10:26 Edited at: 25th Mar 2008 10:26
screenie.



Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 27th Mar 2008 00:10
looks and works really cool. Personally, I'm not a fan of those images but the coding is awesome

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Mar 2008 01:56
Thanks Data, taken a few years of learning DBPro to get this going, tried once before but could not get the file input part working right.

Quote: "Personally, I'm not a fan of those images "


Well at least you can change the image file and the sprites to something you may have.

small up date.

replace

and this


stops it adding one to the right hand list when all you do is a edit or new item.

Dark Physics makes any hot drink go cold.
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 27th Mar 2008 02:27
Quote: "Well at least you can change the image file and the sprites to something you may have."

True, true. This just a code snippet afterall mind if I use this in my applications? (see Aspectus in the WIP board)

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Mar 2008 10:15 Edited at: 27th Mar 2008 10:19
By all means that why I posted it, don't forget to credit Phaelax for the sidlerbar and list box functions. Happy coding.

Dark Physics makes any hot drink go cold.
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 28th Mar 2008 04:35
ok thanks

Login to post a reply

Server time is: 2024-11-25 02:27:54
Your offset time is: 2024-11-25 02:27:54