Wow, I've learned a lot about gui over the past few days... Just a few more things to learn before I can complete this script.
1) How do I dynamically create gui elements? When I use newObject(), nothing happens, and even if it did, I can't seem to get an object ID out of the gui elements, so I can't use the dot operator to edit the properties.
2) How do I make the shapeview gui elements reposition, instead of rotate, when I click and drag them around? Also, how do I group multiple elements together when repositioning, such as the item count labels and the corresponding shapeviews?