It seems to take hours of trying for me to get this
right, so could someone please help?

Why doesn't this work?:
-----------------------------
stuff: layout [
text yellow "stuff"
]

func1: [
print "func1"
]

view/new layout [
    the-box: box 400x400 black feel [
        engage: func [face action event] [
            ;print event/key
                        if event/key = 'a [view stuff]
                        if event/key = 'b [do func1]
        ]
    ]
]
focus the-box
do-events

---------------
So I want to just some way to view text, when specific
key is pressed - either in existing layout or another,
doesn't matter...

Every time I try to do basic stuff like this I seem to
run into problems. It is a bit difficult (at least for
me) to understand what is possible to do and what is
not, given the (lack of) current documentation...

Cheers,
Mikko


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to