Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Code Snippets > Text and GUI's ( Created 04 March 2007 | Last Edited 04 March 2007)

Scrollbars by mike_g | No Votes
For general use
Heres a pair of functions I posted on dev-crunch. But since its gone i figured i may as well put em here. Once function does a vertical scrollbar, the other a horizontal one. They work pretty much perfectly as long as you dont use more than one of each type at a time. Oh and they are not exactly very nice to look at either.
-->

Latest Comments

Posted : Sunday, 04 March 2007, 13:08
shroom_monk


Pretty good, except that when you try to drag one of the bars, it doesn't move at the same speed as the mouse.

Posted : Sunday, 04 March 2007, 13:30
garand


yes

Posted : Sunday, 04 March 2007, 16:24
steve_ancell


I've been playing around with this sort of stuff for a few days. You will need to provide your own image for the mouse pointer.

The get_slider_value(id$) function returns a number between 0 & 100, which represent a percentage of the slider. To get the names of the bars, look at the function create_slider_bars().

-->

|edit| I forgot to mention the bar_type element in the slider_bar Type is 1 for horizontal, and 2 for vertical. |edit|

|edit| I also forgot to say, feel free to rip this code apart and use in anyway you like. |edit|

Posted : Sunday, 04 March 2007, 16:48
mike_g


Hmm... When I move the sliders nothing seems to scroll.

Posted : Sunday, 04 March 2007, 17:07
steve_ancell


That's because it's not been done yet. I will keep you posted.

If you include the line --> after the color statement in the main loop, it will show the percentages the sliders have moved across the bars.

Posted : Sunday, 04 March 2007, 17:08
mike_g


Cool, well what you got so far looks promising

Posted : Sunday, 04 March 2007, 17:12
steve_ancell


Cheerz Bro... just incase you were wondering, it's going to be a tilemap editor that can manage animated backgrounds. And yes, I will post it on here as FreeWare.

Posted : Monday, 05 March 2007, 19:46
power mousey


ahhhhh steve

that looks and sounds really good.

As the power mouse, I can't wait to try it out.
And hey, animated backgrounds. Sounds really cool and from a sixties throwback..really groovy man

now, I gotta go back to work.
So, hey.....

Now its time to say goodbye
to all my socoder friends and others too..

So--> so what
co--> rather be a Ceo instead
der..and thats alllllllll.

cheers,

Latest Posts
Audio Rant
steve_ancell Sat 18:28
Wrong Partition!!!!?
spinal Sat 11:24
Progress / Location Bars
Afr0 Sat 03:15
eBay Lies
spinal Fri 23:44
Shoutbox Topic - 968
dna Fri 19:42
Development via GUI
JL235 Fri 07:59
Meh
Afr0 Fri 04:13
Randomly distributed coordinates...
Afr0 Fri 00:20
Mog-Dog II : Electric Boogaloo
steve_ancell Thu 17:26
Matthew Smith making a comeback?...
steve_ancell Thu 03:59
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Evil Roy Ferguson
Sat, at 18:38
steve_ancell
Sat, at 18:31
Afr0
Sat, at 17:30
CodersRule
Sat, at 16:55
shroom_monk
Sat, at 16:54
Jayenkai
Sat, at 16:28
dna
Sat, at 16:23
Hotshot
Sat, at 16:09
HoboBen
Sat, at 16:00
Dabz
Sat, at 15:19
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.