Monday, January 10, 2011

Culminating Breakthrough

Did you hear that? A breakthrough! That's right. Today's special breakthrough is:

*drum rolls in the distance*

We figured out how to make buttons! Using pictures! And they look cool! I should stop using exclamation marks! This isn't the first time though!

Phew. Was it tiring reading that in your mind? Having your mind sound excited, when you probably weren't? Too bad for you. :)

Now, to elaborate. Our application, Referencite, requires the use of mouse-clickable buttons. Originally in our culminating project proposal, I'd Photoshopped a page that looked like the format we wanted - three buttons for the three types of referencing formats. The tricky part was figuring out how to create them in Turing.

During Grace's class today (she had class before Randi and I), she found a whole set of built-in Turing procedures and functions: the GUI module. These basically help in creating a Graphical User Interface (or GUI - hence the name), which is what we would like to create. Within this set of procedures and functions is a function which can be used to make buttons out of pictures: GUI.CreatePictureButton. We just specify the parameters, and voila! A button is created.

OK fine, the description above, that last line, was watered way down. I didn't bother mentioning how during the entire class today, Randi and I worked on trying to figure out GUI.CreatePictureButton - it wasn't a pretty sight. It was only when I got home that I actually managed to finally work it out. But it's all done, and we have our first user page! Because I'm so nice, I will now proceed to produce a screenshot of what the window looks like:

*five minutes later*

So, what do you think? The buttons are a bit plain right
now, but if we have time we will definitely fix!


That's my update of the day. Now, speaking of that picture above... notice the desktop wallpaper? Hunger Games! <3 A must-read. In fact, GO READ IT NOW. <--- Look, I even used all caps - against Mr. Arkin's rules - for emphasis! SO GO.

No comments:

Post a Comment