Are you using 12.1.1 or 13.0.0 ?
I am using 12.1.1 and is working fine on PC's If I run the CodeJock Setup. I have not tried Ver 13.0.0 and shall try
Regards
Anser
Are you using 12.1.1 or 13.0.0 ?
The licence code should be included before any controls are created, for example, in the Form_Initialize event of the main form for Visual Basic 6.0. For simplicity, the code below demonstrates how to embed the license information for the CommandBars only, you will need to do this for each control you use.
Visual Basic 6.0
Private Sub Form_Initialize()
CommandBarsGlobalSettings.License = "CommandBars Control Copyright (c) " & _
"2003-2006 Codejock Software" & vbCrLf & "PRODUCT-ID: " & _
"Codejock.CommandBars.ActiveX.v10.20" & vbCrLf & _
"VALIDATE-CODE: XXX-XXX-XXX-XXX"
End Sub
In the constructor for your main form, place the following code BEFORE the call to the 'InitializeComponents' method.
// Create Instance of Global Settings Class for CommandBars
XtremeCommandBars.CommandBarsGlobalSettingsClass settings = new XtremeCommandBars.CommandBarsGlobalSettingsClass();
// Now enter the first three lines of your license file
// (Note carriage return line feed '\r\n' at the end of each line)
settings.License = "CommandBars Control Copyright (c) 2003-2004 Codejock Software\r\n" +
"PRODUCT-ID: XCB-ESD-ACTX-9500\r\n" +
"VALIDATE-CODE: XXX-XXX-XXX-XXX";
This same technique must also be used for any other Codejock ActiveX controls. It also appears that this step is only necessary on the main form of the application. I have other classes stored in DLL's that also use the Codejock controls, and I was not required to set the licenses individually for each one. I guess they truly are Global Settings
Code: Select all | Expand
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )
Code: Select all | Expand
oAct:SetProp("CommandBarsGlobalSettings.License", ;
"CommandBars Control Copyright (c) " + ;
"2003-2006 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"Codejock.CommandBars.ActiveX.v10.20" + CRLF +;
"VALIDATE-CODE: XXX-XXX-XXX-XXX"
Code: Select all | Expand
local oAct2
oAct2 := TActiveX():New( oWnd, "Codejock.CalendarControl.12.1.1", 150, 0, 1000, 550 )
Code: Select all | Expand
oSettings = oAct:GetProp( "CommandBarsGlobalSettings" ) // it returns an OleAuto object
oSettings:License = "CommandBars Control Copyright (c) " + ;
"2003-2006 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"Codejock.CommandBars.ActiveX.v10.20" + CRLF +;
"VALIDATE-CODE: XXX-XXX-XXX-XXX"
local oAct2
oAct2 := TActiveX():New( oWnd, "Codejock.CalendarControl.12.1.1", 150, 0, 1000, 550 )
oSettings = oAct:GetProp( "CommandBarsGlobalSettings" ) // it returns an OleAuto object
Code: Select all | Expand
oSettings = oActiveX : GetProp( "GlobalSettings" )
MsgInfo( oSettings:Version )
Code: Select all | Expand
oText := TTxtFile():New( "Codejock.CommandBars.v12.1.1.lic" )
if oText:Open()
oText:Add( "CommandBars Control Copyright (c) 2003-2008 Codejock Software" )
oText:Add( "PRODUCT-ID: Codejock.CommandBars.ActiveX.v12.1" )
oText:Add( "VALIDATE-CODE: XXX-XXX-XXX-XXX" )
oText:Close()
endif
Code: Select all | Expand
ACTIVATE WINDOW oWnd ON init(ferase("Codejock.CommandBars.v12.1.1.lic"))
Code: Select all | Expand
LOCAL GLOBALSettings:= NIL
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.13.0.0")
WiTH OBJECT GlobalSettings
:License:= "CommandBars Control Copyright (c) " + ;
"2003-2006 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
"XCB-ESD-ACTX-9600" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH