Print Page | Close Window

tab key problem in Floating panes controls

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=15859
Printed Date: 06 February 2025 at 7:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: tab key problem in Floating panes controls
Posted By: sinanguler
Subject: tab key problem in Floating panes controls
Date Posted: 15 December 2009 at 8:28am
i have a problem with floating pane's controls

i can't use tab key in a user control (ex: combo in user defined control)
i can't change focus control by pressing tab key in floating pane

but i can use when pane is docked

please help me



Replies:
Posted By: Baldur
Date Posted: 18 February 2010 at 6:44am
First, your UserControl should not reside in the main-project.
Put it in a separate activex.ocx (the reason ist the threading-modell used bei VB6).
 
Second, a pane should contain a form, not a picturebox.
The TAB-Key is handled from VB6-runtime within a form or containercontrol.
The mainproblem, vb6 has, is to recognize the current form and control (Screen.ActivForm and Screen.ActiveControl) if a ContainerControl like PicureBox is floated, because his ParentHwnd is changed away from the current form.
 
If you use Forms in Panes it would work much better (and its easyer to handle), but you can not TAB across Forms.
You must handle this by yourself.



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