Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Navigating with tab key
Navigating with tab key [message #8798] Sun, 01 April 2007 19:38 Go to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Hi,

What triggers tab key navigation inside e.g. ArrayCtrl and between ctrls?
I added a layout to the StdUppApp and tab key does nothing there.
In the sample apps I tried, tab navigation works, but I can't figure what triggers it Confused

Guido

[Updated on: Sun, 01 April 2007 19:55]

Report message to a moderator

Re: Navigating with tab key [message #8806 is a reply to message #8798] Sun, 01 April 2007 23:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It is handled by TopWindow::Key.

However, the Key protocol is as follows:

The keystroke goes to the focused widget Key. If it returns false, it goes to its parent Key and vice versa. If it reaches top-level window and it also returns false, HotKey broadcast is performed recursively from top to down, until some widget returns true (or all are traversed).

Therefore, in LineEdit, Tab keystroke is used and true is returned...

Mirek
Re: Navigating with tab key [message #8807 is a reply to message #8806] Sun, 01 April 2007 23:35 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Sun, 01 April 2007 23:01

It is handled by TopWindow::Key


Ok. StdUppApp overrides TopWindow::Key, and tab key strokes are lost there. Commented it out for now.

Guido
Re: Navigating with tab key [message #8810 is a reply to message #8807] Mon, 02 April 2007 08:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
guido wrote on Sun, 01 April 2007 17:35

luzr wrote on Sun, 01 April 2007 23:01

It is handled by TopWindow::Key


Ok. StdUppApp overrides TopWindow::Key, and tab key strokes are lost there. Commented it out for now.

Guido




Perhaps it should call TopWindow::Key instead of "return true"..
Re: Navigating with tab key [message #8824 is a reply to message #8810] Mon, 02 April 2007 15:16 Go to previous message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Mon, 02 April 2007 08:14



Perhaps it should call TopWindow::Key instead of "return true"..


Yes, thanks. I already figured.

Guido

[Updated on: Mon, 02 April 2007 15:24]

Report message to a moderator

Previous Topic: more containers of widgets
Next Topic: problems with popup/pulldown menus on Gentoo/kde linux
Goto Forum:
  


Current Time: Thu Mar 28 15:29:33 CET 2024

Total time taken to generate the page: 0.01386 seconds