topic
stringlengths
1
63
text
stringlengths
1
577k
Codejock RibbonBar primeras pruebas
Rossine, > Agora consigo compilar e excutar todos os exemplos codejock com harbour + msvc Cual era el problema ? Como lo has solucionado ?
Codejock RibbonBar primeras pruebas
Olá Antonio, Eu atualizei a minha versão do harbour (svn) e onde estava "Codejock.CommandBarsFrame.12.1.1" mudei para "Codejock.CommandBarsFrame.13.0.0" <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Codejock RibbonBar primeras pruebas
bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codejock RibbonBar primeras pruebas
Rossine, > No caso do harbour gera o arquivo "hb_out.log". Que contiene el fichero ? Ponlo aqui
Codejock RibbonBar primeras pruebas
Olá Antonio, Pode baixá-lo daqui: [url:3apndftf]http&#58;//rapidshare&#46;com/files/217156054/hb_out&#46;log&#46;html[/url:3apndftf]
Codejock RibbonBar primeras pruebas
Visual RibbonBar: Añadiendo controles (botones), desarrollado conjuntamente con Daniel <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> RibonBar.prg [code=fw:16qxogce]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> xtpControlButton     <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">static</span> oRb<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oAct, oMenu, oGroups, oControls, aControls := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Visual RibbonBar"</span><br /><br />   @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX oAct PROGID <span style="color: #ff0000;">"Codejock.CommandBarsFrame.12.1.1"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><br /><br />   oAct:<span style="color: #000000;">bOnEvent</span> = <span style="color: #000000;">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aControls <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachToWindow"</span>, oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />   oRb = oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AddRibbonBar"</span>, <span style="color: #ff0000;">"fwh"</span> <span style="color: #000000;">&#41;</span><br /><br />   oMenu = oRb:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Menu"</span> <span style="color: #000000;">&#41;</span><br />   oMenu:<span style="color: #000000;">Flags</span> = <span style="color: #000000;">1</span>  && xtpFlagRightAlign<br /><br />   oTabs = oMenu:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Tabs"</span> <span style="color: #000000;">&#41;</span><br />   AAdd<span style="color: #000000;">&#40;</span> aControls, oTabs:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3000</span>, <span style="color: #ff0000;">"Add"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oGroups = oMenu:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Groups"</span> <span style="color: #000000;">&#41;</span><br />   AAdd<span style="color: #000000;">&#40;</span> aControls, oGroups:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4000</span>, <span style="color: #ff0000;">"Add"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oControls = oMenu:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Controls"</span> <span style="color: #000000;">&#41;</span><br />   AAdd<span style="color: #000000;">&#40;</span> aControls, oControls:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5000</span>, <span style="color: #ff0000;">"Add Button"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aControls <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oTab, oGroup, oControl <br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />      <span style="color: #00C800;">case</span> cEvent == <span style="color: #ff0000;">"Execute"</span> .and. Len<span style="color: #000000;">&#40;</span> aControls <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />           <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />              <span style="color: #00C800;">case</span> aControls<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   oTab = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">TabCount</span> + <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Tab "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">TabCount</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                   oTab:<span style="color: #0000ff;">Id</span> = oRb:<span style="color: #000000;">TabCount</span><br />                   oTab:<span style="color: #000000;">Selected</span> = .T.<br /><br />              <span style="color: #00C800;">case</span> aControls<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #00C800;">if</span> oRb:<span style="color: #000000;">TabCount</span> > <span style="color: #000000;">0</span><br />                      oGroup = oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Group "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">GroupCount</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />                               <span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #0000ff;">Index</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> + oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">GroupCount</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />                   <span style="color: #00C800;">endif</span>   <br /><br />              <span style="color: #00C800;">case</span> aControls<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #00C800;">if</span> oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">GroupCount</span> > <span style="color: #000000;">0</span><br />                      oGroup = oRb:<span style="color: #000000;">FindGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #0000ff;">Index</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> + oRb:<span style="color: #000000;">SelectedTab</span>:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">GroupCount</span> <span style="color: #000000;">&#41;</span><br />                      oControl = oGroup:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">1</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />                      oControl:<span style="color: #000000;">Caption</span> = <span style="color: #ff0000;">"Button "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oGroup:<span style="color: #0000ff;">Count</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                   <span style="color: #00C800;">endif</span>   <br /><br />           <span style="color: #00C800;">endcase</span><br />   <span style="color: #00C800;">endcase</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>             <br /> </div>[/code:16qxogce] [img:16qxogce]http&#58;//img13&#46;imageshack&#46;us/img13/5183/10357880&#46;png[/img:16qxogce]
Codejock RibbonBar primeras pruebas
Olá Antonio, Ao sair dos exemplos, é gerado o arquivo "HB_OUT.LOG". Mesmo WEBEXP.PRG gera este arquivo. Seria possível você testar estes exemplos com HARBOUR + MSVC ?
Codejock RibbonBar primeras pruebas
Rossine, Aparecen bloques de memoria sin liberar. Ocurre igual usando Borland. Tenemos que localizar de donde proceden.
Codejock RibbonBar primeras pruebas
Olá Antonio, Como faço para gerar a ultima versão do harbour (svn) para BCC ? Mudei "set HB_COMPILER=msvc" para "set HB_COMPILER=bcc" e coloquei em meu arquivo BAT esta variavel "set CC_DIR=c:\bcc55" mas ocorrem erros na compilação. Você pode me ajudar ? Obs: Tentei usar o binário que você distribui "harbour.exe" só que está faltando a lib "hbwin.lib".
Codejock RibbonBar primeras pruebas
Olá Antonio, Eu baixei o harbour.exe de fevereiro e nela tem o arquivo hbwin.lib. Mesmo compilando com bcc é gerado o arquivo hb_out.log <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Será que ao sair do programa não é preciso finalizar a codejock não ? Tipo: [code=fw:28qmavex]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />exit procedure SAIDA<br /><br />&nbsp;oAct:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:28qmavex]
Codejock RibbonBar primeras pruebas
Rossine, Había memoria no liberada en la Clase TActiveX. Se ha detectado y ya está arreglado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> En la Clase TActiveX este nuevo método tiene que ser incluido: [code=fw:1c5u5n1w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ActXEnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>          <br /> </div>[/code:1c5u5n1w] Y reemplazar este módulo en FiveHCM.lib (Microsoft): <!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38e77312ca09d065ae5621d66e282a0ee8">http://www.mediafire.com/?sharekey=414c ... 6e282a0ee8</a><!-- m --> O este módulo en FiveHC.lib (Borland): <!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38aa07d890f5cdc567ce018c8114394287">http://www.mediafire.com/?sharekey=414c ... 8114394287</a><!-- m -->
Codejock RibbonBar primeras pruebas
Rossine, Este código NO es necesario: [code=fw:2xt8mrsu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />exit procedure SAIDA<br /><br /> oAct:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2xt8mrsu] FWH automaticamente destruye el ActiveX.
Codejock RibbonBar primeras pruebas
Olá Antonio, O problema de ser gerado o arquivo "hb_out.log" está resolvido <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Outra coisa que achei interessante, se você der um "duplo click" no "SystemButton" a clausula Bvalid() da window é processada <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [code=fw:2zyrm1ug]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">valid</span> iif<span style="color: #000000;">&#40;</span> msgyesno<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Sair ?"</span>, <span style="color: #ff0000;">"Atencao"</span> <span style="color: #000000;">&#41;</span>, .T., .F. <span style="color: #000000;">&#41;</span><br />...<br /> </div>[/code:2zyrm1ug]
Codejock RibbonBar primeras pruebas
Rossine, > O problema de ser gerado o arquivo "hb_out.log" está resolvido Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> > Outra coisa que achei interessante, se você der um "duplo click" no "SystemButton" a clausula Bvalid() da window é processada > Eso quiere decir que ese botón actúa como botón de cierre, con doble click. Gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codejock RibbonBar primeras pruebas
[quote="Antonio Linares":272cqx7f]Rossine, > O problema de ser gerado o arquivo "hb_out.log" está resolvido Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> > Outra coisa que achei interessante, se você der um "duplo click" no "SystemButton" a clausula Bvalid() da window é processada > Eso quiere decir que ese botón actúa como botón de cierre, con doble click. Gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:272cqx7f] Antonio, En estos tipos de OCX, por cada licencia de programa que venda... tengo que pagar una licencia del, por ejemplo, commandbarsframe? Tenes idea de si es asi? Graciasl
Codejock RibbonBar primeras pruebas
[quote:37miirg5] por cada licencia de programa que venda... tengo que pagar una licencia [/quote:37miirg5] Creo que no. Pagas la licencia una sola vez. De todas formas habría que revisar las condiciones que vengan especificadas en su licencia de uso, por si no es asi.
Codejock RibbonBar primeras pruebas
[quote="Antonio Linares":e17uhcxh][quote:e17uhcxh] por cada licencia de programa que venda... tengo que pagar una licencia [/quote:e17uhcxh] Creo que no. Pagas la licencia una sola vez. De todas formas habría que revisar las condiciones que vengan especificadas en su licencia de uso, por si no es asi.[/quote:e17uhcxh] Asi es Antonio, dejame por favor que ponga esta respuesta que recibi por parte de la gente del CodeJock: [quote:e17uhcxh]Hello, Our licensing is per developer. Each person working with the software needs 1 license. You need one license. Do not distribute the source code from Codejock software. No additional charge to use in your program. Let me know if you have questions. Sincerely, Coleen Stowell Codejock Customer Care [/quote:e17uhcxh]
Codejock RibbonBar primeras pruebas
Goosfancito, gracias por la información <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Una licencia por programador, y luego tantos usuarios como se quiera. Eso parece que dice <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codejock RibbonBar primeras pruebas
Olá Antonio, O Codejock (activex) está funcionando na versão 9.04 + MSVC ?
Codejock RibbonBar primeras pruebas
Rossine, No lo hemos probado aun. Vamos a probarlo y lo comentamos
Codejock RibbonBar primeras pruebas
Rossine, > O Codejock (activex) está funcionando na versão 9.04 + MSVC ? Probado y funcionando correctamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codejock RibbonBar primeras pruebas
Olá Antonio, [quote:3hndzfk0] Probado y funcionando correctamente [/quote:3hndzfk0] Gracias Maestro pela confirmação. Vou procurar a Virtual aqui no brasil para atualizar a minha versão <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Codejock RibbonBar primeras pruebas
Olá Antonio, Eu atualizei para fwh 9.04 e ao tentar compilar o exemplo aqui me ocorreu estes erros: [code=fw:2fsvjlr0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FiveHCM.lib<span style="color: #000000;">&#40;</span>ACTX.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_oleVarianToItem referenced in <span style="color: #00C800;">function</span> _InvokeEvent<br />FiveHCM.lib<span style="color: #000000;">&#40;</span>MSGSAPI.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2019: <span style="color: #000000;">unresolved</span> external symbol _hb_oleAnsToWide referenced in <span style="color: #00C800;">function</span> _HB_FUN_SENDWIDESTRINGMESSAGE<br />codej14.exe : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">2</span> unresolved externals<br /> </div>[/code:2fsvjlr0] Usando o harbour que vem junto com fwh compila e roda, mas prefiro usar o harbour SVN. Isto é possível ?
Codejock RibbonBar primeras pruebas
Rossine, Tienes que enlazar HBWIN.lib de Harbour
Codejock RibbonBar primeras pruebas
Olá Antonio, >> Tienes que enlazar HBWIN.lib de Harbour Sim ela já fazia parte do meu script. Como eu disse anteriormente, se eu compilo com o harbour para msvc que você forneceu junto com fwh 9.04, aí compila e roda corretamente. O problema de compilação se dá com o harbour SVN. Mais alguma sugestão ?
Codejock RibbonBar primeras pruebas
Rossine, Has comparado el fichero HBWIN.lib que tu generas con el que nosotros proporcionamos ? Compara tamaño y contenido.
Codejock RibbonBar primeras pruebas
Antonio, Como hago (ya no me acuerdo de vb) para que me aparezca el codejock asi como lo tenes en el vb para inspeccionar? Gracias. [quote="Antonio Linares":15ge76t5]Inspeccionando facilmente las propiedades de CodeJock desde Microsoft Word (VBA) para aprenderlas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:15ge76t5]http&#58;//img25&#46;imageshack&#46;us/img25/4921/captureg&#46;png[/img:15ge76t5][/quote:15ge76t5]
Codejock RibbonBar primeras pruebas
Espectacular. y te digo que me gustaría en algun momento ver mis app asi. [quote="richard-service":3a8ayhqk]Hi All, Finished. Add Tab Group ToolTip+bitmap [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar10&#46;jpg[/img:3a8ayhqk] Show Button ToolTip+bitmap [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar11&#46;jpg[/img:3a8ayhqk] Change Tab Color [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar12&#46;jpg[/img:3a8ayhqk] Change Interface Color - Black [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar13&#46;jpg[/img:3a8ayhqk] Change Interface Color - Silver [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar14&#46;jpg[/img:3a8ayhqk] Change Interface Color - Aqua [img:3a8ayhqk]http&#58;//www&#46;fivetech&#46;com&#46;tw/fwh/ribbonbar15&#46;jpg[/img:3a8ayhqk] [code=fw:3a8ayhqk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// FWH ActiveX Call Codejock Ocx Sample //</span><br /><span style="color: #B900B9;">// Richard                              //</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> xtpControlError              <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> xtpControlButton             <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> xtpControlPopup              <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> xtpControlButtonPopup        <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> xtpControlSplitButtonPopup   <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> xtpControlComboBox           <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> xtpControlEdit               <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> xtpControlCustom             <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#define</span> xtpControlLabel              <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> xtpControlCheckBox           <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#define</span> xtpControlGallery           <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#define</span> xtpControlRadioButton       <span style="color: #000000;">11</span><br /><br /><span style="color: #00D7D7;">#define</span> xtpImageNormal               <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> xtpImageDisabled             <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> xtpImageHot                  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> xtpImageChecked              <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> xtpImagePressed              <span style="color: #000000;">4</span><br /><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br />      <br />   <span style="color: #00C800;">local</span> oWnd, oAct <br />   <br />   <span style="color: #00C800;">local</span> oRb<br />   <span style="color: #00C800;">local</span> oQA, oQBtn1, oQBtn2, oQBtn3 <br />   <span style="color: #00C800;">local</span> oSysButton, oControl, oPopupBar  <br />   <br />   <span style="color: #00C800;">local</span> oStatusBar, oToolTipContext, oIcons<br />   <span style="color: #00C800;">local</span> oTabFiles, oGroup1<br />   <span style="color: #00C800;">local</span> oTabEdit, oGroup2<br />   <span style="color: #00C800;">local</span> oTabBuild<br />   <br />   <span style="color: #00C800;">local</span> aButtons := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <br />   <span style="color: #00C800;">local</span> oButton1, oButton2, oButton3, oButton4<br />   <span style="color: #00C800;">local</span> oExitBtn, oExitBtn2<br />   <span style="color: #00C800;">local</span> oBmp1, oBmp2, oBmp3, obmp4, obmp5, obmp6, obmp7, obmp8, obmp9<br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH Support Codejock ActiveX"</span><br />   <br />   oBmp1 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\n</span>ew2.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />   oBmp2 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\o</span>pen2.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> <br />   oBmp3 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xplorer.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span>     <br />   oBmp4 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\o</span>pen.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> <br />   oBmp5 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> <br />   oBmp6 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\k</span>eys.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> <br />   oBmp7 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\q</span>uit.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> <br />   oBmp8 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />   oBmp9 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\i</span>nfo.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />   <br />   <br />   oAct := TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"Codejock.CommandBarsFrame.12.1.1"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  <br />   <br />   <span style="color: #B900B9;">//@ 0, 0 ACTIVEX oAct PROGID "Codejock.CommandBarsFrame.12.1.1" OF oWnd</span><br /><br />   oAct:<span style="color: #000000;">bOnEvent</span> = <span style="color: #000000;">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aButtons, oWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachToWindow"</span>, oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <br />   oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EnableOffice2007Frame"</span>, .T. <span style="color: #000000;">&#41;</span><br />   oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VisualTheme"</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />           <br />   <span style="color: #B900B9;">// ToolTipContext - Richard          </span><br />   oToolTipContext := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oToolTipContext := oToolTipContext:<span style="color: #000000;">ToolTipContext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oToolTipContext:<span style="color: #0000ff;">Style</span> = <span style="color: #000000;">5</span>  && xtpToolTipOffice2007<br />   oToolTipContext:<span style="color: #000000;">ShowTitleAndDescription</span><span style="color: #000000;">&#40;</span> .T., <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   oToolTipContext:<span style="color: #000000;">ShowImage</span><span style="color: #000000;">&#40;</span> .T., <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   oToolTipContext:<span style="color: #000000;">SetMargin</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   oToolTipContext:<span style="color: #000000;">MaxTipWidth</span> = <span style="color: #000000;">180</span><br />   <br />   <span style="color: #B900B9;">// StatusBar-Richard</span><br />   oStatusBar := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">Visible</span> = .T.<br /><br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59137</span> <span style="color: #000000;">&#41;</span><br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59138</span> <span style="color: #000000;">&#41;</span><br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59139</span> <span style="color: #000000;">&#41;</span>  <br />   oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">IdleText</span> = <span style="color: #ff0000;">"FWH support Codejock RibbonBar"</span>       <br />   <br />   oIcons := oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"icons"</span> <span style="color: #000000;">&#41;</span>  <br />   <br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp1:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">1</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span> <br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp2:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">2</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span> <br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp3:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">3</span>,xtpImageNormal,.t. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// 4th param, Bool to Alpha Channel Support   </span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp4:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">4</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp5:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">5</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp6:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">6</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp7:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">7</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp8:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">8</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp9:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">9</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />   oIcons:<span style="color: #000000;">LoadBitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\e</span>dit.bmp"</span>,<span style="color: #000000;">4</span>, xtpImageNormal<span style="color: #000000;">&#41;</span> <br />    <br />   <span style="color: #B900B9;">//oAct:Hide()</span><br /><br />   <span style="color: #B900B9;">// RibbonBar - Richard</span><br />   oRb = oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AddRibbonBar"</span>, <span style="color: #ff0000;">"Ribbon Bar"</span> <span style="color: #000000;">&#41;</span><br />   <br />   oRb:<span style="color: #000000;">EnableDocking</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span><span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">EnableFrameTheme</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>               <br />   oRb:<span style="color: #000000;">ShowQuickAccessBelowRibbon</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">ShowCaptionAlways</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> <br />   oRb:<span style="color: #000000;">ShowQuickAccess</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span>  <br />   oRb:<span style="color: #000000;">ShowGripper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #B900B9;">// QuickAccess - Richard   </span><br />   oQA:= oRb:<span style="color: #000000;">QuickAccessControls</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   oQBtn1 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&New"</span>         <span style="color: #000000;">&#41;</span><br />   oQBtn2 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Save"</span>        <span style="color: #000000;">&#41;</span><br />   oQBtn3 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"&copy"</span>        <span style="color: #000000;">&#41;</span><br />   oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"&info"</span>        <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #B900B9;">// Add SysButton - Richard</span><br />   oSysButton := oRb:<span style="color: #000000;">AddSystemButton</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oSysButton:<span style="color: #000000;">IconId</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />      <br />   oSysButton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"&New"</span>         <span style="color: #000000;">&#41;</span><br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"&Open..."</span>     <span style="color: #000000;">&#41;</span><br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"&Save"</span>        <span style="color: #000000;">&#41;</span><br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Save &As..."</span>  <span style="color: #000000;">&#41;</span><br />   <br />   oControl := oSysButton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"&Print"</span><span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br />   <br />   oPopupBar := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          oPopupBar := oPopupBar:<span style="color: #000000;">CreateCommandBar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CXTPRibbonSystemPopupBarPage"</span><span style="color: #000000;">&#41;</span><br /><br />          oControl:<span style="color: #000000;">CommandBar</span> = oPopupBar<br />          oControl := oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Preview and print the document"</span><span style="color: #000000;">&#41;</span><br />          oControl:<span style="color: #000000;">Width</span> = <span style="color: #000000;">296</span><br />          oControl:<span style="color: #000000;">DefaultItem</span> = .T.<br />          oControl:<span style="color: #0000ff;">Style</span> = <span style="color: #000000;">1</span>  && xtpButtonCaption<br />          oPopupBar:<span style="color: #000000;">DefaultButtonStyle</span> = <span style="color: #000000;">5</span>  && xtpButtonCaptionAndDescription<br />          oPopupBar:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span><br />          oPopupBar:<span style="color: #000000;">ShowGripper</span> = .F.<br /><br />             oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"Print Pre&view"</span> <span style="color: #000000;">&#41;</span><br />          oPrnSetup = oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"Pr&int Setup..."</span> <span style="color: #000000;">&#41;</span><br />             oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Print Pre&view"</span> <span style="color: #000000;">&#41;</span><br />             <br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1230</span>, <span style="color: #ff0000;">"Prepare"</span> <span style="color: #000000;">&#41;</span><br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1235</span>, <span style="color: #ff0000;">"Send"</span> <span style="color: #000000;">&#41;</span><br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1230</span>, <span style="color: #ff0000;">"Publish"</span> <span style="color: #000000;">&#41;</span><br />   oExitBtn2 = oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Close"</span> <span style="color: #000000;">&#41;</span><br />  <br />   oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span>    <br />   <br />   <br />   <span style="color: #B900B9;">// RibbonBar Table - Richard   </span><br />   oTabFiles = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"&Files"</span> <span style="color: #000000;">&#41;</span> <br />   <br />   oTabFiles_Grp1 = oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"&Clipboard"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   oTabFiles_Grp1:<span style="color: #000000;">ShowOptionButton</span> = .T.<br />   <br />   <span style="color: #B900B9;">// TabFiles Group ToolTip - Richard</span><br />   oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #0000ff;">Id</span> = <span style="color: #000000;">1000</span><br />   oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">ToolTipText</span> = <span style="color: #ff0000;">"Clipboard"</span><br />   oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">DescriptionText</span> = <span style="color: #ff0000;">"Show clipboard dialog"</span><br />   oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">IconId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <br />      <br />   <br />   oPaste := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Paste"</span><span style="color: #000000;">&#41;</span><br />    oPaste:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Paste"</span> <span style="color: #000000;">&#41;</span><br />    oPaste:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Paste Special"</span> <span style="color: #000000;">&#41;</span><br />   oButton1 = oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Cut"</span> <span style="color: #000000;">&#41;</span><br />   oButton2 = oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"&Copy"</span> <span style="color: #000000;">&#41;</span><br />          <br />   oBtn1 := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"Format"</span><span style="color: #000000;">&#41;</span><br />   oBtn1:<span style="color: #000000;">Enabled</span> = .F.<br />   <br />   oBtn2 := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Delete"</span><span style="color: #000000;">&#41;</span><br />   oExitBtn := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>  xtpControlButton, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Exit"</span><span style="color: #000000;">&#41;</span><br />            <br />   <br />   oTabFiles_Grp2 := oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&Font"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  <br />   oButton3 = oTabFiles_Grp2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">4</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />   oButton4 = oTabfiles_Grp2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />   oButton4:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span><br />   oButton4:<span style="color: #000000;">Width</span> = <span style="color: #000000;">70</span><br />   oButton4:<span style="color: #000000;">Height</span> = <span style="color: #000000;">70</span><br />   <br />       <br />   oTabEdit  = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Edit"</span> <span style="color: #000000;">&#41;</span>  <br />   <br />   oTabBuild = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Build"</span> <span style="color: #000000;">&#41;</span> <br />   oTabBuild:<span style="color: #0000ff;">Color</span> = <span style="color: #000000;">5</span>   <br />   oTable_Grp := oTabBuild:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&Show/Hide"</span>, <span style="color: #000000;">5025</span><span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2807</span>, <span style="color: #ff0000;">"Ruler"</span> <span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2808</span>, <span style="color: #ff0000;">"GridLines"</span> <span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2809</span>, <span style="color: #ff0000;">"Properties"</span> <span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2810</span>, <span style="color: #ff0000;">"Document Map"</span> <span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2811</span>, <span style="color: #ff0000;">"Thumbnails"</span> <span style="color: #000000;">&#41;</span><br />   oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2812</span>, <span style="color: #ff0000;">"Document Action Bar"</span> <span style="color: #000000;">&#41;</span><br />   <br />   oControlOptions := oRb:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Options"</span><span style="color: #000000;">&#41;</span><br />   oControlOptions:<span style="color: #000000;">Flags</span> = <span style="color: #000000;">1</span>  && xtpFlagRightAlign<br /><br />   oControl := oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Styles"</span><span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3000</span>, <span style="color: #ff0000;">"Blue"</span>   <span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3001</span>, <span style="color: #ff0000;">"Black"</span>  <span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3003</span>, <span style="color: #ff0000;">"Silver"</span> <span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3002</span>, <span style="color: #ff0000;">"Aqua"</span>   <span style="color: #000000;">&#41;</span><br /><br />   oControlPopup := oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Font"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />   oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32883</span>, <span style="color: #ff0000;">"System Default"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br /><br />   oControl := oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32884</span>, <span style="color: #ff0000;">"Normal"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br />   oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32885</span>, <span style="color: #ff0000;">"Large"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />   oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32886</span>, <span style="color: #ff0000;">"Extra Large"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br /><br />   oControl := oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">32887</span>, <span style="color: #ff0000;">"Auto Resize Icons"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />   oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br /><br />   oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3004</span>, <span style="color: #ff0000;">"Right To Left"</span> <span style="color: #000000;">&#41;</span><br />   oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3005</span>, <span style="color: #ff0000;">"Animation"</span> <span style="color: #000000;">&#41;</span><br /><br />   oControlAbout := oRb:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4000</span>, <span style="color: #ff0000;">"&About"</span><span style="color: #000000;">&#41;</span><br />   oControlAbout&#<span style="color: #000000;">058</span>;Flags = <span style="color: #000000;">1</span>  && xtpFlagRightAlign<br />      <br />   <br />   AAdd<span style="color: #000000;">&#40;</span> aButtons, oButton1 <span style="color: #000000;">&#41;</span><br />   AAdd<span style="color: #000000;">&#40;</span> aButtons, oButton2 <span style="color: #000000;">&#41;</span><br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn1 <span style="color: #000000;">&#41;</span><br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn2 <span style="color: #000000;">&#41;</span><br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn3 <span style="color: #000000;">&#41;</span>   <br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oExitBtn <span style="color: #000000;">&#41;</span> <br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oExitBtn2 <span style="color: #000000;">&#41;</span><br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oControlAbout <span style="color: #000000;">&#41;</span><br />   AADD<span style="color: #000000;">&#40;</span> aButtons, oPrnSetup <span style="color: #000000;">&#41;</span> <br />      <br />   <br />   oButton1:<span style="color: #000000;">Caption</span> = <span style="color: #ff0000;">"FiveWin power!"</span><br />   oButton1:<span style="color: #000000;">TooltipText</span> = <span style="color: #ff0000;">"Ribbonbar for FWH"</span><br />     <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />     <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aButtons, oWnd <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />      <span style="color: #00C800;">case</span> cEvent == <span style="color: #ff0000;">"Execute"</span> .and. Len<span style="color: #000000;">&#40;</span> aButtons <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />           <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button 1"</span> <span style="color: #000000;">&#41;</span><br />                   <br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button 2"</span> <span style="color: #000000;">&#41;</span><br /><br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 1"</span> <span style="color: #000000;">&#41;</span><br /><br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 2"</span> + CRLF + <span style="color: #ff0000;">"FIVEWIN SHARING POWER"</span> <span style="color: #000000;">&#41;</span><br /><br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 3"</span> <span style="color: #000000;">&#41;</span><br />                   <br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <br />                                <br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />                   <br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FWH's ActiveX Power support Codejock"</span>, <span style="color: #ff0000;">"About Codejock"</span> <span style="color: #000000;">&#41;</span>       <br />                   <br />              <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />                   PrinterSetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br />                   <br />                                             <br />                   <br />           <span style="color: #00C800;">endcase</span>        <br />   <span style="color: #00C800;">endcase</span>        <br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> </div>[/code:3a8ayhqk] Richard[/quote:3a8ayhqk]
Codejock RibbonBar primeras pruebas
Olá Antonio, [quote:1q9x82kg] Has comparado el fichero HBWIN.lib que tu generas con el que nosotros proporcionamos ? Compara tamaño y contenido. [/quote:1q9x82kg] [code=fw:1q9x82kg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />hbwin.lib de FWH                <span style="color: #000000;">296.182</span>    <span style="color: #000000;">08</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2009</span>    <span style="color: #000000;">21</span>:<span style="color: #000000;">47</span>     Harbour <span style="color: #000000;">1.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">10434</span><span style="color: #000000;">&#41;</span><br />hbwin.lib de Harbour SVN        <span style="color: #000000;">484.086</span>    <span style="color: #000000;">26</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2009</span>    <span style="color: #000000;">20</span>:<span style="color: #000000;">34</span>     Harbour <span style="color: #000000;">1.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">10936</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1q9x82kg] Tenho muito interesse em usar o MSVC, visto que em testes comparativos com o BCC ele chega a ser quase o dobro mais veloz na execução que o BCC e sem falar que é mais atual que o BCC também <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> .
Codejock RibbonBar primeras pruebas
HOLA AMIGOS DEL FORO:: NO ME FUNCIONA EL MODO Q SE EXPLICA DE REGISTRAR EL ocx... ALGUIEN PODRIA DARME LUCES:: GRACIAS el OCX.. corre de lujo.. esta muy bien
Codejock RibbonBar primeras pruebas
el tema es que esto no funciona:: if ! IsActiveX( "Codejock.CommandBars.v13.0.0.Demo.ocx" ) RegisterServer( "Codejock.CommandBars.v13.0.0.Demo.ocx" ) endif tampoco esto:: WinExec( "REGSVR32 " + cDestino + " /s" ) como se debe registrar el OCX desde Fwh... ALGUIEN SABE
Codejock RibbonBar primeras pruebas
[code=fw:27oljx7c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> ! IsActiveX<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Codejock.CommandBars.13.0.0.Demo"</span> <span style="color: #000000;">&#41;</span><br />    RegisterServer<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Codejock.CommandBars.v13.0.0.Demo.ocx"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span></div>[/code:27oljx7c] Debes indicarlo sin la "v" y sin ".ocx" cuando haces la consulta con IsActivex() Si no está registrada, entonces la registras con RegisterServer() , agregando, ahora si, la "v" y ".ocx" Saludos, Carlos Gallego
Codejock RibbonBar primeras pruebas
AMIGOS Y COLEGAS ESTOY TRATANDO DE APLICAR EL OCX.. DE CODEJ.... PERO EN ALGUNOS ASPECTOS NO ENTIENDO LA LOGICA PARA USAR DICHO OCX... ALGUNO DE UDS. Q LO DOMINAN PODRIAN EXPLICARLO EN FORMA MAS BASICA:: GRACIAS::
Codejock RibbonBar primeras pruebas
Olá, Estou procurando uma forma de colocar a ACTION nos parametros do Button, sem ter que criar uma RibbonBarEvent. Seria um codeblock ?, estou pesquisando o Help e não achei. Ari
Codejock RibbonBar primeras pruebas
Ari, No puedes almacenar un codeblock en un dato de un ActiveX ni de un objeto OleAuto, ya que el codeblock es una estructura de datos propia de Harbour/xHarbour Como mucho podrias almacenar su puntero como un numero, pero tendrías que bloquearlo desde harbour/xHarbour para que el recolector de basuras no lo elimine
Codejock RibbonBar primeras pruebas
Como deixar a RibbonBar no mesmo Skin ? [img:1l4kp6vq]http&#58;//img219&#46;imageshack&#46;us/img219/1443/imagem1wne&#46;jpg[/img:1l4kp6vq] Estou usando a RibbonBar 13.0.0 e SkiFrameWork 13.0.0 Ari
Codejock RibbonBar primeras pruebas
Menu MDI junto com a RibbonBar ? tem como ? Ari
Codejock RibbonBar primeras pruebas
Como deixar a RibbonBar com a Skin Theme em uso ? Ari
Codejock RibbonBar primeras pruebas
atusBar := 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. [img:92q1s0ob]http&#58;//www&#46;personal&#46;com&#46;br/img/b1a&#46;jpg[/img:92q1s0ob] Melhor seria alguma documentação para poder desvendar os parametros gerais.
Codejock RibbonBar primeras pruebas
Colegas como comenta Ari:: oStatusBar := TOleAuto():New( ActXPdisp( oAct:hActiveX ) ) oStatusBar:StatusBar:Visible=.T. oStatusBar:StatusBar:AddPane( 0 ) oStatusBar:StatusBar:IdleText = "xxx" oStatusBar:StatusBar:AddPane( 59137 ) oStatusBar:StatusBar:AddPane( 59138 ) oStatusBar:StatusBar:AddPane( 59139 ) estos serian algunos otros.. pero como se controlarian los eventos de la statusbar ... AUN no encuentro la forma,, quisas alguno de los colegas mas adelantados SEPA.. Auna Ayudita::: GRACIAS
Codejock RibbonBar primeras pruebas
..
Codejock RibbonBar primeras pruebas
??
Codejock RibbonBar primeras pruebas
..
Codejock and Harbour + FWH
Hi, I'm trying to integrate the components of "Codejock Bar" into FWH. I tried the following code (found in the forum): [code=fw:16ftktma]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">PUBLIC</span> oWnd, AOCRS, Orb, oTabFiles, oTabEdit, oTabBuild <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br />   @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX AOCRS progid <span style="color: #ff0000;">"Codejock.CommandBarsFrame.16.2.6"</span> <span style="color: #0000ff;">OF</span> oWnd <br />   AOCRS: <span style="color: #00C800;">Do</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AttachToWindow"</span> oWnd: <span style="color: #000000;">hWnd</span><span style="color: #000000;">&#41;</span> <br />   orb = AOCRS: <span style="color: #00C800;">Do</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"AddRibbonBar"</span>, <span style="color: #ff0000;">"fwh"</span><span style="color: #000000;">&#41;</span> <br />   oTabFiles = orb: <span style="color: #000000;">InsertTab</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>, <span style="color: #ff0000;">"& Files"</span><span style="color: #000000;">&#41;</span> <br />   oTabEdit = orb: <span style="color: #000000;">InsertTab</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #ff0000;">"& Edit"</span><span style="color: #000000;">&#41;</span> <br />   oTabBuild = orb: <span style="color: #000000;">InsertTab</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>, <span style="color: #ff0000;">"& Build"</span><span style="color: #000000;">&#41;</span> <br />   oTabFiles: <span style="color: #000000;">Groups</span>: <span style="color: #000000;">AddGroup</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test 1"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <br />   oTabFiles: <span style="color: #000000;">Groups</span>: <span style="color: #000000;">AddGroup</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test 2"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:16ftktma] Initially the program runs correctly and displays a message that says that I'm Using The ActiveX (Trial version) of Codejock. After that only a black stripe is displayed on screen instead of RibbonBar. Any suggestion, or any sample, about how to use use Codejock components and FWH? Regards, George Harbour August 2013 FWH ??13.08 PellesC
Codejock and Harbour + FWH
Hi Look it [code=fw:1zg6obwo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlButton &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlPopup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlButtonPopup &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">3</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlSplitButtonPopup &nbsp; <span style="color: #000000;">4</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlComboBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlEdit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">6</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlCustom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">7</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlLabel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlCheckBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">9</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlGallery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">10</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpControlRadioButton &nbsp; &nbsp; &nbsp; <span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpImageNormal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpImageDisabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpImageHot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpImageChecked &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">3</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> xtpImagePressed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oAct<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oRb<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oQA, oQBtn1, oQBtn2, oQBtn3<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oSysButton, oControl, oPopupBar &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oStatusBar, oToolTipContext, oIcons<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oTabFiles, oGroup1<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oTabEdit, oGroup2<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oTabBuild<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> aButtons := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oButton1, oButton2, oButton3, oButton4<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oExitBtn, oExitBtn2<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oBmp1, oBmp2, oBmp3, obmp4, obmp5, obmp6, obmp7, obmp8, obmp9<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"FWH Support Codejock ActiveX"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp1 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\n</span>ew2.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp2 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\o</span>pen2.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp3 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xplorer.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp4 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\o</span>pen.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp5 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp6 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\k</span>eys.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp7 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\q</span>uit.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp8 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBmp9 := TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\i</span>nfo.bmp"</span>, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oAct := TActiveX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"Codejock.CommandBarsFrame.12.1.1"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//@ 0, 0 ACTIVEX oAct PROGID "Codejock.CommandBarsFrame.12.1.1" OF oWnd</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oAct:<span style="color: #000000;">bOnEvent</span> = <span style="color: #000000;">&#123;</span> | cEvent, aParams, pParams | RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aButtons, oWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachToWindow"</span>, oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EnableOffice2007Frame"</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VisualTheme"</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ToolTipContext - Richard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext := oToolTipContext:<span style="color: #000000;">ToolTipContext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext:<span style="color: #0000ff;">Style</span> = <span style="color: #000000;">5</span> &nbsp;&& xtpToolTipOffice2007<br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext:<span style="color: #000000;">ShowTitleAndDescription</span><span style="color: #000000;">&#40;</span> .T., <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext:<span style="color: #000000;">ShowImage</span><span style="color: #000000;">&#40;</span> .T., <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext:<span style="color: #000000;">SetMargin</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oToolTipContext:<span style="color: #000000;">MaxTipWidth</span> = <span style="color: #000000;">180</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// StatusBar-Richard</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">Visible</span> = .T.<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59137</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59138</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">AddPane</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59139</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oStatusBar:<span style="color: #000000;">StatusBar</span>:<span style="color: #000000;">IdleText</span> = <span style="color: #ff0000;">"FWH support Codejock RibbonBar"</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons := oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"icons"</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp1:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">1</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp2:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">2</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp3:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">3</span>,xtpImageNormal,.t. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// 4th param, Bool to Alpha Channel Support &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp4:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">4</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp5:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">5</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp6:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">6</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp7:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">7</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp8:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">8</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> oBmp9:<span style="color: #000000;">hBitmap</span>,<span style="color: #000000;">9</span>,xtpImageNormal,.f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oIcons:<span style="color: #000000;">LoadBitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\e</span>dit.bmp"</span>,<span style="color: #000000;">4</span>, xtpImageNormal<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//oAct:Hide()</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// RibbonBar - Richard</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oRb = oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AddRibbonBar"</span>, <span style="color: #ff0000;">"Ribbon Bar"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">EnableDocking</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">64</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">EnableFrameTheme</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">ShowQuickAccessBelowRibbon</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">ShowCaptionAlways</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">ShowQuickAccess</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oRb:<span style="color: #000000;">ShowGripper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// QuickAccess - Richard &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oQA:= oRb:<span style="color: #000000;">QuickAccessControls</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oQBtn1 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&New"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oQBtn2 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Save"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oQBtn3 := oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"&copy"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oQA:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"&info"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Add SysButton - Richard</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysButton := oRb:<span style="color: #000000;">AddSystemButton</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysButton:<span style="color: #000000;">IconId</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oSysButton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"&New"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"&Open..."</span> &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"&Save"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Save &As..."</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControl := oSysButton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"&Print"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oPopupBar := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> ActXPdisp<span style="color: #000000;">&#40;</span> oAct:<span style="color: #000000;">hActiveX</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPopupBar := oPopupBar:<span style="color: #000000;">CreateCommandBar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CXTPRibbonSystemPopupBarPage"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style="color: #000000;">CommandBar</span> = oPopupBar<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl := oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Preview and print the document"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style="color: #000000;">Width</span> = <span style="color: #000000;">296</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style="color: #000000;">DefaultItem</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style="color: #0000ff;">Style</span> = <span style="color: #000000;">1</span> &nbsp;&& xtpButtonCaption<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPopupBar:<span style="color: #000000;">DefaultButtonStyle</span> = <span style="color: #000000;">5</span> &nbsp;&& xtpButtonCaptionAndDescription<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPopupBar:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPopupBar:<span style="color: #000000;">ShowGripper</span> = .F.<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"Print Pre&view"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrnSetup = oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"Pr&int Setup..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPopupBar:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"Print Pre&view"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1230</span>, <span style="color: #ff0000;">"Prepare"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1235</span>, <span style="color: #ff0000;">"Send"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1230</span>, <span style="color: #ff0000;">"Publish"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oExitBtn2 = oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Close"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oSysbutton:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// RibbonBar Table - Richard &nbsp;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"&Files"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1 = oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"&Clipboard"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1:<span style="color: #000000;">ShowOptionButton</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// TabFiles Group ToolTip - Richard</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #0000ff;">Id</span> = <span style="color: #000000;">1000</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">ToolTipText</span> = <span style="color: #ff0000;">"Clipboard"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">DescriptionText</span> = <span style="color: #ff0000;">"Show clipboard dialog"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp1:<span style="color: #000000;">ControlGroupOption</span>:<span style="color: #000000;">IconId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oPaste := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Paste"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oPaste:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Paste"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oPaste:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Paste Special"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton1 = oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Cut"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton2 = oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"&Copy"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn1 := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, <span style="color: #ff0000;">"Format"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn1:<span style="color: #000000;">Enabled</span> = .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn2 := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">1</span>, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Delete"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oExitBtn := oTabFiles_Grp1:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> &nbsp;xtpControlButton, <span style="color: #000000;">7</span>, <span style="color: #ff0000;">"Exit"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oTabFiles_Grp2 := oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&Font"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oButton3 = oTabFiles_Grp2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">4</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton4 = oTabfiles_Grp2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> xtpControlButton, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton4:<span style="color: #000000;">SetIconSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton4:<span style="color: #000000;">Width</span> = <span style="color: #000000;">70</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton4:<span style="color: #000000;">Height</span> = <span style="color: #000000;">70</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oTabEdit &nbsp;= oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Edit"</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oTabBuild = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Build"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTabBuild:<span style="color: #0000ff;">Color</span> = <span style="color: #000000;">5</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp := oTabBuild:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"&Show/Hide"</span>, <span style="color: #000000;">5025</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2807</span>, <span style="color: #ff0000;">"Ruler"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2808</span>, <span style="color: #ff0000;">"GridLines"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2809</span>, <span style="color: #ff0000;">"Properties"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2810</span>, <span style="color: #ff0000;">"Document Map"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2811</span>, <span style="color: #ff0000;">"Thumbnails"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oTable_Grp:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">2812</span>, <span style="color: #ff0000;">"Document Action Bar"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControlOptions := oRb:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Options"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControlOptions:<span style="color: #000000;">Flags</span> = <span style="color: #000000;">1</span> &nbsp;&& xtpFlagRightAlign<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControl := oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Styles"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3000</span>, <span style="color: #ff0000;">"Blue"</span> &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3001</span>, <span style="color: #ff0000;">"Black"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3003</span>, <span style="color: #ff0000;">"Silver"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3002</span>, <span style="color: #ff0000;">"Aqua"</span> &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControlPopup := oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Font"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32883</span>, <span style="color: #ff0000;">"System Default"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControl := oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32884</span>, <span style="color: #ff0000;">"Normal"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32885</span>, <span style="color: #ff0000;">"Large"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">32886</span>, <span style="color: #ff0000;">"Extra Large"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControl := oControlPopup:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">32887</span>, <span style="color: #ff0000;">"Auto Resize Icons"</span>, <span style="color: #000000;">-1</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style="color: #000000;">BeginGroup</span> = .T.<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3004</span>, <span style="color: #ff0000;">"Right To Left"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControlOptions:<span style="color: #000000;">CommandBar</span>:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3005</span>, <span style="color: #ff0000;">"Animation"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oControlAbout := oRb:<span style="color: #000000;">Controls</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4000</span>, <span style="color: #ff0000;">"&About"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oControlAbout&#<span style="color: #000000;">058</span>;Flags = <span style="color: #000000;">1</span> &nbsp;&& xtpFlagRightAlign<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aButtons, oButton1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aButtons, oButton2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oQBtn3 <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oExitBtn <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oExitBtn2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oControlAbout <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aButtons, oPrnSetup <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oButton1:<span style="color: #000000;">Caption</span> = <span style="color: #ff0000;">"FiveWin power!"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oButton1:<span style="color: #000000;">TooltipText</span> = <span style="color: #ff0000;">"Ribbonbar for FWH"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">function</span> RibbonBarEvent<span style="color: #000000;">&#40;</span> cEvent, aParams, pParams, aButtons, oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> cEvent == <span style="color: #ff0000;">"Execute"</span> .and. Len<span style="color: #000000;">&#40;</span> aButtons <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button 2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 2"</span> + CRLF + <span style="color: #ff0000;">"FIVEWIN SHARING POWER"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From Quick Access Button 3"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FWH's ActiveX Power support Codejock"</span>, <span style="color: #ff0000;">"About Codejock"</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> aButtons<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hObj</span> == aParams<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PrinterSetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:1zg6obwo]
Codejock and Harbour + FWH
Thanks Richard. Unfortunately this sample code does not work either. All I get is the warning message that I'm using the trial version. After clicking Yes or No button, the program closes. [img:1oqo0xq0]https&#58;//imagizer&#46;imageshack&#46;us/v2/487x304q90/191/0t0t&#46;png[/img:1oqo0xq0] Saludos, George
Codejock and Harbour + FWH
Hi I just test codejock v15.0.1 work fine.
Codejock and Harbour + FWH
Richard, I did recompile with xHarbour Pro + FWH 13.08 and now the ribbon is displayed: [img:2opqb11k]https&#58;//imagizer&#46;imageshack&#46;us/v2/240x127q90/c/199/682i&#46;png[/img:2opqb11k] However errors are displayed when I click ribbon bar buttons. [code=fw:2opqb11k]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\___MTA64\RICHARD.EXE <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">399</span>,<span style="color: #000000;">744</span> bytes<br />   Compiler version: <span style="color: #000000;">xHarbour</span> <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Build <span style="color: #000000;">20130617</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWHX</span> <span style="color: #000000;">13.07</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">4</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">01</span>/<span style="color: #000000;">26</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">51</span>:<span style="color: #000000;">11</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1070</span>  Argument error: ==<br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = N   <span style="color: #000000;">171331776</span><br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = O   <span style="color: #000000;">171355984</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\___MTA64\Richard.prg => RIBBONBAREVENT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\___MTA64\Richard.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\ACTIVEX.PRG => TACTIVEX&#<span style="color: #000000;">058</span>;ONEVENT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">141</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1003</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">C</span>:\___MTA64\Richard.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i7 CPU         <span style="color: #000000;">870</span>  @ <span style="color: #000000;">2</span>.93GHz <span style="color: #000000;">75</span> Mhz<br />   Hardware memory: <span style="color: #000000;">8184</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">7</span><br />      <span style="color: #000000;">1</span> ,                                                                                                     <br />      <span style="color: #000000;">2</span> , C:\PROGRA~<span style="color: #000000;">2</span>\CODEJO~<span style="color: #000000;">1</span>\ActiveX\XTREME~<span style="color: #000000;">1.6</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>\Bin\CODEJO~<span style="color: #000000;">3</span>.OCX                                          <br />      <span style="color: #000000;">3</span> , C:\Windows\syswow64\SHLWAPI.dll                                                                     <br />      <span style="color: #000000;">4</span> , C:\___MTA64\RICHARD.EXE                                                                             <br />      <span style="color: #000000;">5</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Windows\syswow64\ole32.dll                                                                       <br />      <span style="color: #000000;">6</span> <span style="color: #00C800;">Default</span> IME, C:\Windows\syswow64\USER32.dll                                                                      <br />      <span style="color: #000000;">7</span> GDI+ <span style="color: #0000ff;">Window</span>, C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.7601</span>.18120_none_72d2e82386681b</div>[/code:2opqb11k] It's possible the problem is related to using PellesC by xHarbour Pro. When Using Harbour + FWH I get the following Error: [code=fw:2opqb11k]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\___MTA64\RICHARD.EXE <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">921</span>,<span style="color: #000000;">472</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1306132159<span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">13.07</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">1</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">01</span>/<span style="color: #000000;">26</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">52</span>:<span style="color: #000000;">09</span><br />   Error description: <span style="color: #000000;"><span style="color: #000000;">&#40;</span>DOS</span> Error <span style="color: #000000;">-2147352562</span><span style="color: #000000;">&#41;</span> WINOLE/<span style="color: #000000;">1007</span>  Argument error: <span style="color: #000000;">VISUALTHEME</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = L   .T.<br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => TOLEAUTO:<span style="color: #000000;">VISUALTHEME</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => __OBJSENDMSG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\ACTIVEX.PRG => TACTIVEX&#<span style="color: #000000;">058</span>;DO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">95</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">richard</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i7 CPU         <span style="color: #000000;">870</span>  @ <span style="color: #000000;">2</span>.93GHz <span style="color: #000000;">2950</span> Mhz<br />   Hardware memory: <span style="color: #000000;">8184</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">6</span><br />      <span style="color: #000000;">1</span> ,                                                                                                     <br />      <span style="color: #000000;">2</span> , C:\PROGRA~<span style="color: #000000;">2</span>\CODEJO~<span style="color: #000000;">1</span>\ActiveX\XTREME~<span style="color: #000000;">1.6</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>\Bin\CODEJO~<span style="color: #000000;">3</span>.OCX                                          <br />      <span style="color: #000000;">3</span> , C:\Windows\syswow64\SHLWAPI.dll                                                                     <br />      <span style="color: #000000;">4</span> , C:\___MTA64\RICHARD.EXE                                                                             <br />      <span style="color: #000000;">5</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Windows\syswow64\OLE32.DLL                                                                       <br />      <span style="color: #000000;">6</span> GDI+ <span style="color: #0000ff;">Window</span>, C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.7601</span>.18120_none_72d2e82386681b <br /> </div>[/code:2opqb11k] Please see below my BAT file used with Harbour: [code=fw:2opqb11k]<div class="fw" id="{CB}" style="font-family: monospace;">@ECHO OFF<br />CLS<br />ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿<br />ECHO ³ FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">13.08</span> - Aug.  <span style="color: #000000;">2013</span>          Harbour development <span style="color: #0000ff;">power</span>  ³Ü<br />ECHO ³ <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2013</span>   <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span>/<span style="color: #000000;">8</span> ³Û<br />ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ<br />ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß<br /><br />CLS<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />set FWDIR=C:\FWH_13<span style="color: #000000;">.08</span><br />set HBDIR=c:\harbour_aug13<br /><br />rem echo <span style="color: #0000ff;">on</span><br />rem <span style="color: #00C800;">pause</span> <span style="color: #ff0000;">"b"</span><br />set GT=gtgui<br /><br />ECHO Compiling...<br /><br />set hdir=%HBDIR%<br />set hdirl=%hdir%\lib<br />set fwh=%FWDIR%<br />set bcdir=c:\bcc582<br /><br />rem echo <span style="color: #0000ff;">on</span><br />rem <span style="color: #00C800;">pause</span> <span style="color: #ff0000;">"c"</span><br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log <span style="color: #000000;">2</span>> warnings.log<br /><span style="color: #00C800;">if</span> errorlevel <span style="color: #000000;">1</span> goto COMPILEERRORS<br />@type comp.log<br />@type warnings.log<br /><br />echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b32.bc<br />%bcdir%\bin\bcc32 -M -c @b32.bc<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %<span style="color: #000000;">1</span><br />rem <span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %vcdir%\bin\rc -r -d__FLAT__ %<span style="color: #000000;">1</span><br /><br />echo %bcdir%\lib\c0w32.obj + > b32.bc<br />echo %<span style="color: #000000;">1</span>.obj, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.exe, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.map, + >> b32.bc<br />echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib %fwh%\lib\libmysqld.lib %fwh%\lib\dolphin.lib + >> b32.bc<br />echo %hdirl%\hbwin.lib + >> b32.bc<br />echo %hdirl%\gtwin.lib + >> b32.bc<br />echo %hdirl%\gtgui.lib + >> b32.bc<br />echo %hdirl%\hbrtl.lib + >> b32.bc<br />echo %hdirl%\hbvm.lib + >> b32.bc<br />echo %hdirl%\hblang.lib + >> b32.bc<br />echo %hdirl%\hbmacro.lib + >> b32.bc<br />echo %hdirl%\hbrdd.lib + >> b32.bc<br />echo %hdirl%\rddntx.lib + >> b32.bc<br />echo %hdirl%\rddcdx.lib + >> b32.bc<br />echo %hdirl%\rddfpt.lib + >> b32.bc<br />echo %hdirl%\hbsix.lib + >> b32.bc<br />echo %hdirl%\hbdebug.lib + >> b32.bc<br />echo %hdirl%\hbcommon.lib + >> b32.bc<br />echo %hdirl%\hbpp.lib + >> b32.bc<br />echo %hdirl%\hbcpage.lib + >> b32.bc<br />echo %hdirl%\hbcplr.lib + >> b32.bc<br />echo %hdirl%\hbct.lib + >> b32.bc<br />echo %hdirl%\hbpcre.lib + >> b32.bc<br />echo %hdirl%\xhb.lib + >> b32.bc<br />echo %hdirl%\hbziparc.lib + >> b32.bc<br />echo %hdirl%\hbmzip.lib + >> b32.bc<br />echo %hdirl%\hbzlib.lib + >> b32.bc<br />echo %hdirl%\minizip.lib + >> b32.bc<br />echo %hdirl%\png.lib + >> b32.bc<br />echo %hdirl%\hbcurl.lib + >> b32.bc<br />echo %hdirl%\hbusrrdd.lib + >> b32.bc<br />echo %fwh%\lib\libcurl.lib + >> b32.bc<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdirl%\rddads.lib + >> b32.bc<br />rem echo %hdirl%\Ace32.lib + >> b32.bc<br /><br /> echo rddads_harbour.lib + >> b32.bc<br /> echo Ace32.lib + >> b32.bc<br /><br />rem echo %fwh%\lib\dolphin.lib + >> b32.bc<br />rem echo %fwh%\lib\libmysql.lib + >> b32.bc<br /><br />echo %bcdir%\lib\cw32.lib + >> b32.bc<br />echo %bcdir%\lib\uuid.lib + >> b32.bc<br />echo %bcdir%\lib\import32.lib + >> b32.bc<br />echo %bcdir%\lib\ws2_32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc<br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> b32.bc<br /><span style="color: #00C800;">if</span> %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><span style="color: #00C800;">if</span> %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br /><br />COPY MAIN.EXE MTA32.EXE<br /><br />rem signtool.exe sign /fd sha256 %<span style="color: #000000;">1</span>.exe<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br /><br />:<span style="color: #000000;">COMPILEERRORS</span><br />@type comp.log<br />@type warnings.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO    SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#123;</span>-- No especifiques la extensi¢n PRG<br />ECHO                                <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT</span></div>[/code:2opqb11k] I will do some more testing. Thanks for your help. Regards, George
Codejock and Harbour + FWH
Hi George if you have any question, I will help you.
Codejock and Harbour + FWH
Hi George, Please Change like this function RibbonBarEvent( cEvent, aParams, pParams, aButtons, oWnd ) do case case cEvent == "Execute" .and. Len( aButtons ) > 0 do case case aButtons[ 1 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "Button 1" ) case aButtons[ 2 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "Button 2" ) case aButtons[ 3 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "From Quick Access Button 1" ) case aButtons[ 4 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "From Quick Access Button 2" + CRLF + "FIVEWIN SHARING POWER" ) case aButtons[ 5 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "From Quick Access Button 3" ) case aButtons[ 6 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] oWnd:End() case aButtons[ 7 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] oWnd:End() case aButtons[ 8 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] MsgInfo( "FWH's ActiveX Power support Codejock", "About Codejock" ) case aButtons[ 9 ]:hObj == aParams[ 1 ][color=#FF0000:2gjpvhta]:hObj[/color:2gjpvhta] PrinterSetup() endcase endcase return nil - Ramesh Babu P
Codejock and Harbour + FWH
Hi Ramesh, After the changes I get when using harbour + FWH 13.08 the following message: [code=fw:tywhayfi]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\FWH_13<span style="color: #000000;">.08</span>\samples\RICHARD1.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">921</span>,<span style="color: #000000;">984</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r1306132159<span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">13.07</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">7</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">01</span>/<span style="color: #000000;">27</span>/<span style="color: #000000;">14</span>, <span style="color: #000000;">09</span>:<span style="color: #000000;">14</span>:<span style="color: #000000;">13</span><br />   Error description: <span style="color: #000000;"><span style="color: #000000;">&#40;</span>DOS</span> Error <span style="color: #000000;">-2147352562</span><span style="color: #000000;">&#41;</span> WINOLE/<span style="color: #000000;">1007</span>  Argument error: <span style="color: #000000;">VISUALTHEME</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = L   .T.<br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => TOLEAUTO:<span style="color: #000000;">VISUALTHEME</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => __OBJSENDMSG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\ACTIVEX.PRG => TACTIVEX&#<span style="color: #000000;">058</span>;DO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">95</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">RICHARD1</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i7 CPU         <span style="color: #000000;">870</span>  @ <span style="color: #000000;">2</span>.93GHz <span style="color: #000000;">2950</span> Mhz<br />   Hardware memory: <span style="color: #000000;">8184</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">7</span><br />      <span style="color: #000000;">1</span> ,                                                                                                     <br />      <span style="color: #000000;">2</span> , C:\FWH_13<span style="color: #000000;">.08</span>\samples\RICHARD1.exe                                                                   <br />      <span style="color: #000000;">3</span> , C:\PROGRA~<span style="color: #000000;">2</span>\CODEJO~<span style="color: #000000;">1</span>\ActiveX\XTREME~<span style="color: #000000;">1.6</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>\Bin\CODEJO~<span style="color: #000000;">3</span>.OCX                                          <br />      <span style="color: #000000;">4</span> , C:\Windows\syswow64\SHLWAPI.dll                                                                     <br />      <span style="color: #000000;">5</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Windows\syswow64\OLE32.DLL                                                                       <br />      <span style="color: #000000;">6</span> GDI+ <span style="color: #0000ff;">Window</span>, C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.7601</span>.18120_none_72d2e82386681b <br />      <span style="color: #000000;">7</span> SYM_AVPAPP_WINDOW_NAME_<span style="color: #000000;">&#123;</span>1BE293D4-E7AD<span style="color: #000000;">-4314</span>-B8C9-C088A7CC1E69<span style="color: #000000;">&#125;</span>, C:\Users\GeorgeRM\AppData\<span style="color: #00C800;">Local</span>\Temp\Codejock.SuitePro.ActiveX.Eval<span style="color: #000000;">.16</span><span style="color: #000000;">.2</span><span style="color: #000000;">.6</span>.dll</div>[/code:tywhayfi] After commenting the line 65 oAct:Do( "VisualTheme", .T. ), the program compiles without error but the same result only displaying the message about Trial Codejock Version and then the program closes. If compiling with xHarbour I get the error message: "Unresolved external '_hb_parns' ; after adding the C function: [code=fw:tywhayfi]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br />void * hb_parns<span style="color: #000000;">&#40;</span> int i <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:tywhayfi] the program compiles without error but with the same result. I read in the forum, a Richard message, that this is the usual behavior (only displaying a message), for demo version Codejock and Harbour + FWH. [url:tywhayfi]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=15102&p=78323&hilit=codejock+demo+only#p78323[/url:tywhayfi] Regards, George
Codejock controls
Hi,Anyone using those great controls from FWH?.
Codejock controls
[quote="MOISES":3bmnl838]Hi, Anyone using those great controls from FWH?.[/quote:3bmnl838]Yes, I have use Codejock into FWH.Regards,Richard
Codejock controls
Hello Moises,I never heard about these controls.What are they doing ?RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Codejock controls
[quote="ukoenig":151y37zc]Hello Moises, I never heard about these controls. What are they doing ? Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:151y37zc]Hi Look it[url:151y37zc]http&#58;//www&#46;codejock&#46;com/[/url:151y37zc]or[url:151y37zc]http&#58;//67&#46;222&#46;39&#46;232/forums/viewtopic&#46;php?t=10378&postdays=0&postorder=asc&highlight=codejock&start=15[/url:151y37zc][url:151y37zc]http&#58;//67&#46;222&#46;39&#46;232/forums/viewtopic&#46;php?t=9104&highlight=codejock[/url:151y37zc]Regards,Richard
Codejock y Harbour + FWH
Hola, Estoy tratando de integrar los componentes de "Codejock Bar" usando el siguiente codigo (encontrado en el foro): [code=fw:27l40jxa]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">PUBLIC</span> oWnd, oAct, oRb, oTabFiles, oTabEdit, oTabBuild<br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />  @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ACTIVEX oAct PROGID <span style="color: #ff0000;">"Codejock.CommandBarsFrame.16.2.6"</span> <span style="color: #0000ff;">OF</span> oWnd<br />  oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachToWindow"</span>, oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />  oRb = oAct:<span style="color: #00C800;">Do</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AddRibbonBar"</span>, <span style="color: #ff0000;">"fwh"</span> <span style="color: #000000;">&#41;</span><br />  oTabFiles = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"&Files"</span> <span style="color: #000000;">&#41;</span><br />  oTabEdit  = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&Edit"</span> <span style="color: #000000;">&#41;</span><br />  oTabBuild = oRb:<span style="color: #000000;">InsertTab</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"&Build"</span> <span style="color: #000000;">&#41;</span><br />  oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test 1"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />  oTabFiles:<span style="color: #000000;">Groups</span>:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test 2"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:27l40jxa] Al inicio el programa ejecuta correctamente y presenta el mensaje de que estoy usndo el ActiveX (Trial version) de Codejock, pero despues solo presenta una franja negra en lugar del Ribbonbar. Estoy usando Harbour de Agosto 2013 + FWH 13.08. Alguna sugerencia? Gracias, George
Codejock y Harbour + FWH
George, FIVEWIN disponibiliza uma classe nativa para RIBBON BAR: c:\fwh\samples\ribbon.prg c:\fwh\samples\ribbon2.prg c:\fwh\samples\ribbon3.prg
Codejock y Harbour + FWH
Gracias SGS por responder. He visto la clase Ribbon de FW y parece que es bien completa. Lo que sucede es que quiero hacer algunas pruebas, con este y otros componentes de Codejock (como el GRAPH), para ver como interactuan con Harbour+FWH. Has tenido alguna experiencia con el Codejock? Saludos, George
Codepage chars on button bar...
Hello everybody,I am new FWH 8.09 user and I try to build application with our local Croatian codepage characters. q: Can someone teach me how to get Croatian fonts on button bar. All fonts are OK in all other aspects (indexing, seek, browse, say, get) but not on button bar.Here is piece of known source and screen shoot with wrong fonts on button bar and good fonts on bottom of screen.Thanks,Boris Shibila *-----------------------------------------------------------------------------#include "FiveWin.ch"REQUEST HB_LANG_HR1250REQUEST HB_CODEPAGE_HR1250static oWndfunction Main() local oBar, oPopup, oBtn public oBrw, cString, oWndMain HB_langselect( "HR1250" ) HB_SetCodePage( "HR1250" ) * * * SetBalloon( .T. ) // Balloon shape required for tooltips DEFINE WINDOW oWndMain TITLE "TC2008" MDI DEFINE BUTTONBAR oBar OF oWndMain SIZE 60, 60 2007 DEFINE BUTTON OF oBar RESOURCE "attach" PROMPT "Š&#272;Ž&#268;&#262;" DEFINE BUTTON OF oBar RESOURCE "telefon" PROMPT "Telefon" SET MESSAGE OF oWndMain TO "Codepage characters: Š&#272;Ž&#268;&#262;b " CLOCK KEYBOARD 2007 ACTIVATE WINDOW oWndMain MAXIMIZEDreturn nil*-----------------------------------------------------------------------------[img:g8gghg6e]http&#58;//www&#46;paradigma&#46;hr/cp&#46;jpg[/img:g8gghg6e]
Codepage chars on button bar...
Hello Boris,I found a solution, to paint anything inside the buttonsof the buttonbar.For me, the main-reason was the still missing font-define.I created a selection of different 24-Bit transparent-bitmaps for the buttonbar as templates.On the bottom, i have some space for any text.I write directly the text in the buttom-earea of a copy from a selected bitmap.If you don't need a picture, you can create just a transparenttext-bitmap-button.There you have the choice, to paint anything you want.[code:2z51tyoy] DEFINE BUTTON oBtn4 OF oBar1 ACTION &#40; IIF&#40; FILE&#40; "xBrwHelp&#46;exe" &#41;, Winexec&#40;"xBrwHelp&#46;exe"&#41;, ; MsgAlert&#40; "No HelpFile &#58; xBrwHelp&#46;exe", "Error" &#41; &#41; &#41; ; FILENAME "help_1&#46;bmp" PROMPT "" TOOLTIP "Help" // The prompt must be "" [/code:2z51tyoy][img:2z51tyoy]http&#58;//www&#46;pflegeplus&#46;com/pictures/buttonbar1&#46;jpg[/img:2z51tyoy]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Codepage chars on button bar...
Hello Uwe, thanks for idea.Best regards
Codepage chars on button bar...
Hello Boris,just another Test with Resource-Workshop.The bitmap must have the same size like in the buttonbar-define.The button is stored in the RC-file.DEFINE BUTTONBAR oBar1 OF oWnd SIZE 65, 80 2007 RIGHT DEFINE BUTTON oBtn4 OF oBar1 ACTION ( IIF( FILE( "xBrwHelp.exe" ), Winexec("xBrwHelp.exe"), ;MsgAlert( "No HelpFile : xBrwHelp.exe", "Error" ) ) ) ;RESOURCE "Button4" PROMPT "" TOOLTIP "Help"[img:3egk4d4c]http&#58;//www&#46;pflegeplus&#46;com/pictures/buttonbar3&#46;jpg[/img:3egk4d4c][img:3egk4d4c]http&#58;//www&#46;pflegeplus&#46;com/pictures/buttonbar2&#46;jpg[/img:3egk4d4c]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Codice fiscale/ partita IVA
Salve a tutti, qualcuno di voi ha una routine di controllo/generazione codice fiscale e controllo partita iva ? Grazie. Marco
Codice fiscale/ partita IVA
Controllo Codice Fiscale: [code:3a3ntsvp]FUNCTION ISCOD&#40; cCod &#41; LOCAL aCod &#58;= &#123; 1, 0, 5, 7, 9, 13, 15, 17, 19, 21, 2, 4, 18, 20, 11, 3, 6, 8, 12, 14, 16, 10, 22, 25, 24, 23 &#125; LOCAL nChr, cChr, nPos, nCod &#58;= 0 IF LEN&#40; ALLTRIM&#40; cCod &#41; &#41; != 16; RETURN &#46;F&#46;; ENDIF FOR nChr = 1 TO 15 cChr = SUBSTR&#40; cCod, nChr, 1 &#41; IF !ISALPHA&#40; cChr &#41; &#46;AND&#46; !ISDIGIT&#40; cChr &#41;; RETURN &#46;F&#46;; ENDIF nPos = ASC&#40; cChr &#41; - IF&#40; ISALPHA&#40; cChr &#41;, ASC&#40; "A" &#41;, ASC&#40; "0" &#41; &#41; nCod += IF&#40; nChr % 2 = 0, nPos, aCod&#91; nPos + 1 &#93; &#41; NEXT RETURN nCod % 26 = ASC&#40; SUBSTR&#40; cCod, nChr, 1 &#41; &#41; - ASC&#40; "A" &#41;[/code:3a3ntsvp] Controllo Partita IVA: [code:3a3ntsvp]FUNCTION ISIVA&#40; cCod &#41; LOCAL nChr, nPos, nCod &#58;= 0 IF LEN&#40; RTRIM&#40; cCod &#41; &#41; != 11 &#46;OR&#46; cCod = "00000000000"; RETURN &#46;F&#46;; ENDIF FOR nChr = 1 TO 10 nPos = ASC&#40; SUBSTR&#40; cCod, nChr, 1 &#41; &#41; - ASC&#40; "0" &#41; nCod += IF&#40; nChr % 2 = 0, INT&#40; nPos * 2 / 10 + &#40; nPos * 2 &#41; % 10 &#41;, nPos &#41; NEXT RETURN &#40; 10 - nCod % 10 &#41; % 10 = ASC&#40; SUBSTR&#40; cCod, nChr, 1 &#41; &#41; - ASC&#40; "0" &#41;[/code:3a3ntsvp] Per quanto riguarda la generazione, avrei quella per il Codice Fiscale ma richiede anche il database aggiornato dei codici dei comuni. Se ti serve dimmelo (ma il mio DBF dei codici dei comuni non so quanto sia aggiornato). EMG
Codice fiscale/ partita IVA
io avrei tutto un programma che genera i codici fiscali :sarebbe troppo grande da mettere qui. Poi ci vuole l'archivio comuni che potrebbe essere reperibile in giro
Codice fiscale/ partita IVA
Per il controllo dell'iva io uso [code:3a7j8by6] /*************************** function OKIVA&#40; PI, obbligo &#41; //*************************** // Syntax&#58; OKIVA&#40; <ExpC>, &#91;<ExpL>&#93; &#41; // <ExpC> Š il n&#46; di partita iva &#40;Š una stringa!&#41; // <ExpL> se Š &#46;T&#46; la partita IVA Š obbligatoria &#40;default&#41;, altrimenti pu• essere vuota // Restituisce &#46;t&#46;=tutto ok ; &#46;f&#46;= errata local s &#58;= 0, i, t, pi1, pi2, ok &#58;= &#46;f&#46; IF pcount&#40;&#41; = 1 obbligo = &#46;f&#46; // default non obbligatoria ENDIF s &#58;= 0 IF empty&#40; pi &#41; return&#40; if&#40; obbligo, &#46;f&#46;, &#46;t&#46; &#41; &#41; // se obbligatoria ritorna &#46;F&#46; ENDIF IF len&#40; alltrim&#40; pi &#41; &#41; != 11 return&#40;&#46;f&#46;&#41; // &#46;f&#46; ENDIF // non vengono controllati gli uffici iva, tanto c'Š il cecksum&#46;&#46;&#46; //IF val&#40;subst&#40;pi,8,3&#41;&#41;<1 &#46;or&#46; val&#40;substr&#40;pi,8,3&#41;&#41;>100 // * uffici iva &#40;il 100 esiste - Firenze&#41; // return&#40;ok&#41; // &#46;f&#46; //ENDIF i &#58;= 1 WHILE i < 11 pi1 &#58;= val&#40;substr&#40;pi,i,1&#41;&#41; pi2 &#58;= val&#40;substr&#40;pi,i+1,1&#41;&#41; s &#58;= s+pi1+2*pi2-9*int&#40;pi2/5&#41; i &#58;= i+2 ENDDO t &#58;= 10-&#40;s-int&#40;s/10&#41;*10&#41; IF t = 10 t &#58;= 0 ENDIF IF t # val&#40;substr&#40;pi,11,1&#41;&#41; return&#40; ok &#41; // &#46;f&#46; ENDIF ok &#58;= &#46;t&#46; return&#40; ok &#41; // &#46;T&#46; [/code:3a7j8by6]
Codice fiscale/ partita IVA
Per il controllo del CF io uso : [code:168pcct0] *ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß FUNCTION CFISC&#40; CF, obbligo, CfNasc, CfSex &#41; *ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß // controllo codice fiscale // Syntax&#58; cfisc&#40;<ExpC>, &#91;<ExpL>&#93;&#41; // dove <ExpC> èil numero di codice fiscale da controllare // <ExpL> indica se si accetta anche il CF vuoto &#40;default&#41; =&#46;f&#46; // oppure se è obbligatorio = &#46;t&#46; // Restituisce&#58; se errato restituisce &#46;F&#46; // se corretto restituisce &#46;T&#46; // // Se esistono il 3&#46; e 4&#46; parametro &#40;passati per referenza&#41; // vi vengono scritti CFNasc &#40;Data di nascita&#41; tutti formati europei // CFSex &#40;Sesso = M F&#41; // // per il GET sul Codice Fiscale si consiglia questa Picture&#58; // @ 10,10 get cod pict "@! AAAAAA99A99A999A" // es&#58; TNLMRZ56C15L552S local td &#58;= "0100050709131517192102041820110306081214161022252423" local mn &#58;= "ABCDEHLMPRST" local f4 &#58;= 0, pp &#58;= 0, p &#58;= 1 local i, p1, j, CfDataNascita, CfSesso, sep &#58;= "", DataVuota IF obbligo == NIL obbligo &#58;= &#46;f&#46; // accetta anche CF vuoto ENDIF if CfNasc != NIL // Separatori data &#40;formato europeo&#41; possibili&#58; / - &#46; sep &#58;= substr&#40;dtoc&#40;date&#40;&#41;&#41;,3,1&#41; // Default CfNasc &#58;= ctod&#40;" "+sep+" "+sep+" "&#41; CfSex &#58;= " " endif CF &#58;= upper&#40; alltrim&#40;CF&#41; &#41; IF LEN&#40;CF&#41; = 0 // accetta anche Cod fisc&#46; vuoto return&#40; !obbligo &#41; // se CF obbligatorio non passato controllo ENDIF IF len&#40;CF&#41; < 16 return&#40; &#46;f&#46; &#41; // errore! ENDIF FOR I &#58;= 1 TO 15 P1 &#58;= ASC&#40; substr&#40; CF, I, 1 &#41; &#41; IF P1 > 47 &#46;and&#46; P1 < 58 P1 -= 48 ENDIF IF P1 > 64 &#46;and&#46; P1 < 91 P1 -= 65 ENDIF IF P = 0 PP += P1 P &#58;= 1 ELSE PP += VAL&#40; substr&#40; TD, &#40;P1*2+1&#41;, 2 &#41; &#41; P &#58;= 0 ENDIF NEXT PP &#58;= &#40;PP - &#40;INT &#40;PP/26&#41; &#41; * 26&#41; + 65 if chr&#40;pp&#41; != right&#40;cf, 1&#41; // codice fiscale errato return&#40;&#46;f&#46;&#41; ENDIF P1 &#58;= VAL&#40; substr&#40; Cf, 10, 2 &#41; &#41; CfSesso &#58;= "M" IF P1 > 40 P1 -= 40 CfSesso &#58;= "F" ENDIF IF P1 < 10 CfDataNascita &#58;= "0" + RIGHT&#40; STR&#40; P1, 2 &#41;, 1 &#41; J &#58;= 0 ELSE CfDataNascita &#58;= RIGHT&#40; STR&#40; P1, 2 &#41;, 2 &#41; J &#58;= 0 ENDIF FOR I &#58;= 1 TO 12 IF substr&#40; Cf, 9, 1&#41; == substr&#40; MN, I, 1 &#41; J &#58;= I I &#58;= 12 ENDIF NEXT IF J = 0 // codice fiscale errato return&#40;&#46;f&#46;&#41; ENDIF IF J < 10 CfDataNascita += sep + "0" + RIGHT&#40; STR&#40; J, 2 &#41;, 1 &#41; ELSE CfDataNascita += sep + RIGHT&#40; STR&#40; J, 2 &#41;, 2 &#41; ENDIF CfDataNascita += sep + substr&#40; Cf, 7, 2 &#41; CfNasc &#58;= ctod&#40; CfDataNasc &#41; CfSex &#58;= Cfsesso return&#40;&#46;t&#46;&#41; [/code:168pcct0] eh..spero che ti serva e .....Buona Pasqua!!!!!!!!
Codice fiscale/ partita IVA
Grazie EMG e Silvio. Marco
Codificacion en Base64
Hola a todos. Estoy buscando alguna funcion que me permita codificar y decodificar archivos xml en base64 para Harbour y no la encuentro, quizas alguien lo tenga y me lo pueda facilitar. Muchas gracias Jorge Jaurena
Codificacion en Base64
Jorge, Prueba con las funciones hb_base64decode() y hb_base64encode() de Harbour
Codificacion en Base64
[size=85:2827mau6][quote="Jorge Jaurena":2827mau6]Estoy buscando alguna funcion que me permita codificar y decodificar archivos xml...[/quote:2827mau6][/size:2827mau6]Perdón por la pregunta: ¿ Por que hay que codificar/decodificar archivos xml ? Gracias por la respuesta.
Codificacion en Base64
Estoy usando Harbour 1.0.1 y me parece que no estan, ¿como puedo incorporarlas? Gracias. Jorge Jaurena PD JmGarcia: necesito codificarlos en base64 porque el web server al que debo comunicarme asi me lo pide, solo por eso. Saludos
Codificacion en Base64
Jorge, Lo mas sencillo es que actualices Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codificacion en Base64
Si, eso pense de entrada, pero tengo temor de que no me empiece a compilar algunas cosas bien, intento, y si no puedo lograr que ande bien tendre que volver a molestar por aqui. Muchas Gracias. Jorge Jaurena
Codificacion en Base64
Jorge, La versión actual suele ser la más completa y probada. Especialmente en desarrollos de código abierto. Asi que todo debería compilar bien, salvo que tengas que hacer algún cambio pequeño y aqui te ayudaremos a solucionarlo en caso de ser necesario.
Codificacion en Base64
Esta me funciona a mi excelente Pones una variable cXml := Base64toStr(oNodo:CData) y aca el codigo // otras * BASE64.PRG * Creation le 30/12/2008 * Auteur Badara Thiam * Derniere modification le 25/09/2009 à 16:35:37 * Modification du 25/09/2009 effectuée dans StrToBase64() * Résout une erreur de conversion apparaissant lorsque : * ( le nombre de caractères dans la chaine multiplié par <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> n'est pas un multiple de 6 ******************* FUNCTION StrToBase64( cTexte ) ******************* * Conversion en base 64 de la chaine cTexte * Un alphabet de 65 caractères est utilisé pour permettre la représentation de 6 bits par caractère : * "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" * Le '=' (65e caractère) est utilisé dans le processus de codage pour les caractères finaux. LOCAL cTexte64 := "" LOCAL X LOCAL cHex DO WHILE !( cTexte == "" ) cHex := "" * Le processus de codage représente des groupes de 24 bits de données en entrée par une chaîne en sortie de 4 caractères codés. * En procédant de gauche à droite, un groupe de 24 bits est créé en concaténant 3 octets (8 bits par octet). FOR X := 1 TO 3 * Conversion de chaque caractère en chaine binaire de 8 octets cHex += CarToBin( LEFT(cTexte, 1) ) IF LEN(cTexte) > 1 cTexte := SUBSTR(cTexte, 2) ELSE cTexte := "" EXIT ENDIF NEXT X * Ces 24 bits (ici contenus dans cHex, ou au moins un multiple) sont traités comme 4 groupes concaténés de 6 bits chacun convertis * en un unique caractère dans l'alphabet de la base 64. * Chaque groupe de 6 bits est utilisé comme index dans la table des caractères de la base 64. * Le caractère référencé par l'index correspondant est utilisé comme codage de ce groupe de 6 bits. FOR X := 1 TO 4 IF SUBSTR(cHex, ( (X - 1) * 6) + 1 ) == "" cTexte64 += REPLICATE("=", 4 - X + 1) EXIT ELSE * Un traitement spécial est effectué si moins de 24 bits sont disponibles à la fin des données * à coder. Aucun bit ne restant non-codé, * si moins de 24 bits sont disponibles alors des bits à zéro sont ajoutés à la droite des données * pour former un nombre entier de groupes de 6 bits. IF LEN( cHex ) % 6 > 0 * Ajout des bits à zéro cHex += REPLICATE("0", 6 - ( LEN( cHex ) % 6 ) ) ENDIF cTexte64 += Carac64( "00" + SUBSTR(cHex, ( (X - 1) * 6) + 1, 6 ) ) ENDIF NEXT X ENDDO RETURN cTexte64 ********************* FUNCTION Base64ToStr( cTexte64 ) ********************* * décodage d'un texte codé en base 64 LOCAL cTexte := "" LOCAL X LOCAL cHex LOCAL cCar DO WHILE !( cTexte64 == "" ) try cCar := LEFT(cTexte64,4) catch end cHex := "" try FOR X := 1 TO 4 IF SUBSTR(cCar, X, 1 ) != "=" cHex += Hex64( SUBSTR(cCar, X, 1 ) ) ELSE EXIT ENDIF NEXT X catch end FOR X := 1 TO 3 IF SUBSTR(cHex, ( (X - 1) * <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> + 1 ) == "" EXIT ELSE cTexte += BinToCar( SUBSTR(cHex, ( (X - 1) * <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> + 1, 8 ) ) ENDIF NEXT X IF LEN(cTexte64) > 4 cTexte64 := SUBSTR(cTexte64, 5) ELSE cTexte64 := "" ENDIF ENDDO RETURN cTexte **************** FUNCTION Carac64( cBin ) **************** * Renvoie le caractère correspondant en base 64 LOCAL nPos := ASC( BinToCar( @cBin ) ) + 1 RETURN SUBSTR( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", nPos, 1) ************** FUNCTION Hex64( carac64 ) ************** * Renvoie le caractère correspondant en base 64 LOCAL cCodeAsc := CHR( AT(carac64, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" ) -1 ) RETURN SUBSTR( CarToBin( @cCodeAsc ) , 3, 6) ***************** FUNCTION CarToBin( carac, lInverse ) ***************** * Renvoie le caractère correspondant dans une chaine binaire (composée de 0 et 1) de 8 bits #define cHexa "0123456789ABCDEF" #define aBin {"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", ; "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111" } LOCAL cToHex IF EMPTY( lInverse ) * Retourne la chaine binaire en ayant reçu le caractère ASCII cToHex := str2Hex( carac ) RETURN aBin[ AT( LEFT(cToHex,1), cHexa ) ] + aBin[ AT( SUBSTR(cToHex,2), cHexa ) ] ELSE * Retourne le caractère ASCII en ayant reçu la chaine binaire cToHex := SUBSTR(cHexa, ASCAN(aBin, LEFT(carac,4 ) ), 1 ) ; + SUBSTR(cHexa, ASCAN(aBin, SUBSTR(carac,5,4 ) ), 1 ) RETURN Hex2str( cToHex ) ENDIF RETURN NIL ***************** FUNCTION BinToCar( cBin ) ***************** RETURN CarToBin( @cBin, .T. )
Codificacion en Base64
Muchas gracias jponce por tu aporte, pero a pesar de que estas funciones anden correctamente estoy convencido de que Antonio tiene razon en la necesidad de mantener el lenguaje actualizado, y asi debe ser ya que por lo menos en mi caso Yo vivo de esto y mis clientes me pagan por el software que les instalo y el soporte que recibo aqui siempre ha sido excelente. Gracias nuevamente. Jorge Jaurena
Codificacion en Base64
A la orden . Este codigo fuente que puse funciona perfectamente para decodificar XML, cuando quieres decodificar un PDF ya no funciona o Quieres decodificar un Word, etc, funciona practicamente para XML. Pero de que funciona para lo que necesitas te funciona. Atentamente Julio Ponce
Codificacion en Base64
Hola Jorge: coma sacarias el valor base64 a abc123 ya que en este link <!-- m --><a class="postlink" href="http://hash.online-convert.com/es/generador-sha1">http://hash.online-convert.com/es/generador-sha1</a><!-- m --> da este resultado: base64: Y2fEjdGT1W6nsLqtJbGUVeUp9e4= y con tu funcion da otro valor saludos
Codificacion en Base64
no sirve en el texto hay "ñ"
Codificacion en Base64
Buenas noches Yo vengo usando estas funciones que las bajé del Foro: [code=fw:v41lv41z]<div class="fw" id="{CB}" style="font-family: monospace;">* BASE64.PRG<br />* Creation le <span style="color: #000000;">30</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">2008</span><br />* Auteur Badara Thiam<br />* Derniere modification le <span style="color: #000000;">25</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">2009</span> à <span style="color: #000000;">16</span>:<span style="color: #000000;">35</span>:<span style="color: #000000;">37</span><br /><br />* Cambio <span style="color: #000000;">25</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">2009</span> realizado en StrToBase64 <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br />* Resuelve un error de conversión se produce cuando :<br /><span style="color: #000000;">*</span> <span style="color: #000000;">&#40;</span> El número de caracteres de la cadena multiplicado por <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> no es un múltiplo de <span style="color: #000000;">6</span><br /><br /><br />*******************<br /><span style="color: #00C800;">FUNCTION</span> StrToBase64<span style="color: #000000;">&#40;</span> cTexte <span style="color: #000000;">&#41;</span><br />*******************<br />* Conversión de base <span style="color: #000000;">64</span> de la cadena de ctext<br /><br />* Un alfabeto de <span style="color: #000000;">65</span> caracteres se utiliza para permitir la representación de <span style="color: #000000;">6</span> bits por carácter :<br /><span style="color: #000000;">*</span> <span style="color: #ff0000;">"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"</span><br /><br />* El <span style="color: #ff0000;">'='</span> <span style="color: #000000;">&#40;</span> carácter 65a <span style="color: #000000;">&#41;</span> se utiliza en el proceso de codificación para los caracteres finales.<br /><br /><span style="color: #00C800;">LOCAL</span> cTexte64 := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> X<br /><span style="color: #00C800;">LOCAL</span> cHex<br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !<span style="color: #000000;">&#40;</span> cTexte == <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />cHex := <span style="color: #ff0000;">""</span><br /><br />* El proceso de codificación representa grupos de datos de entrada de <span style="color: #000000;">24</span> bits por una cadena de salida de <span style="color: #000000;">4</span> caracteres codificados .<br />* Procediendo de izquierda a derecha , un grupo de <span style="color: #000000;">24</span> bits se crea mediante la concatenación de tres bytes <span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> bits por byte <span style="color: #000000;">&#41;</span> .<br /><span style="color: #00C800;">FOR</span> X := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">3</span><br />* Convertir cada cadena de caracteres binarios de <span style="color: #000000;">8</span> bytes<br />cHex += CarToBin<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cTexte, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">&#40;</span>cTexte<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />cTexte := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cTexte, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />cTexte := <span style="color: #ff0000;">""</span><br />EXIT<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span> X<br /><br />* Estos <span style="color: #000000;">24</span> bits <span style="color: #000000;">&#40;</span>en este caso contenía en cHex , o al menos un múltiple<span style="color: #000000;">&#41;</span> se tratan como <span style="color: #000000;">4</span> grupos concatenados de <span style="color: #000000;">6</span> bits cada convertidos<br />* En un solo carácter en el alfabeto de la base <span style="color: #000000;">64</span> .<br /><br />* Cada grupo de <span style="color: #000000;">6</span> bits se utiliza como un índice en la tabla de caracteres de la base <span style="color: #000000;">64</span> .<br />* El carácter referencia el índice correspondiente se utiliza como la codificación de este grupo de <span style="color: #000000;">6</span> bits.<br /><br /><span style="color: #00C800;">FOR</span> X := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">4</span><br /><br /><span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHex, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>X - <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">""</span><br />cTexte64 += REPLICATE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"="</span>, <span style="color: #000000;">4</span> - X + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />EXIT<br /><span style="color: #00C800;">ELSE</span><br /><br />* Procesamiento especial se lleva a cabo si hay menos de <span style="color: #000000;">24</span> bits están disponibles al <span style="color: #00C800;">final</span> de los datos<br />* Codificación . <span style="color: #0000ff;">Sin</span> bits restantes no codificado ,<br />* Menos de <span style="color: #000000;">24</span> bits están disponibles a continuación, los bits de cero se añaden a la derecha de los datos<br />* Para formar un número entero de <span style="color: #000000;">6</span> grupos de bits .<br /><br /><span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">&#40;</span> cHex <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">6</span> > <span style="color: #000000;">0</span><br />* La adición de bits cero<br />cHex += REPLICATE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"0"</span>, <span style="color: #000000;">6</span> - <span style="color: #000000;">&#40;</span> LEN<span style="color: #000000;">&#40;</span> cHex <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />cTexte64 += Carac64<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"00"</span> + <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHex, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>X - <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span> X<br /><span style="color: #00C800;">ENDDO</span><br /><span style="color: #00C800;">RETURN</span> cTexte64<br /><br />*********************<br /><span style="color: #00C800;">FUNCTION</span> Base64ToStr<span style="color: #000000;">&#40;</span> cTexte64 <span style="color: #000000;">&#41;</span><br />*********************<br />* La decodificación de un texto codificado de base <span style="color: #000000;">64</span><br /><span style="color: #00C800;">LOCAL</span> cTexte := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> X<br /><span style="color: #00C800;">LOCAL</span> cHex<br /><span style="color: #00C800;">LOCAL</span> cCar<br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !<span style="color: #000000;">&#40;</span> cTexte64 == <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">try</span><br />cCar := <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cTexte64,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />catch<br />end<br />cHex := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">try</span><br /><span style="color: #00C800;">FOR</span> X := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">4</span><br /><span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cCar, X, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">"="</span><br />cHex += Hex64<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cCar, X, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />EXIT<br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span> X<br />catch<br />end<br /><br /><span style="color: #00C800;">FOR</span> X := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">3</span><br /><span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHex, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>X - <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">""</span><br />EXIT<br /><span style="color: #00C800;">ELSE</span><br />cTexte += BinToCar<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHex, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>X - <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span> X<br /><br /><span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">&#40;</span>cTexte64<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">4</span><br />cTexte64 := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cTexte64, <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />cTexte64 := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDDO</span><br /><span style="color: #00C800;">RETURN</span> cTexte<br /><br />****************<br /><span style="color: #00C800;">FUNCTION</span> Carac64<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span><br />****************<br />* Devuelve el carácter de base <span style="color: #000000;">64</span> que corresponde<br /><span style="color: #00C800;">LOCAL</span> nPos := <span style="color: #0000ff;">ASC</span><span style="color: #000000;">&#40;</span> BinToCar<span style="color: #000000;">&#40;</span> @cBin <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"</span>, nPos, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><br />**************<br /><span style="color: #00C800;">FUNCTION</span> Hex64<span style="color: #000000;">&#40;</span> carac64 <span style="color: #000000;">&#41;</span><br />**************<br /><br />* Devuelve el carácter de base <span style="color: #000000;">64</span> que corresponde<br /><span style="color: #00C800;">LOCAL</span> cCodeAsc := CHR<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span>carac64, <span style="color: #ff0000;">"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> CarToBin<span style="color: #000000;">&#40;</span> @cCodeAsc <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">3</span>, <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><br /><br />*****************<br /><span style="color: #00C800;">FUNCTION</span> CarToBin<span style="color: #000000;">&#40;</span> carac, lInverse <span style="color: #000000;">&#41;</span><br />*****************<br />* Devuelve el carácter que corresponde a una cadena binaria <span style="color: #000000;">&#40;</span> que consiste en <span style="color: #000000;">0</span> y <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">8</span> -bit<br /><br /><span style="color: #00D7D7;">#define</span> cHexa <span style="color: #ff0000;">"0123456789ABCDEF"</span><br /><span style="color: #00D7D7;">#define</span> aBin <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"0000"</span>, <span style="color: #ff0000;">"0001"</span>, <span style="color: #ff0000;">"0010"</span>, <span style="color: #ff0000;">"0011"</span>, <span style="color: #ff0000;">"0100"</span>, <span style="color: #ff0000;">"0101"</span>, <span style="color: #ff0000;">"0110"</span>, <span style="color: #ff0000;">"0111"</span>, ;<br /><span style="color: #ff0000;">"1000"</span>, <span style="color: #ff0000;">"1001"</span>, <span style="color: #ff0000;">"1010"</span>, <span style="color: #ff0000;">"1011"</span>, <span style="color: #ff0000;">"1100"</span>, <span style="color: #ff0000;">"1101"</span>, <span style="color: #ff0000;">"1110"</span>, <span style="color: #ff0000;">"1111"</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> cToHex<br /><br /><span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> lInverse <span style="color: #000000;">&#41;</span><br />* Devuelve la cadena binaria de haber recibido el carácter ASCII<br />cToHex := str2Hex<span style="color: #000000;">&#40;</span> carac <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> aBin<span style="color: #000000;">&#91;</span> <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cToHex,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, cHexa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> + aBin<span style="color: #000000;">&#91;</span> <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cToHex,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, cHexa <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">ELSE</span><br />* Devuelve el carácter ASCII de haber recibido la cadena binaria<br />cToHex := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHexa, ASCAN<span style="color: #000000;">&#40;</span>aBin, <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>carac,<span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />+ <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cHexa, ASCAN<span style="color: #000000;">&#40;</span>aBin, <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>carac,<span style="color: #000000;">5</span>,<span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> Hex2str<span style="color: #000000;">&#40;</span> cToHex <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />*****************<br /><span style="color: #00C800;">FUNCTION</span> BinToCar<span style="color: #000000;">&#40;</span> cBin <span style="color: #000000;">&#41;</span><br />*****************<br /><span style="color: #00C800;">RETURN</span> CarToBin<span style="color: #000000;">&#40;</span> @cBin, .T. <span style="color: #000000;">&#41;</span></div>[/code:v41lv41z] Me parece que es la misma publicada lineas arriba por JPonce Alex: No tengo problemas con caracteres especiales por que en los campos donde se pueden generar las "ñ","Ñ" al momento de construir el XML utilizo ![CDATA] es para que analizador semantico lo intreprete como una cadena: [url:v41lv41z]https&#58;//es&#46;wikipedia&#46;org/wiki/CDATA[/url:v41lv41z] Saludos
Codificacion latina en MYSQL
Hola a todos: No consigo mostrar en un php una ñ importada desde una base de datos MYSQL. La codificacion de la base de datos está en utf8 y tengo la codificacion del php en utf8. Todos los acentos y caracteres latinos aparecen sin problemas, menos la dichosa ñ desde la base de datos <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Alguna idea? Gracias
Codigo vs Recursos
Se lleva compartiendo desde el principio de fivewin tanto uno como otro metodo para realizar los dialogos de las aplicaciones , pero a nivel de programacion ( rendimiento y velocidad de desarrollo ) a DIA DE HOY , ¿ que argumentos tenemos para decantarnos a usar uno u otro ? . ¿ Cual es masa efectivo a la hora de ejcutarse ? Espero que la pregunta genere debate y aporte claridad y soluciones . Saludos.
Codigo vs Recursos
Mastintin, En mi caso, se me hace practicamente imposible crear mis pantallas a codigo, ya que se iria todo el dia probando y ajustando las posiciones de los objetos en el dialogo. En cambio usando recursos, lo haces en minutos, ya sea con WS, pelles u otros editores de recursos. Sin embargo, varias clases nuevas o recientes, al parecer solo estan disponibles para ventanas. Saludos
Codigo vs Recursos
Mastintin, Dejando a parte los beneficios del uso de los recursos, a nivel de rendimiento de programacion esta claro que la productividad pasa por el uso de estos. Con cualquier editor de recursos la velocidad de contrucción y DISEÑO es incomparable. No hay dudas sobre el tema.
Codigo vs Recursos
Gracias Carles. estoy de acuerdo contigo , pero ... La posibilidad de poder hacer un "generador de código" para diseñar los dialogos como demuestra el ejemplo desing.prg y la ampliacion de los metodos cgenprg poco a poco en las clases según veo en este foro ( haciedo una busqueda por cgenprg ) parece que "acorta " esa distancia que existe a la hora de diseñar , a eso debemos sumar que algunas nuevas clases segun parece , se ejecutan desde código . Lo que no tengo tan claro es el rendimiento de estos dialogos frente a los recursos . Estoy con la version gratuita 6.12 haciendo algunas cosillas sobre el ejemplo desing y poniendo algo de codigo en clases que como bmp.prg no tienen aun el metodo cgenprg() ( en esta version claro ) .Imagino que en versiones modernas todo este soporte este ya desarrollado y las posibilidades de diseñar estén muy avanzadas asi que la duda aumenta. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Gracias por contestar y dar opiniones. Saludos a todos
Codigo vs Recursos
Hola a todos, Estoy de acuerdo en lo de diseñar con una herramienta que nos facilite el trabajo y nos evite el prueba error. Lo que no me gusta es usar un editor de recursos 'externo' a FiveWin; es que soy muy primitivo y bastante bruto. Hace años cree una utilidad/herramienta que permitía diseñar ventanas, diálogos y folders con la mayoría de los controles existentes en ese momento. Si alguién tiene tiempo y quiere mejorarla y convertirla a 32b. que me lo diga y se la paso completa. Esta herramienta permitía diseñar visualmente una ventana/diálogo y obtener la definición de variables y el código del diseño como estos (en dos ficheros independientes): [code=fw:3jxtlx5k]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//FICHERO .LCL</span><br /><span style="color: #B900B9;">/* *** Def. Var. FWD *** Window/Dialog: oIndex00 */</span><br /><span style="color: #00C800;">Local</span> oIndex00<br /><span style="color: #00C800;">Local</span> oIndexar<br /><span style="color: #00C800;">Local</span> oCancelar<br /><span style="color: #00C800;">Local</span> oFWDCk, uFWDCk<br /><span style="color: #00C800;">Local</span> oLbIndex, uLbIndex<br /><span style="color: #00C800;">Local</span> olPack, lPack<br /><span style="color: #B900B9;">/* *** End Def. FWD *** Window/Dialog: oIndex00 */</span><br /><br /><br /><span style="color: #B900B9;">// FICHERO .SCR</span><br /><span style="color: #B900B9;">// FiveWiDi: Diseñador de ventanas y diálogos por C.Gelabert 11-12-2001<>18:19:44</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oIndex00 <span style="color: #0000ff;">TITLE</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Indexació de dades"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">244</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">408</span>,<span style="color: #000000;">524</span> COLORS ;<br />    J02CLRTEXTO,J02CLRWND <span style="color: #0000ff;">OF</span> AMPAarra<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> J02FONTWND <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">2.00</span>,<span style="color: #000000;">9.00</span> <span style="color: #0000ff;">SAY</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fitxers disponibles"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oindex00 COLORS J02CLRTEXTO,;<br />    J02CLRFONDO <span style="color: #0000ff;">FONT</span> J02FONTSAY <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">122.50</span>,<span style="color: #000000;">11.00</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">16.50</span>,<span style="color: #000000;">9.50</span> <span style="color: #0000ff;">LISTBOX</span> oLbIndex <span style="color: #0000ff;">VAR</span> uLbIndex <span style="color: #0000ff;">ITEMS</span> aGetNomDBF<span style="color: #000000;">&#40;</span> AMPAarra, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> ;<br />    <span style="color: #000000;">122.50</span>,<span style="color: #000000;">105.50</span> <span style="color: #0000ff;">OF</span> oindex00 COLORS J02CLRTEXTO,J02CLRFONDO <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> J02FONTLB ;<br />    <span style="color: #0000ff;">UPDATE</span> MULTIPLE <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">128.50</span>,<span style="color: #000000;">9.00</span> FWDCHECKBOX oFWDCk <span style="color: #0000ff;">VAR</span> uFWDCk <span style="color: #0000ff;">PROMPT</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Tots els fitxers"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> ;<br />    oindex00 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">123.00</span>,<span style="color: #000000;">12.00</span> <span style="color: #0000ff;">FONT</span> J02FONTSAY <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> FWDCkChange<span style="color: #000000;">&#40;</span>AMPAarra, ;<br />    oFWDCk, oLbIndex<span style="color: #000000;">&#41;</span> COLORS J02CLRTEXTO,J02CLRWND <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> LIKEBUTTON <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">144.50</span>,<span style="color: #000000;">10.00</span> <span style="color: #0000ff;">CHECKBOX</span> olPack <span style="color: #0000ff;">VAR</span> lPack <span style="color: #0000ff;">PROMPT</span> ;<br />    GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"El.liminar registres esborrats"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oindex00 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">122.00</span>,<span style="color: #000000;">14.00</span> <span style="color: #0000ff;">FONT</span> ;<br />    TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Arial'</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">-11</span>,.F.,.F.,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">400</span>,.F.,.F.,.F.,<span style="color: #000000;">0</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">1</span>,<span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> ;<br />    <span style="color: #0000ff;">MESSAGE</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Depurarà els fitxers eliminant els registres marcats com a esborrats."</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">163.00</span>,<span style="color: #000000;">9.00</span> <span style="color: #0000ff;">BUTTON</span> oIndexar <span style="color: #0000ff;">PROMPT</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"&Indexar"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48.00</span>,<span style="color: #000000;">16.00</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ;<br />    Index01<span style="color: #000000;">&#40;</span> AMPAarra,  oLbIndex:<span style="color: #000000;">GetSelItems</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lPack <span style="color: #000000;">&#41;</span>, lAcaba := .T., ;<br />    oIndex00:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">OF</span> oindex00 <span style="color: #0000ff;">FONT</span> J02FONTBTN <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #B900B9;">//FIVEWIDI</span><br /><br />@ <span style="color: #000000;">163.00</span>,<span style="color: #000000;">84.00</span> <span style="color: #0000ff;">BUTTON</span> oCancelar <span style="color: #0000ff;">PROMPT</span> GetTrad<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"&Cancel·lar"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48.00</span>,<span style="color: #000000;">16.00</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ;<br />    lAcaba := .T., oIndex00:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oIndex00 <span style="color: #0000ff;">FONT</span> J02FONTBTN <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> CANCEL <span style="color: #B900B9;">//FIVEWIDI</span><br /> </div>[/code:3jxtlx5k] Cómo se usa? Fácil, en el PRG correspondiente añadía: #include elnombredelfichero.lcl ../.. lo que sea #include elnombredelfichero.scr ACTIVATE DIALOG olerele ../.. lo que sea Algunas cosas que podía hacer: - es capaz de releer este mismo código para permitir modificar el diseño. - podía tener controles personalizados con valores predefinidos. - permitía usar variables para la definición de FONT y COLORS. - ... Sólo les pediré que sean comprensivos y se ahorren comentarios sobre la codificación que encuentren; es mi primera aplicación en FiveWin. La Herramienta se llama FiveWiDi (Fivewin Windows Dialogs) y creo sinceramente que si yo pude, sin duda ustedes podran hacerla muchísimo mejor. Venga, quién se anima?
Codigo vs Recursos
Manuel, Ahora ya me he perdido en tu planteamiento inicial. "¿ que argumentos tenemos para decantarnos a usar uno u otro ?" Creo q la respuesta es clara, peroooo ahora detecto quizas la pregunta en otro sentido. FWH no tiene realmente un IDE de desarrollo, y es por eso que los usuarios usan cada uno sus propias herramientas para codificar, diseñar pantallas etc... ya sabes. Creo ahora que quizas quieras controlar desde una propia aplicacion el control, modificacion, creacion,... de tus dialogos, es asi ?. Esto ya seria una metodologia de trabajo en tus programas que le daria pleno dinamismo. Actualmente tu ya puedes crearte tus propias rutinas de creacion de dialogos para q el propio usario pueda crearse el mismo pantallas de datas que junto a la potencia de los scripts de harbour da como resultado una combinación explosiva y muy potente. De hecho los grandes paquetes de gestion cada vez mas ofrecen estas técnicas de uso para que el usuario personalice cada vez mas su paquete a su entorno. Yo hace tiempo que pongo este metodo de trabajo en mis aplicaciones, permitiendo en la parte que crea de la aplicacion pleno control al usuario, tanto de diseño como de scripts. Otro tema es crearte tu IDE de diseño: editor de codigo, de pantallas, de depuracion, de reporting,... todo integrado y no depender de herramientas externas. Existe -> NO, Es posible -> SI. Tu puedes usar tu xMate, uEstudio, ... (yo uso un editor de 50 Kb. q.exe), y tus editores de recursos, tus bats... y de alguna manera esta todo desperdigado, pero funciona. Te gustaria otra manera ? Si, pero esto es Esparta !!! (digo FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ), pero te aseguro q TODO es posible.
Codigo vs Recursos
Carles. Efectivamente la pregunta va en ambos sentidos. Sabemos que los recursos funcionan , pero una aplicacion grande , toda desde código , como se comprotará con un uso intensivo ? Si esto es "viable " y no existe otro motivo que yo desconozca ,es el momento de plantearse ,esa la segunda parte que expones , los scripts y los diseñadores dentro de nuestros programas pueden dar una potencia brutal , y porque no usarlo en nuestro flujo de desarrollo tambien . Saludos .
Codigo vs Recursos
Disculpen , pero hay en plaza un generador de dialogos y ventanas que genera un prg esta orientado a fivewin y su autor es Ricardo Mouras funciona bien. yo guardo solo los iconos y bmp en recursos el resto lo hago tipo manual. Juan Carlos
Codigo vs Recursos
Juan Carlos, Podrias informarnos de la url, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Codigo vs Recursos
Manuel, [quote:1wdl37jo]toda desde código , como se comprotará con un uso intensivo ? [/quote:1wdl37jo] no te lo puedo contestar porque siempre he usado las dll para la parte de recursos, pero por lo que yo se, no tendria de darte problema ninguno [quote:1wdl37jo]los scripts y los diseñadores dentro de nuestros programas pueden dar una potencia brutal , y porque no usarlo en nuestro flujo de desarrollo tambien .[/quote:1wdl37jo] Si señor <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . Pero tampoco tendria porque diseñarse todo como aplicacion autocontenida. Basicamente yo lo que hago es guardarme en una tabla los diseños de la pantalla y en otra los scripts q los manejan. Por muchos scripts o pantallas, la aplicacion no crece, solo las tablas. Es mas, en cualquieer momento puedes enviar a tu cliente o quien sea un nuevo diseño y un nuevo script sin tener q tocar la aplicacion para nada. Piensa en todas estas ventajas, ya no solo a nivel funcional <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Codigo vs Recursos
Manuel, Tienes a tu disposición un FWH 11.12 gratuito <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Envíame un email a <!-- e --><a href="mailto:alinares@fivetechsoft.com">alinares@fivetechsoft.com</a><!-- e --> y te facilitamos los datos para descargarlo y tu número de licencia de usuario. Ha sido un despiste mio no ofrecértelo después de la ayuda tan valiosa que siempre has ofrecido con FiveMac, etc <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Gracias!
Codigo vs Recursos
Antonio, imagino que se refiere a Visual Union. [url:qz83zxl8]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/filebase&#46;php?d=1&id=143&c_old=0&what=c&page=1[/url:qz83zxl8] Saludos, Félix
Codigo vs Recursos
Si no queremos usar DLL la podemos guardar como .RES con PELLEC y la agregamos como un programa mas. Saludos, Adhemar
Codigo vs Recursos
<!-- e --><a href="mailto:ricardomouramarques@hotmail.com">ricardomouramarques@hotmail.com</a><!-- e --> VRMM.03
Codigo vs Recursos
Hola, Gracias por el aporte del IDE. ¿Y hay algún editor de recursos similar al Workshop?. ¿Piensa Fivetech acabar el editor de recursos que empezó?. Muchas gracias.
Codigo vs Recursos
Mgsoft, Muchas de las pruebas que hacemos son pruebas de concepto principalmente, puesto que no tenemos los recursos suficientes (tiempo, programadores, financiación) para completarlos. Nuestra intención en esos casos es "abrir la puerta" para que quienes esten interesados puedan continuar su desarrollo y adaptarlos a sus necesidades. Nos gustaría poder completar cada idea, cada proyecto que iniciamos, pero nuestra responsabilidad principal es que FWH funcione correctamente, que esté en sincronía con Harbour y xHarbour, y hacerlo crecer para que los usuarios de FWH esten respaldados y puedan usarlo con todas las garantias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Es por esto que desde el inicio de FW, siempre hemos optado por recomendar herramientas de terceros, para completar las funcionalidades que nos hagan falta.
Codigo vs Recursos
Antonio, Muchas gracias por la respuesta. En todo caso, ¿no habéis pensado en priorizar alguno de tales desarrollos pendientes y comercializarlos como un nuevo producto que debe adquirirse?. De este modo, se abrirían nuevas líneas y también ingresos adicionales. Un saludo
Codigo vs Recursos
Todo lo que estais diciendo está muy bien, recursos, scripts, etc, facilitan mucho el trabajo. Pero a mi, de un tiempo a esta parte me he encontrado con un problema gordo (imagino que vosotros tambien) y es las distintas resoluciones con las que te puedes encontrar. Una pantalla en DLL para 1024X768 en una de 1280X1024 se ve pequeña y en una esquina, y no digamos en una 1280X768. Y si la diseñas para 1280X1024 en 1024X768 pierdes la mitad del diseño. Esto me obliga a programar los dialogs a código y con coordenadas relativas en lugar de absolutas. Y eso sí es un problema grande. Saludos