View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Dialog "box" by Brandon Feldkamp

It had been hours and we were still having the same problem. We just couldn't get our combo boxes to work!!!!

Combo boxes are handy, but sometimes they are just unnecessary. So, after spending hours trying to make one work
my group discovered the dialog pop-up built in to smalltalk!

     ans := Dialog choose: 'Choose...' fromList: myList:myList lines: 5 cancel:[^nil].

This simple bit of code brings up a box that will have a list of whatever is in myList. From here it is easy! We used
input fields to display the contents.

     self value: ans printString.

Easy Peasy Lemon Squeezy!

Link to this Page