The Accidental Rubyist

invalid byte sequence in UTF-8

Scrollbars and other fun

leave a comment »

I just can;t stop playing around.Creating new stuff everyday, and not even fully testing them 😦

Did a quick scrollbar class yesterday. Earlier Lists and Tables and Editboxes used to paint a scrollbar inside their code. How about a scrollbar class that can be created thusly:

Scrollbar.new @form, :parent => list

So this scrollbar takes its coordinates from the parent, and registers itself as a listener to its traversal event. So now its ready to display and move around as the user moves down his list.
http://i53.tinypic.com/33ephzb.jpg

Advertisements

Written by totalrecall

September 25, 2010 at 11:20 am

Posted in ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: