Print Page | Close Window

Adding CodeJock controls into docking panes

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=9394
Printed Date: 31 January 2025 at 9:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding CodeJock controls into docking panes
Posted By: Vitaly
Subject: Adding CodeJock controls into docking panes
Date Posted: 23 January 2008 at 7:50am
Hi,
 
This is a beginners question perhaps. In examples with docking panes for .NET you only show creation of the same text edit control within each pane. When it comes to creating one of your own controls, this seems to get more complicated, because the same code/logic doesn't work anymore. Note from the example below that we are adding 3 View Controls into 3 pane controls that we have, and while the first two are standard .NET controls and the code works well for them, with the third View Control BothList of CodeJock type the same code doesn't work, and i don't understand why. Please help.

 
  ListView RequestList = new ListView();
  ListView ResponseList = new ListView();
  AxXtremeSuiteControls.AxListBox BothList = new AxXtremeSuiteControls.AxListBox();
  private void DockingPaneManager_AttachPaneEvent(object sender, AxXtremeDockingPane._DDockingPaneEvents_AttachPaneEvent e)
  {
   switch (e.item.Id - 1)
   {
    case 0:
     {
      e.item.Handle = RequestList.Handle.ToInt32();
      break;
     }
    case 1:
     {
      e.item.Handle = ResponseList.Handle.ToInt32();
      break;
     }
    case 2:
     {
      e.item.Handle = BothList.Handle.ToInt32();    
      break;
     }
    default:
     break;
   }
  }



Replies:
Posted By: Oleg
Date Posted: 23 January 2008 at 1:51pm
Yes, its problem with any ActiveX control. Just try put it to Panel and attach Panel to Pane.

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



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