Shoes questions

Alright i know that its possible to “getkeys” and set commands for the
SHOE app. but i can’t get it to work i want to replace a button with
somthing like keypress :enter ::
button(“Submit Answer”) do #this is where the *enter would go
if @answerp.text.to_i == answer
answerbox.clear { para “correct” }
wrongbox.clear
@answerp.replace edit_line
in addition, can someone yell me why this doesn’t work, i was
attempting to clear my edit box…
button(“Submit Answer”) do
if @answerp.text.to_i == answer
answerbox.clear { para “correct” }
wrongbox.clear
@answerp.replace edit_line
.clear doesnt work either, i get an error and it just creates another
box.???
Thanks for any help

On Wed, Dec 05, 2007 at 04:08:20PM +0900, Erik B. wrote:

Alright i know that its possible to “getkeys” and set commands for the
SHOE app. but i can’t get it to work i want to replace a button with
somthing like keypress :enter ::

Oh, Erik, if you want to join the Shoes mailing list, we’ll take
good care of you. Send a message To: [email protected]
and CC: [email protected] and you’ll be subscribed.

in addition, can someone yell me why this doesn’t work, i was
attempting to clear my edit box…
button(“Submit Answer”) do
if @answerp.text.to_i == answer
answerbox.clear { para “correct” }
wrongbox.clear
@answerp.replace edit_line

A paragraph can’t be replaced with an edit_line yet. And you
probably want to use: answerbox.text = “correct” … Depends on what
answerbox is.

Post your entire program to the Shoes list and we’ll all race to
find an answer. As long as you keep in mind that nobody knows
Shoes, you’ll be just fine.

_why