lost focus event from a user control |
Post Reply |
Author | |
tomamoss
Newbie Joined: 19 December 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 03 January 2007 at 1:55am |
Hi I am losing the lost focus event from a user control. To demonstrate I took your sample SDISample.vbp and replaced the TxtContent control with just a simple user control with a textbox in it. If you trap the lost focus event you will see that it will fire the first and second time you leave the control, but from then on no events at all. Any help would be most welcome Thanks and kind regards |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You can use Activate and Deactivate actions instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
tomamoss
Newbie Joined: 19 December 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi There is no Deactivate event for a user contol. But there is for the form the user contol sits on. In your sample example its the frmPane Deactivate event. howerver this suffers from the same problem, in that it only fires twice and then no more. Your help in this matter would be greatly welcome. Thanks Mark |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Here code you can try:
Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
If (Action = PaneActionActivated) Then Debug.Print Pane.Title; " Activated" If (Action = PaneActionDeactivated) Then Debug.Print Pane.Title; " Deactivated" End Sub
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
tomamoss
Newbie Joined: 19 December 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Thanks again for the reply. I did try the example, but have run into a problem. I need to verify that data entered into a form is correct before the focus is moved from a form that’s located with in a pane. If I use the example you give and call a procedure with in my existing form to verify, and this displays a message box warning the user of a data problem the app will crash. no error just crashes. I call the procedure from with in the DockingPaneManager_Action event. Is there a problem with lost focus events with the DockingPane ocx, as it works twice just fine and the just swallows any further events. Thanks for your time on this. Kind Regards |
|
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 |