Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Arrow Key Strokes Getting Consumed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Arrow Key Strokes Getting Consumed

 Post Reply Post Reply
Author
Message
GarethThom View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote GarethThom Quote  Post ReplyReply Direct Link To This Post Topic: Arrow Key Strokes Getting Consumed
    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.

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

Back to Top
GarethThom View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote GarethThom Quote  Post ReplyReply Direct Link To This Post 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]
Back to Top
GarethThom View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote GarethThom Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2007 at 12:35pm
Has anyone from Codejock looked at this yet?
 
I have been waiting for over two weeks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2007 at 4:59am
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
Back to Top
GarethThom View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2006
Location: United Kingdom
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote GarethThom Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.