Print Page | Close Window

Pane Contents Disabled - Can't Type

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


Topic: Pane Contents Disabled - Can't Type
Posted By: LeeHayton
Subject: Pane Contents Disabled - Can't Type
Date Posted: 07 January 2009 at 7:07am
I am getting a problem where a form has a docking Pane control on it with a few docking panes created. 
One of the docking panes has another form in it with text boxes and combo boxes etc. on it.  For some reason it won't let me type on the form in that particular docking pane - no matter what form I put in that docking pane it won't allow any typing.
 
I have come across this before and had to work around it.
 
 
Any Ideas?
 
Activex version 12.0.2
 
Regards
Lee



Replies:
Posted By: LeeHayton
Date Posted: 07 January 2009 at 8:58am
Try this and see
 
have 2 forms - form1 and form2. 
 
add the dockingpanecontrol to form1
add a text box to form2
 
place the following code in form 1 and you will see that you can not type in the text box in form2.  You can however type in the text box if you click on the Pane Caption Line first - which seems to activate the pane.  You can't do this if your pane has no caption !
 
Regards
Lee
 
Private Sub Form_Load()
With DockingPane1
    Dim dp As Pane
    Set dp = .CreatePane(0, 100, 300, DockBottomOf, Nothing)
        dp.SetHandle Form2.hWnd
End With
End Sub


Posted By: LeeHayton
Date Posted: 07 January 2009 at 11:20am
Very Interesting...
 
IF you have a textbox on form1 and Form2 then it does not move to the textbox on form2 and allow you to type when you click on it.
 
However - if you replace the textbox on form1 with a codejock control like the FlatEdit then you can click between the two and edit them quite happily.
 
Why is this?
 
Lee


Posted By: robdon
Date Posted: 10 March 2009 at 4:38pm
Hi,
 
Yes indeed, I get the same problem as you, but if I put a CJ text box on both forms, it 'fixes' it.
 
However, I dont want the 2nd form to have a text box on it.
 
Is this a bug? And when will it get fixed?
 
Thanks,
 
Rob.



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