Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Docking Panes - Focus Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking Panes - Focus Problem

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: Docking Panes - Focus Problem
    Posted: 13 March 2005 at 11:31pm

I have read a few other posts here regarding similar problems, particularly those where Boyd provides some good feedback.  However, the problem persists, so...

Our app is using a pane configuration similar Microsoft Outlook 2003.  A shortcut bar to the left (Pane A), a list pane to the right (Pane B...a codejock report control) with a "reading" pane beneath the list pane (Pane C).

The shortcut bar provides users with four alternative "views".  Each time the user changes the view, Pane A is switched to a different PictureBox control containing different TaskPanel controls; Pane B generally continues to point to the same PictureBox control containing the codejock report control; and Pane C is ALWAYS switched to a different PictureBox control containing numerous standard windows controls.

To make matters more complicated, a fourth pane (Pane D) is generally located beneath Pane C and points to the handle of a PictureBox.  This PictureBox control also has three additional PictureBox controls, each holding a CommandBar control.  The reason I am doing it this way is so that I can use the PictureBox controls to place the left edge of the CommandBar control beyond the left edge of the Pane D picturebox control so as to hide the "space" that seems to show up to the left of codejock toolbars.

Obviously, if you've read this far, you would understand that I'm having some serious focus problems.  I can't get focus to move from one pane to the next for the life of me.  It seems particularly difficult, if not impossible, to get focus to move off of the pane containing the codejock report control.

Should all picturebox controls used have their "TabStop" property set to False at design time?  Should all picture box controls have their "Visible" property set to False at design time? How should the same properties for the controls contained within each picturebox control be set at design time?  Each time the user switches "Views", should I programatically go through and change the Visible property on the various picturebox controls no longer in use to False?

Any help trying to troubleshoot this focus problem is appreciated.  Thanks!

Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 9:03am
Given the likelihood of focus issues when using the Docking Pane, it would be nice to see something, anything, in the help file on this topic.Ermm
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 9:32am

Originally posted by DDJJ DDJJ wrote:

Given the likelihood of focus issues when using the Docking Pane, it would be nice to see something, anything, in the help file on this topic.Ermm

I agree. That, and an official blurb from CodeJock here in the forums on how to handle this issue. I have been experiencing this problem in all my applications myself, and I am not sure how to proceed because I cannot find any "best practices" mentioned anywhere. Thanks.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 9:46am
Ok I will try to help.  It appears there is an internal problem in Visual Basic with floating controls.  So to help with the problem you and do something like this:

Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, Cancel As Boolean)
    If (Action = PaneActionFloated Or Action = PaneActionDocked) Then
        'Must do this for each control in the Picture boxes
        txtText1.TabStop = Not DockingPaneManager.FindPane(PaneOne).Floating
        'Repeat for each control in picture box for pane with id PaneOne
        txtCombo1.TabStop = Not DockingPaneManager.FindPane(PaneTwo).Floating
        'Repeat for each control in picture box for pane with id PaneTwo
        'etc...
    End If
End Sub

So you must disable tabstop for all controls placed within the picturebox atached to the pane when it is floating.

Hopefully this helps clear things up a little

Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2005 at 10:28am

Must have taken some courage to wade in to this SuperMario...Wink

In your response, you suggest that the problem only occurs if the panes are floating.  In my case, all panes are docked, and I'm still having the problem. But I gather that for troubleshooting purposes I should go through and disable the tabstop property for all controls contained in pictureboxes that are NOT currently in use by the DockingPane Manager, correct?

Will play with this and see what happens...

Thanks!

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.172 seconds.