Lyle Johnson
7/8/2006 8:34:00 PM
On 7/8/06, Nuralanur@aol.com <Nuralanur@aol.com> wrote:
> I'd like to read out the current item of a combobox.
> In the documentation about FOX, there's a promise
> that for some developer version 1.5.x, it's
> possible to access FXCombobox using SEL_CHANGED...
> But this doesn't seem to work.
I will file a bug report on your behalf. In the meantime, just catch
SEL_COMMAND instead. Also, I'm pretty sure that you need to fix your
call to FXComboBox.new. The third argument should be a reference to
the target (an FXObject instance). In your case, it should probably
just be nil:
@cb = FXComboBox.new(self, 21, nil, 0,
COMBOBOX_STATIC|FRAME_SUNKEN|FRAME_THICK|LAYOUT_RIGHT) {
...
}
Also, as fascinating as this must be for the readers of ruby-talk, you
might want to consider posting FXRuby-specific stuff like this to the
fxruby-users mailing list instead.
Hope this helps,
Lyle