# Tab

**URL:** <https://www.ruby-forum.com/t/tab/164616>\
**Category:** wxRuby\
**Created:** [April 3, 2009, 4:34am UTC](https://www.ruby-forum.com/t/tab/164616 "2009-04-03T04:34:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 3, 2009, 4:34am UTC](https://www.ruby-forum.com/t/tab/164616/1 "2009-04-03T04:34:57Z")

</div>

Hi there

How to make tab button move the focus to next widget?

Thanks  
Hendra

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 8, 2009, 4:58am UTC](https://www.ruby-forum.com/t/tab/164616/2 "2009-04-08T04:58:38Z")

</div>

Hi,  
A little question  
I make my form without a panel  
I simply put everything on a frame  
is that why my tab does not working?

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 8, 2009, 10:17am UTC](https://www.ruby-forum.com/t/tab/164616/3 "2009-04-08T10:17:12Z")

</div>

hendra kusuma wrote:

> A little question  
> I make my form without a panel  
> I simply put everything on a frame  
> is that why my tab does not working?

Yes. A Panel is part of what makes tabbing work.

a

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 13, 2009, 3:42am UTC](https://www.ruby-forum.com/t/tab/164616/4 "2009-04-13T03:42:39Z")

</div>

On Wed, Apr 8, 2009 at 3:09 PM, Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hendra kusuma wrote:
> 
> > A little question  
> > I make my form without a panel  
> > I simply put everything on a frame  
> > is that why my tab does not working?
> 
> Yes. A Panel is part of what makes tabbing work.

OK, guess I have to change my frame to panel then  
Thank you

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 5, 2009, 10:41am UTC](https://www.ruby-forum.com/t/tab/164616/5 "2009-04-05T10:41:52Z")

</div>

Hello Hendra,

Unless your attempting to intercept the TAB Key event, it should all be  
internally handled by both wxWidgets, and the actual GUI Kit that  
wxWidgets  
utilizes to create the contols on the specific Operating System.

Some controls, such as a TextCtrl, with TE\_MULTILINE, will eat the TAB  
key  
event, in which case, you need to monitor the Key events on that  
specific  
control, to intercept the tab key, and decide how you want to handle it.  
Review the documentation on KeyEvent, to see a few details on it, and  
take a  
look at the example for Caret, as it intercepts key events to do the  
drawing  
handling on the Panel.

hth  
Mario

2009/4/2 hendra kusuma [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
