Monday, November 08, 2010 at 12:02 AM.

system.verbs.builtins.dialog.olddialogs.threeWay

on threeWay (prompt, button1, button2, button3) {
	local (userhitbutton = 2); <<the default Cancel item
	on itemhit (item) {
		case item {
			-1 {
				dialog.setvalue (1, button1);
				dialog.setvalue (2, button2);
				dialog.setvalue (3, button3);
				dialog.setvalue (4, prompt);
				return (true)}}
		else { <<only enabled items are the buttons
			userhitbutton = item;
			return (false)}}; <<we're done
	dialog.run (264, 1, @itemhit);
	return (userhitbutton)}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.