Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Adding CodeJock controls into docking panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding CodeJock controls into docking panes

 Post Reply Post Reply
Author
Message
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post Topic: Adding CodeJock controls into docking panes
    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;
   }
  }
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.