keyboard notebook navigation tab

15 views
Skip to first unread message

nkb

unread,
Jul 29, 2004, 9:12:41 AM7/29/04
to wx-u...@lists.wxwidgets.org
Hi.
How do I make my application aware that whenever there's a Ctrl-tab
event, it's suppose to change the notebook pages? I've either no
responds or it crash the application. The notebook sample example does
not show any event or functions that bind the page changes to the key
Ctrl-tab. (?)

Vadim Zeitlin

unread,
Jul 29, 2004, 11:04:08 AM7/29/04
to wx-u...@lists.wxwidgets.org
On Thu, 29 Jul 2004 22:12:41 +0900 nkb <n...@pacific.net.sg> wrote:

n> How do I make my application aware that whenever there's a Ctrl-tab
n> event, it's suppose to change the notebook pages?

This happens automatically.
VZ


Otto Wyss

unread,
Jul 29, 2004, 1:59:13 PM7/29/04
to wxWidgets-User
And what if it doesn't happens automatically (see wxGuide-Demo built
with 2.4.2)?

O. Wyss

--
How to enhance your code, see "http://freshmeat.net/projects/wxguide/"

Vadim Zeitlin

unread,
Jul 29, 2004, 2:35:42 PM7/29/04
to wxWidgets-User
On Thu, 29 Jul 2004 19:59:13 +0200 Otto Wyss <otto...@orpatec.ch> wrote:

OW> > On Thu, 29 Jul 2004 22:12:41 +0900 nkb <n...@pacific.net.sg> wrote:
OW> >
OW> > n> How do I make my application aware that whenever there's a Ctrl-tab
OW> > n> event, it's suppose to change the notebook pages?
OW> >
OW> > This happens automatically.
OW> > VZ
OW> >
OW> And what if it doesn't happens automatically

Then someone should debug it and understand why it doesn't.
VZ


David Elliott

unread,
Jul 29, 2004, 4:28:31 PM7/29/04
to wx-u...@lists.wxwidgets.org

> I'd already have done if I were able to set a breakpoint at
> "wxNotebook::OnNavigationKey". Some wxWidgets identifiers aren't
> visible
> in GDB while others are (wxNotebook<TAB> shows which, i.e.
> wxNotebook::InsertPage just above is visible).
>

Better to type it as 'wxNotebook::<TAB>

Note the leading single quote.

-Dave


Otto Wyss

unread,
Jul 29, 2004, 4:16:09 PM7/29/04
to wxWidgets-User
I'd already have done if I were able to set a breakpoint at
"wxNotebook::OnNavigationKey". Some wxWidgets identifiers aren't visible
in GDB while others are (wxNotebook<TAB> shows which, i.e.
wxNotebook::InsertPage just above is visible).

O. Wyss

Otto Wyss

unread,
Jul 30, 2004, 3:44:12 AM7/30/04
to wxWidgets-User
Ahh, the single quote really helped a little, unfortunately
"wxNotebook::OnNavigationKey" still isn't shown. I could set a
breakpoint at "wxNotebookBase::AdvanceSelection" which is call within
OnNavigationKey but pressing Ctrl-Tab doesn't stop there.

In the Menu sample "wxNotebook::AdvanceSelection" is reached when
pressing Ctrl-Tab.

Wenzel Jakob

unread,
Jul 30, 2004, 8:46:43 AM7/30/04
to wx-u...@lists.wxwidgets.org
You are probably linking to wxWidgets using a shared library. Try starting gdb
with your executable, then entering "symbol-file <path to wxWidgets lib>". Now
set a breakpoint on main and enter "run". The program will break at main
and this is the point at which you can set additional breakpoints at
symbols which
are not referred to in the program and only exist in the library. You
need to start
the program first so that ld can link to the wxWidgets shared library and the
symbols are in the address space. Otherwise you will get an error message like
this: "Cannot access memory at address 0x4009b2b0"

Hope this helps,
Wenzel

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>
>

Reply all
Reply to author
Forward
0 new messages