[fxruby-users] FXTabBook / FXTabItem / FXTabBar

Lyle Johnson lyle at lylejohnson.name
Fri Dec 14 12:48:53 EST 2007

On 12/14/07, Ernst J. Tanaka <ernst at tanakasite.com> wrote:

> I managed to put my application in a tabbook. I am looking to catch the
> event 'click on tabitem'. I tried SEL_COMMAND on TabItem but that seems
> not to work.

The FXTabBook widget should send a SEL_COMMAND message whenever you
select a new tab:

    tabBook.connect(SEL_COMMAND) do
        puts "User selected tab number #{tabBook.current}"

Hope this helps,


More information about the fxruby-users mailing list