Codejock RibbonBar first tests

User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Re: Codejock RibbonBar first tests

Post by Anderson.OL »

How to position the text below the image?
FiveWin 9.03 + xHarbour !!
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

Na distribuição da OCX com o aplicativo

Sobre a Licença como resolveram ?

Ari
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

oi Lainton

eu comprei o que eu queria saber é como colocar a Licenca no momento de usar o activex, se retira o arquivo .lic dá erro. já tentei todas as formas que colocaram no forum, menos aquela de criar o file momentos antes de chamar o active de depois apagar..parece gambiarra, gostaria de usar o GlobalSettings.

Ari
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

Lainton

Aproveitando, voce sabe onde encontrar os includes das contantes que aparece direto no exemplos tipo:

XTP_ID_TOOLBAR_EXPAND

tem aquelas de Theme.. tem muita coisa onde eu acho elas ?

Nao veio no Suite pro as arquivos de contantes. (include)

Ari
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

Lainton,

Quando eu for enviar para meu cliente o sistema, vou enviar o activex, e se nao tem o arquivo .LIC na roda.. o que eles falam na documentação é para colocar no GlobalSettings.license ..a licença.. para evitar enviar o .LIC.. se um esperto pegar os dois..faz a pirataria..se ninguem saber..

Estava olhando suas mensagens na codejock..vc já tá bem na frente..passou por problemas que vou chegar neles... :-(.. eu ainda nao peguei o macete de acessar os objetos com o Activex..só dá pau de notmember..notfound..etc..quando consiguo acessar o objeto..não tem efeito..nada muda..

peguei os exemplos do forum fivetech e fui fuçando..tó aprendendo.. comprei no sabado a noite.. tô que nem criando com carrinho novo..tem muita coisa para explorar..

valeu..
Ari
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Codejock RibbonBar first tests

Post by anserkk »

Dear Mr.Ari,

There is a direct method to activate the license without the need to create a Text file and then erase.

Here is the direct method. This solution is also available in the previous page of this thread.

Code: Select all

  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
Thanks to Mr.Dionisis

Regards

Anser
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

Please send a example, where i put o code

Code: Select all

   /
  ....

  DEFINE WINDOW oWnd
  
 /* aqui gera GPF */
 License()  <-- aqui ?

  @ 0, 0 ACTIVEX oAct PROGID "Codejock.CommandBarsFrame.13.0.0" OF oWnd SIZE 0, 0

  oAct:bOnEvent = { | cEvent, aParams, pParams | RibbonBarEvent( cEvent, aParams, pParams, aButtons ) }
  oAct:Do( "AttachToWindow", oWnd:hWnd )
   ...

  ACTIVATE WINDOW oWnd ----> ON INIT License()  <-- ?

 
Tanks
Ari
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Codejock RibbonBar first tests

Post by anserkk »

Dear Mr.Ari,

Here is the sample code

Code: Select all

LOCAL GLOBALSettings:= NIL
   
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
   
// Method to Activate CodeJock Licence  
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.12.1.1")
WiTH OBJECT GlobalSettings
     :License:= "CommandBars Control Copyright (c) " + ;
     "2003-2008 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
     "Codejock.CommandBars.ActiveX.v12.1" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH
   
DEFINE WINDOW oWnd TITLE "FWH Support Codejock ActiveX"
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )  
It is working fine here.

Regards
Anser
User avatar
Ari
Posts: 128
Joined: Fri Feb 03, 2006 4:21 pm
Location: Brazil
Contact:

Re: Codejock RibbonBar first tests

Post by Ari »

Mr. Anser

Now, It is working fine

Thanks
Ari

FWH901 - xHarbour 1.1.0 - CodeJock 13.0.0 SuitePro
User avatar
Anderson.OL
Posts: 92
Joined: Thu Feb 15, 2007 11:37 am
Location: Itaocara - RJ - Brasil
Contact:

Re: Codejock RibbonBar first tests

Post by Anderson.OL »

anserkk wrote:Dear Mr.Ari,

Here is the sample code

Code: Select all

LOCAL GLOBALSettings:= NIL
   
RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
   
// Method to Activate CodeJock Licence  
GlobalSettings:= CreateObject("Codejock.CommandbarsGlobalSettings.12.1.1")
WiTH OBJECT GlobalSettings
     :License:= "CommandBars Control Copyright (c) " + ;
     "2003-2008 Codejock Software" +CRLF+ "PRODUCT-ID: " + ;
     "Codejock.CommandBars.ActiveX.v12.1" + CRLF + "VALIDATE-CODE: XXX-XXX-XXX-XXX"
END WITH
   
DEFINE WINDOW oWnd TITLE "FWH Support Codejock ActiveX"
oAct := TActiveX():New( oWnd, "Codejock.CommandBarsFrame.12.1.1", 0, 0, 0, 0 )  
It is working fine here.

Regards
Anser

this does not work with Windows Vista / windows seven.
FiveWin 9.03 + xHarbour !!
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Codejock RibbonBar first tests

Post by anserkk »

Dear Mr.Anderson,
this does not work with Windows Vista / windows seven.
It works fine in Vista and Windows 7, I have already tested it. You must run FwhApplication.Exe as Administrator or else the OS will get struck at the following line.

Code: Select all

RegisterServer( "Codejock.CommandBars.v12.1.1.ocx" )
I understand that in Vista only the user Administrator has the power to register a DLL/OCX

Regards

Anser
User avatar
Personal
Posts: 32
Joined: Sun Dec 03, 2006 12:05 pm
Location: BRASIL - Lins - SP
Contact:

Re: Codejock RibbonBar first tests

Post by Personal »

oStatusBar := TOleAuto():New( ActXPdisp( oAct:hActiveX ) )
oStatusBar:StatusBar:Visible=.T.
oStatusBar:StatusBar:AddPane( 0 )
oStatusBar:StatusBar:IdleText = "xxx"

Demais parametros para ficar similar a msg nativa.
Image

Melhor seria alguma documentação para poder desvendar os parametros gerais.
S.A.Oliveira
Lins-SP - Brasil
FWH 10.9, PellesC,MySql
Post Reply