Pane Contents Disabled - Can't Type |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
robdon
Groupie Joined: 27 April 2006 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |