Re: problem building forms in shoes ( green_shoes)
- 2011-09-28 @ 23:29
I am trying to build a form using green_shoes.
I am having lots of problems.
I want to be able to control field contents on the fly. I would like to be
able to correct for bad entries, entry too long,
remove carriage returns, ... . I also want tab to take me to the next
field in the form not write a \t to the text.
If I use keypress I can get the latest key but did not see any way to
prevent it from being written to the form.
Click blocks do not work for edit_box only for buttons. So clicking in a
field does not change the focus. If it did
I could use focus_ele to get the current location and focusables to go to
next field. There is a field textview.name. Could I
use that to label the text field. Unlike some gui's fields do not have a
name or tag that can be searched for.
In the keypress block focus_ele.text is empty unless I set it explicitly.
b = edit_box
If I set focus to a field in the form then it stays there forever
returning the text from the entry .
Clicking in another field does not change the focus.
I have green_shoes 1.0.303 and ruby 1.9.2p180 (2011-02-18 revision 30909)
Any suggestions ?