The Accidental Rubyist

invalid byte sequence in UTF-8

Tabbedpanes, hotkeys and 3 states

leave a comment »

The underline property (taken from Tk) when set for a button, registers the meta(alt) key for that character with the form.
So pressing M-key will fire that button. This is working on tabbedpanes.

Also, a selected pane button displays in reverse video, the focussed one is BOLD, and unfocussed one NORMAL.

Following is a screenshot.

improved tabbedpane with radio buttons and working hotkeys

improved tabbedpane with radio buttons and working hotkeys

The underline tag/property (inspired by Tk) can be a pain at times, since the user does not know a button is involved. The java way of using an ampersand before the hotkey, may be better and involve lesser typing. I am thinking of going that way.

Advertisements

Written by totalrecall

December 15, 2008 at 9:53 pm

Posted in ncurses, rbcurse, ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: