Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Keyboard handling for tab controls CExtTabWnd Collapse All
Subject Author Date
rajneesh Jun 25, 2003 - 1:41 AM

Hi,
I would like to navigate the tabs through Keyboard
i.e if i am on tab 2 than how i will move next to tab 3 and move back to tab 1 using key board.

My application has to be user friendly with Keyboard as well as mouse.

Technical Support Jun 26, 2003 - 8:34 AM

Dear Rajneesh,

In the property sheet window you can use tab keys to switch between active dialog items including tab’s caption. You can also use Ctrl+PageUp or Ctrl+PageDown to jump to the next/previous page.

Our tab window is primarily designed to be similar to Visual Studio.NET. You cannot set the focus on a tab item. But it is possible to insert a piece of code into the overridden CFrameWnd::PreTranslateMessage() method in order to process Ctrl+PageUp or Ctrl+PageDown actions. It will detect whether the current window with the keyboard focus belongs to the dynamic tab container or not, and, if yes, will switch to the next/previous tab.

If this approach is suitable for you, we will write message pre-translating code of this kind.