[REBOL] Re: Inform & keyboard
From: nitsch-lists::netcologne::de at: 10-Jul-2002 16:44
Am Mittwoch, 10. Juli 2002 16:09 schrieb [philb--upnaway--com]:
> Hi Guys,
>
> I have a problem with Rebol & Dialog boxes.
>
> I want to put up a dialog box and press Escape to cancel it or Enter to
> confirm it.
>
> But it looks like inform isnt compatible with keyboard input.
> Sensors dont seem to work and keyboard shortcuts on buttons dont work
> either.
>
> Its not a showstopper but would make my program more user friendly.
>
> Any ideas .... or does anyone have some example for me to study?
>
hotkeys are evaluated in system/view/window-feel.
and that is set automatic by 'view only for the first window.
one can set it by hand. try:
lay: layout [
tf: title "press control-t" 400
button "test" #"^t" [
tf/text: "you pressed the button or the key"
show tf
]
]
lay/feel: system/view/window-feel
inform lay
> Cheers Phil
Cheers Volker