Print Page | Close Window

Tabulator key problem

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=10148
Printed Date: 26 June 2024 at 1:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabulator key problem
Posted By: Jean
Subject: Tabulator key problem
Date Posted: 08 April 2008 at 10:38am

uploads/20080408_103513_PanesFocusProbl.zip - 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.



Replies:
Posted By: Jean
Date 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!


Posted By: Oleg
Date Posted: 14 April 2008 at 4:27am
https://forum.codejock.com/uploads/20080414_042643_pb.zip -
 
pb.zip


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


Posted By: Aaron
Date Posted: 14 April 2008 at 12:42pm
Oleg,
 
Nice workaround...
 
I wish it could be done with panes and forms like this


Posted By: Jean
Date 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?


Posted By: Baldur
Date 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.


Posted By: Jean
Date 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...



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