Print Page | Close Window

Dynamic Creation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=22436
Printed Date: 03 December 2024 at 12:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic Creation
Posted By: m0nstrum
Subject: Dynamic Creation
Date Posted: 15 October 2014 at 10:02am
Hi,

Im trying to create shortcut bars dynamically and the following code works for version 9.70

    Licenses.Add "XtremeSuiteControls.ShortcutBarCtrl", _
                 "Suite Controls Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _
                 "PRODUCT-ID: XSP-ESD-ACTX-9700-RC1" & vbCrLf & _
                 "VALIDATE-CODE: "
   
    Set xtpShortcutBarControl = Controls.Add("XtremeSuiteControls.ShortcutBarCtrl", "xtpShortcutBarControl")

Ive upgraded to version 16 and the following code doesn't work:

Licenses.Add "Codejock.ShortcutBar.16.3.1", _
                 "ShortcutBar Control Copyright (c) 2003-2013 Codejock Software" & vbCrLf & _
                 "PRODUCT-ID: Codejock.ShortcutBar.ActiveX.v16.3" & vbCrLf & _
                 "VALIDATE-CODE: "


    Set xtpShortcutBarControl16 = Controls.Add("Codejock.ShortcutBar.16.3.1", "xtpShortcutBarControl")


I get an error that the 'component not registered correctly'

Can you no longer create dynamic controls in version 16?

Thanks



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