Print Page | Close Window

Arrow Key Strokes Getting Consumed

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6106
Printed Date: 29 September 2024 at 10:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Arrow Key Strokes Getting Consumed
Posted By: GarethThom
Subject: Arrow Key Strokes Getting Consumed
Date Posted: 13 January 2007 at 2:09pm

I am using v10.4 CommandBars, DockingPane and ShortcutBar to create a MDI application.  The ShortcutBar is contained within a Docking Pane and contains groups of TreeView controls used to control navigation around the application.

Most of our users like to be able to use the keyboard to access the navigation options so we have created shortcut keys (using CommandBars.KeyBindings) to activate the ShortcutBar and focus on the TreeView of the active Shortcut Item.

However, when the Pane is collapsed in "Hidden" mode the keyboard shortcuts cause the TreeView controls not to receive the arrow key keyboard presses when the user next manually activates the Pane using the mouse.

https://forum.codejock.com/uploads/20070113_140834_XtremeDockingPa.zip - uploads/20070113_140834_XtremeDockingPa.zip
This VB6 application demonstates this bug.  To replicate it, run the program and do the following:
  1. Press [Ctrl] + [Left Arrow] to activate the ShortcutBar TreeView.  You should be able to move up and down the TreeView as normal.
  2. Press [Ctrl] + [Right Arrow] to re-activate the MDI Child Window.
  3. Now, using the mouse, click on the Navigator Pane to expand it.  The ShortcutBar TreeView re-gains the focus (you can tell because press the [Home] and [End] keys jump to the first and last notes), but now the arrow keys do not change the selected Node.
    This does not occur if the Pane is docked.

Can someone please look into this as soon as possible?

Thanks,
Gareth




Replies:
Posted By: GarethThom
Date Posted: 14 January 2007 at 9:18am
Originally posted by GarethThom GarethThom wrote:

  1. Press [Ctrl] + [Left Arrow] to activate the ShortcutBar TreeView.  You should be able to move up and down the TreeView as normal.
  2. Press [Ctrl] + [Right Arrow] to re-activate the MDI Child Window.

Sorry, that should have read [Alt] instead of [Ctrl]


Posted By: GarethThom
Date Posted: 23 January 2007 at 12:35pm
Has anyone from Codejock looked at this yet?
 
I have been waiting for over two weeks


Posted By: Oleg
Date Posted: 25 January 2007 at 4:59am
https://forum.codejock.com/uploads/20070125_045747_dpt.zip - uploads/20070125_045747_dpt.zip  
 
Hello,
You create too much forms and visual basic don't know which must receive focus. we recommend as panes for TabControls and ShortcutBar don't use external forms but use controls on that form - pictureboxes or frames.
 
I attached modified sample that works without this problem.
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: GarethThom
Date Posted: 30 January 2007 at 5:01am
Unfortunately this is not an uption.
 
In our actual application (i.e. significantly more complicated than my example application) we do not just use one simple TreeView control - we use multiple TreeViews and ShortcutCaptions to identify what section the user is in.  We therefore cannot attach multiple windows to one item when the controls are contained on the same form as the ShurtcutBar.
 
Also, having all the controls on the one form does not help keep the code tidy - it could turn many fairly simple forms into one very, very large complex one.  And as I sure you will agree, the ShortcutBar is designed to allow *any* window to be attached to it, as per your official code examples.
 
Can you please look into sorting this problem in another way?
 
Thanks,
G.


Posted By: Oleg
Date Posted: 30 January 2007 at 5:43am
Hi,
 
Another way is to create UsrControl for each pane of ShortcutBar (to separate code)  and in form with shortcutbar put this userControls to some PictureBoxes and Attach PictureBoxes to ShortcutBar.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net