Print Page | Close Window

How to dynamically add controls to a Pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2621
Printed Date: 01 October 2024 at 11:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to dynamically add controls to a Pane
Posted By: coucouman
Subject: How to dynamically add controls to a Pane
Date Posted: 22 July 2005 at 4:50am
Hi,

I create some Panels with this code (SDI Sample) :

    Dim A as Pane
    Set A = DockingPaneManager.CreatePane(1, 200, 120, DockLeftOf)
    A.Title = "Pane A"
    DockingPaneManager.ImageList = imlPaneIcons

my Problem is that I'm not able to create control on that Pane at runtime like I usually do under VB6 :

Dim Ctrl as control
set Ctrl = Controls.Add(myControlType,myName,myContainer)

as I can't know what is the Container to use in a Pane.

Anyone can help please ?

Best regards.
Arthur.

PS : I'm using VB6 + XtremeSuitePro 9.70 Trial under XP.

PS2 : Oups, sorry, I should have post this in XtremeSuite Pro forum or Xtreme Docking Pane..



Replies:
Posted By: Oleg
Date Posted: 22 July 2005 at 11:12am

 

So you must create Form object and dynamically add controls on this from . After you can attach it 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