[wxruby-users] wxComboBox and wxTE_PROCESS_ENTER

Fabio Petrucci fabio.petrucci at gmail.com
Sun Nov 30 12:00:09 EST 2008


On Sun, Nov 30, 2008 at 10:27 AM, Fabio Petrucci
<fabio.petrucci at gmail.com>wrote:

> Hi all,
>
> i am trying to use wxComboBox (instead of wxChoice) to capture
> wxTE_PROCESS_ENTER event.
>
> If i enable TE_PROCESS_ENTER flag on the resulting xrc file, i get an
> 'Unknown style flag wxTE_PROCESS_ENTER' on app loading.
>
> Probably wxComboBox doesn't reconize this kind of event.


> How do i catch this event for the wxComboBox widget?
>
> Thank you all.
>
> bio.
>


 Wx::TE_PROCESS_ENTER can be set programmatically by
window#toggle_window_style(Wx::TE_PROCESS_ENTER)

...now it works, but enabling this flag, the widget loose TAB controls (TAB
/ SHIFT+TAB)

To try it out, on the 'BigDemo -> wxComboBox' example if i add this flag

on line 23:

cb = Wx::ComboBox.new(self, 500, "default value", Wx::Point.new(90,50),
Wx::DEFAULT_SIZE,
                                sampleList,
Wx::CB_DROPDOWN|Wx::TE_PROCESS_ENTER)

i get the enter event but no tabbing is possible.

Is it a bug?

Thank you for your help.

bio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20081130/a5c06aee/attachment.html>


More information about the wxruby-users mailing list