Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Tabulator key problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabulator key problem

 Post Reply Post Reply
Author
Message Reverse Sort Order
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: Tabulator key problem
    Posted: 24 April 2008 at 9:18am
Thank you Baldur.
Point b was the reason why I changed to forms. Maybe I shouldn't allow users to undock panes...
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2008 at 6:51am
The mainproblem is, that VB controls the focus on forms and controls.
You have the ActiveForm- and ActiveControl-Properties in the screen-object.
The ActiveForm-Property will be set when an WM_ACTIVATE-Message occurs.
The TAB-Keys works only in one form and can not change the ActiveForm.
So if you will change the form with TAB-Key, you must activate the pane to make the form to the ActiveForm.
Check the Tab-Key on the last control in a form (KeyDown-Event) to make the next form the activeform.
I have also the problem, that the current pane loose focus after display a messagebox or a modalform.
So i must store the activepane and reactivate it after messagebox or modalform.
 
The reason to use forms instead of pictureboxes are:
a) better control of activities in the form as own class and code
b) if you undock (float) a picturebox, VB may lock the entire application until you redock the picturbox.
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2008 at 1:25am
I remember, that my first solution was with picture boxes too. But due to problems you gave me the advice to use forms insted of picture boxes.
I guess it's more than one year ago, so I can't remember the reason.
Maybe you changed something inside your controls?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2008 at 12:42pm
Oleg,
 
Nice workaround...
 
I wish it could be done with panes and forms like this
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: 14 April 2008 at 4:27am
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2008 at 2:13am
Don't you see the problem or don't you understand my bad English?
We need to solve this problem. In one pane we have a form where our customers need to enter criterias. And they like to use the tabulator key to step from control to control.
And in the other panes, there are results to the criterias.
It's not funny if the first pane is locked (for tabulator key) after first usage.


Please tell me if you need more explantations or another sample!
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2008 at 10:38am

uploads/20080408_103513_PanesFocusProbl.zip

After step 5 you can use all controls on pane A if you click them, but the tabulator key doesn't work anymore.
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.109 seconds.