messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2010-08-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Jose\n\namablemente ya me habian enviado la clase al correo\n\n\nRuben,\n\n<!-- w --><a class=\"postlink\" href=\"http://www.sitasoft.net/fivewin/files/xlslib.zip\">www.sitasoft.net/fivewin/files/xlslib.zip</a><!-- w -->", "time": "12:29", "topic": "Clase FILEXLS", "username": "Daniel Garcia-Gil" } ]
Clase FILEXLS
[ { "date": "2016-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola\n\nAlguien tiene o sabe donde puedo conseguir la clase GETBTN ?", "time": "20:59", "topic": "Clase GETBTN", "username": "Compuin" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "No és la BTNGET.PRG? GETBTN.PRG no conozco.", "time": "21:15", "topic": "Clase GETBTN", "username": "karinha" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2exaf61b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />*-- PROGRAM FILE -------------------------------------------------------<br />* &nbsp;Application: <span style=\"color: #000000;\">Addon</span> <span style=\"color: #00C800;\">for</span> FiveWin<br />* &nbsp;Description: <span style=\"color: #000000;\">TBtnGet</span> - Colored TGet <span style=\"color: #00C800;\">class</span> with <span style=\"color: #0000ff;\">button</span><br />* &nbsp; &nbsp;File <span style=\"color: #0000ff;\">Name</span>: <span style=\"color: #000000;\">tbtnget</span>.prg<br />* &nbsp; &nbsp; &nbsp; Author: <span style=\"color: #000000;\">Ricardo</span> Ramirez &nbsp; &nbsp; &nbsp; Tester: <span style=\"color: #000000;\">Ricardo</span> Ramirez<br />* Date created: <span style=\"color: #000000;\">1998</span><span style=\"color: #000000;\">-01</span><span style=\"color: #000000;\">-01</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Date updated: þ<span style=\"color: #000000;\">2001</span><span style=\"color: #000000;\">-03</span><span style=\"color: #000000;\">-26</span><br />* Time created: <span style=\"color: #000000;\">8</span>:<span style=\"color: #000000;\">17</span>:12PM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Time updated: þ<span style=\"color: #000000;\">16</span>:<span style=\"color: #000000;\">028</span>:17M<br />* &nbsp; &nbsp;Copyright: <span style=\"color: #000000;\"><span style=\"color: #000000;\">&#40;</span>c</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">1998</span><span style=\"color: #000000;\">-2000</span> by Punto-Co<br />*<br />&nbsp;* $Id: <span style=\"color: #000000;\">btnget</span>.prg,v <span style=\"color: #000000;\">1.4</span> <span style=\"color: #000000;\">2001</span>/<span style=\"color: #000000;\">08</span>/<span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">18</span>:<span style=\"color: #000000;\">12</span>:<span style=\"color: #000000;\">21</span> RRamirez <span style=\"color: #0000ff;\">Exp</span> $<br />*<br />* Compliments <span style=\"color: #0000ff;\">of</span>:<br /><span style=\"color: #000000;\">*</span> &nbsp;George Georguiev<br />*-----------------------------------------------------------------------<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> GWL_STYLE &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">-16</span><br /><span style=\"color: #00D7D7;\">#define</span> GWL_EXSTYLE &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">-20</span><br /><span style=\"color: #00D7D7;\">#define</span> DS_3DLOOK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">4</span><br /><span style=\"color: #00D7D7;\">#define</span> SM_CYVSCROLL &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">20</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TBtnGet <span style=\"color: #0000ff;\">FROM</span> TGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp; bAction, cResName, oBtn, lBtnORBmp<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp; nClrPFoText, nClrPFoPane, nClrDef<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp; nBmpWidth, bTmpValid<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp; nClrFocusText, nClrFocusPane <span style=\"color: #B900B9;\">// added. There was erased from FW 2.2c</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> ClassName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> <span style=\"color: #ff0000;\">\"TGET\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, bSetGet, oWnd, nWidth, nHeight, cPict, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bValid, nClrFore, nClrBack, oFont, lDesign, oCursor, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lPixel, cMsg, lUpdate, bWhen, lCenter, lRight, bChanged,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lReadOnly, lPassword, lNoBorder, nHelpId, cResName, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bAction, lSpinner, bUp, bDown, bMin, bMax, nBmpWidth <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, bSetGet, oWnd, nHelpId, cPict, bValid, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore, nClrBack, oFont, oCursor, cMsg, lUpdate, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhen, bChanged, lReadOnly, lSpinner, bUp, bDown, bMin, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bMax, cResName, bAction <span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> Initiate<span style=\"color: #000000;\">&#40;</span> hDlg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">Initiate</span><span style=\"color: #000000;\">&#40;</span> hDlg <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> SetIniClr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> CalcDims<span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />END <span style=\"color: #00C800;\">CLASS</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, bSetGet, oWnd, nWidth, nHeight, cPict, bValid,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrFore, nClrBack, oFont, lDesign, oCursor, lPixel, cMsg,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lUpdate, bWhen, lCenter, lRight, bChanged, lReadOnly,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lPassword, lNoBorder, nHelpId, cResName, bAction, lSpinner,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bUp, bDown, bMin, bMax, nBmpWidth <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, bSetGet, oWnd, nWidth, nHeight, cPict, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bValid, nClrFore, nClrBack, oFont, lDesign, oCursor, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lPixel, cMsg, lUpdate, bWhen, lCenter, lRight, bChanged, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lReadOnly, lPassword, lNoBorder, nHelpId, lSpinner,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bUp, bDown, bMin, bMax <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nBmpWidth := <span style=\"color: #000000;\">17</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nStyle</span> := nOr<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nStyle</span>, ES_MULTILINE <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bAction</span> &nbsp; := bAction<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cResName</span> &nbsp;:= cResName<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lBtnORBmp</span> := .F.<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nBmpWidth</span> := nBmpWidth<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">SetIniClr</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, bSetGet, oWnd, nHelpId, cPict, bValid, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack, oFont, oCursor, cMsg, lUpdate, bWhen, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bChanged, lReadOnly, lSpinner, bUp, bDown, bMin, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bMax, cResName, bAction, nBmpWidth <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, bSetGet, oWnd, nHelpId, cPict, bValid, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore, nClrBack, oFont, oCursor, cMsg, lUpdate, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bWhen, bChanged, lReadOnly, lSpinner, bUp, bDown, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bMin, bMax <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nBmpWidth := <span style=\"color: #000000;\">22</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;:= nOr<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nStyle</span>, ES_MULTILINE <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bAction</span> &nbsp; := bAction<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cResName</span> &nbsp;:= cResName<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lBtnORBmp</span> := .F.<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nBmpWidth</span> := nBmpWidth<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">SetIniClr</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;SetWindowLong<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE, nOr<span style=\"color: #000000;\">&#40;</span> GetWindowLong<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">&#41;</span> , ES_MULTILINE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nRectLen, l3Dlook<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nTop, nLeft, nWidth, nHeight<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//MSGINFO( GetWindowLong( ::oWnd:hWnd, GWL_STYLE ))</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> !lAnd<span style=\"color: #000000;\">&#40;</span> GetWindowLong<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">&#41;</span>, ES_MULTILINE <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//MsgStop(\"Sorry, but you need to define the ID \" + ltrim( str( ::nId ) ) + \" as MULTILINE \")</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> lAnd<span style=\"color: #000000;\">&#40;</span> GetWindowLong<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">&#41;</span> , ES_MULTILINE <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//MsgInfo(\"Si soy\")</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//MsgInfo(\"no soy\")</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//SetWindowLong( ::hWnd, GWL_EXSTYLE, nOr( GetWindowLong( ::hWnd, GWL_EXSTYLE ) , ES_MULTILINE ) )</span><br /><br />&nbsp; &nbsp;nRectLen := ::<span style=\"color: #000000;\">CalcDims</span><span style=\"color: #000000;\">&#40;</span> @nTop, @nLeft, @nWidth, @nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oBtn</span> := TBtnDown<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cResName</span>,, ::<span style=\"color: #000000;\">cResName</span>,, <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">Self</span>:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #00C800;\">Self</span>,<span style=\"color: #ff0000;\">\"\"</span>,, .F., .F.,<span style=\"color: #ff0000;\">\"\"</span>, ,, , .f. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bKeyDown</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> | nKey | IIF<span style=\"color: #000000;\">&#40;</span> nKey == VK_F7, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #000000;\">bGotFocus</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| ::<span style=\"color: #000000;\">bTmpValid</span> := ::<span style=\"color: #000000;\">bValid</span>, ::<span style=\"color: #000000;\">bValid</span> := <span style=\"color: #00C800;\">nil</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nLastKey</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #000000;\">bLostFocus</span> := <span style=\"color: #000000;\">&#123;</span>|| ::<span style=\"color: #000000;\">bValid</span> := ::<span style=\"color: #000000;\">bTmpValid</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;GetBtn<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, nRectLen <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> SetIniClr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nClrFocusText</span> := nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nClrFocusPane</span> := nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">243</span>, <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nClrPFoText</span> &nbsp; := ::<span style=\"color: #000000;\">nClrText</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nClrPFoPane</span> &nbsp; := ::<span style=\"color: #000000;\">nClrPane</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bGotFocus</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| ::<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nClrFocusText</span>, ::<span style=\"color: #000000;\">nClrFocusPane</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bLostFocus</span> := <span style=\"color: #000000;\">&#123;</span>|| ::<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nClrPFoText</span> &nbsp;, ::<span style=\"color: #000000;\">nClrPFoPane</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight, lRepaint <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nRectLen<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight, lRepaint <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">oBtn</span> != <span style=\"color: #00C800;\">Nil</span><br /><br />&nbsp; &nbsp; &nbsp; nRectLen := ::<span style=\"color: #000000;\">CalcDims</span><span style=\"color: #000000;\">&#40;</span> @nTop, @nLeft, @nWidth, @nHeight <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> CalcDims<span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nWidth, nHeight <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBtnGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nRectLen<br /><br />&nbsp; &nbsp;nRectLen := ::<span style=\"color: #000000;\">nBmpWidth</span> + <span style=\"color: #000000;\">4</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lAnd<span style=\"color: #000000;\">&#40;</span> GetWindowLong<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">&#41;</span>, DS_3DLOOK <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cResName</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLeft &nbsp; := ::<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">16</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth &nbsp;:= <span style=\"color: #000000;\">12</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLeft &nbsp; := ::<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">26</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth &nbsp;:= <span style=\"color: #000000;\">22</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; nTop &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; nHeight := ::<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cResName</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLeft &nbsp; := ::<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">15</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth &nbsp;:= <span style=\"color: #000000;\">14</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLeft &nbsp; := ::<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">25</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth &nbsp;:= <span style=\"color: #000000;\">24</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; nTop &nbsp; &nbsp;:= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; nHeight := ::<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cResName</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nRectLen -= <span style=\"color: #000000;\">9</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oVScroll</span> != <span style=\"color: #00C800;\">Nil</span><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;-= GetSysMetrics<span style=\"color: #000000;\">&#40;</span> SM_CYVSCROLL <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nLeft++<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">Return</span> nRectLen<br />&nbsp;</div>[/code:2exaf61b]\n\u001a", "time": "21:16", "topic": "Clase GETBTN", "username": "karinha" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:3aj997qy]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=11311&p=55715&hilit=clase+btnget#p55715[/url:3aj997qy]\n\nSaludos.", "time": "21:18", "topic": "Clase GETBTN", "username": "karinha" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\n\nAlguien tiene o sabe donde puedo conseguir la clase GETBTN ?", "time": "21:34", "topic": "Clase GETBTN", "username": "Compuin" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "FWH proporciona la misma funcionalidad con la claúsula ACTION de los GETs:\n\n... GET ... ACTION ... BITMAP ...", "time": "21:38", "topic": "Clase GETBTN", "username": "Antonio Linares" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=190908\">viewtopic.php?p=190908</a><!-- l -->", "time": "21:39", "topic": "Clase GETBTN", "username": "Antonio Linares" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Y esta clase ya no esta disponible ?", "time": "21:48", "topic": "Clase GETBTN", "username": "Compuin" } ]
Clase GETBTN
[ { "date": "2016-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias a todos", "time": "22:17", "topic": "Clase GETBTN", "username": "Compuin" } ]
Clase GETBTN
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Esta clase es muy útil, la he usado en Clipper.\n\nAlguien la tiene para [x]Harbour?", "time": "17:26", "topic": "Clase MultiPreview para xHarbour", "username": "jose_murugosa" } ]
Clase MultiPreview para xHarbour
[ { "date": "2006-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\n\nEl cambio del preview de impresión en este build logra un efecto parecido al que se obtenía con MultiPreview?", "time": "02:39", "topic": "Clase MultiPreview para xHarbour", "username": "jose_murugosa" } ]
Clase MultiPreview para xHarbour
[ { "date": "2017-02-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\npara poder utilizar la clase nativa de conexión con MySql, además de actualizar mi FW,\nhay que instalar algún conector ODBC? O funciona sin instalar nada, como lo hace \nla clase TDolphin, que funciona solamente con la LIB y la DLL?\nGracias!\nRoberto", "time": "15:35", "topic": "Clase MySql Nativa de FWH (SOLUCIONADO)", "username": "TOTOVIOTTI" } ]
Clase MySql Nativa de FWH (SOLUCIONADO)
[ { "date": "2017-02-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Funciona como TDolphin, no necesitas ningún conector ...\nSaludos", "time": "15:38", "topic": "Clase MySql Nativa de FWH (SOLUCIONADO)", "username": "horacio" } ]
Clase MySql Nativa de FWH (SOLUCIONADO)
[ { "date": "2017-02-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias!\nEntonces habrá que pensar el actualizarse...\nMuchas gracias!\nRoberto", "time": "15:47", "topic": "Clase MySql Nativa de FWH (SOLUCIONADO)", "username": "TOTOVIOTTI" } ]
Clase MySql Nativa de FWH (SOLUCIONADO)
[ { "date": "2022-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados:\nEstoy tratando de migrar desde TDolphin a la clase nativa de MySql/MariaDB\nIntento encontrar los métodos similares que utilizaba en TDolphin. \nLos mismos son los siguientes:\nGetRowObj() Para obtener un objeto copia el registro actual\nGetBlankRow() Para obtener un objeto con los datos en blanco \nGetAutoIncrement(cTable) Para obtener el próximo valor del autoincremental de una tabla\noRow para asignar un objeto obtenido previamente con GetRowObj al objeto oRs y luego hacer Save()\n\nOtra consulta\nLa clase esta disponible en source\\classes ? En caso de que no, donde puedo ver todos los metodos de la clase y sus variables?\nConsulte este hilo <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32657&start=0\">viewtopic.php?f=3&t=32657&start=0</a><!-- l --> pero no se si está todo lo que incluye la clase.\nAgradecido de antemano", "time": "16:50", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Los fuentes no son incluidos en source, la clase no puede heredar,\nesos metodos no existenten.\nla documentación esta aca\n\n[url:34vk7ste]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_class_fwmariaconnection[/url:34vk7ste]\n[url:34vk7ste]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_class_fwmariarowset[/url:34vk7ste]", "time": "18:03", "topic": "Clase Nativa MySql", "username": "carlos vargas" } ]
Clase Nativa MySql
[ { "date": "2022-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias por la info Carlos.\n[quote:2xkzryex]esos metodos no existenten.[/quote:2xkzryex]\nExisten algunos similares?", "time": "18:45", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Instead of GetRowObj(), use\n[code=fw:1jzhf0sb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRec := oQry:<span style=\"color: #000000;\">Record</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// returns FW_Record/TDataRow Object</span><br />&nbsp;</div>[/code:1jzhf0sb]\nYou may edit the oRec object using oRec:FieldName in the Gets,etc/\n\nInstead of GetBlankRow(), use\n[code=fw:1jzhf0sb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRec := oQry:<span style=\"color: #000000;\">Record</span><span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// returns blank FW_Record/TDataRow objecct</span><br />&nbsp;</div>[/code:1jzhf0sb]\n\n[quote:1jzhf0sb]\noRow to assign a previously obtained object with GetRowObj to the oRs object and then Save()\n[/quote:1jzhf0sb]\nThis is not necessary.\nAfter editing the existing or blank FW_Record objec, simple call\n[code=fw:1jzhf0sb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRec:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1jzhf0sb]\nIn case of existing records, the changes will be written to that record and in case of blank record, a new record will be appended to the rowset.\n\nYou can also use oRec:Edit()\nor oQry:Edit()\nor oQry:Edit( .t. )\n\nPlease try.", "time": "18:49", "topic": "Clase Nativa MySql", "username": "nageswaragunupudi" } ]
Clase Nativa MySql
[ { "date": "2022-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente Mr. Rao!\nVoy entendiendo la lógica.\nEl GetAutoIncrement(cTable) lo reemplace por una funcion propia simple:\n[code=fw:2esfdbah]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> GetAutoIncrement<span style=\"color: #000000;\">&#40;</span>cTable,cField<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> oApp:<span style=\"color: #000000;\">oServer</span>:<span style=\"color: #000000;\">QueryResult</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'SELECT MAX('</span>+cField+<span style=\"color: #ff0000;\">') FROM '</span> + cTable<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span></div>[/code:2esfdbah]\nPero no me lo deja asignar al campo\nEsto funciona:\n[code=fw:2esfdbah]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRec := oQry:<span style=\"color: #000000;\">Record</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />oRec:<span style=\"color: #000000;\">ciudad</span> := <span style=\"color: #ff0000;\">\"Mercedes (B)\"</span><br />&nbsp;</div>[/code:2esfdbah]\nEsto no funciona:\n[code=fw:2esfdbah]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRec := oQry:<span style=\"color: #000000;\">Record</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />oRec:<span style=\"color: #000000;\">codigo</span> := &nbsp;GetAutoIncrement<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ciudades\"</span>,<span style=\"color: #ff0000;\">\"codigo\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Campo codigo es autoincremental</span><br />&nbsp;</div>[/code:2esfdbah]\nMe da el siguiente error\n[code=fw:2esfdbah]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">39</span> &nbsp;Escritura no autorizada: <span style=\"color: #000000;\">TDATAROW</span>:<span style=\"color: #000000;\">codigo</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = O &nbsp; TDATAROW</div>[/code:2esfdbah]\nEntiendo que debe ser porque el campo es autoincremental. Pero un registro nuevo igualmente puede tener un código libre, eso lo permite MySql.\nEspero haber sido claro.\nMuchas gracias por su tiempo!", "time": "20:51", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:1pu67rlu]\nPero un registro nuevo igualmente puede tener un código libre, eso lo permite MySql.\nEspero haber sido claro.\nEnglish:\nBut a new record can still have a free code, that is allowed by MySql. I hope I was clear.\n[/quote:1pu67rlu]\nYes.\nBut this is a very unsafe practice for regular insertion of records.\nWe can use this feature in rate occasions like,\n1) fill gaps in auto-inc values due to deletions\n2) reseed the auto-increment value to a higher value. Even for this, it is more appropriate to use ALTER TABLE command than inserting a higher value.\n\n[quote:1pu67rlu]\nEl GetAutoIncrement(cTable) lo reemplace por una funcion propia simple:\n[code=fw:1pu67rlu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> GetAutoIncrement<span style=\"color: #000000;\">&#40;</span>cTable,cField<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> oApp:<span style=\"color: #000000;\">oServer</span>:<span style=\"color: #000000;\">QueryResult</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'SELECT MAX('</span>+cField+<span style=\"color: #ff0000;\">') FROM '</span> + cTable<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span><br />&nbsp;</div>[/code:1pu67rlu]\n[/quote:1pu67rlu]\n\nIt is not as simple as that. Even MySql server does not know the next autoinc value, till the time it actually inserts the record in the table.\nBetween the moment server answers the query \"SELECT MAX(fld) FROM table\" and the time the new record is actually inserted, several other users might have already inserted several records and this insertion will result in an error.\n\n[i:1pu67rlu]Note: We are not discussing single user applications here.[/i:1pu67rlu]\n\nLet us see this example. There is a small table with these records.\n[code=fw:1pu67rlu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">ID</span> FLD1 FLD2<br />&nbsp;<span style=\"color: #000000;\">1</span> AA &nbsp; AAAA<br />&nbsp;<span style=\"color: #000000;\">2</span> BB &nbsp; BBBB<br />&nbsp;</div>[/code:1pu67rlu]\nID is the auto-increment primary field.\n\nUser-A and User-B (and may be more users) are running our application inserting new transactions.\n\nBoth users A and B (and also other users) will assume the next autoinc id will be 3, using the above function.\nMr. A is about to commit his new record with this sql statement\n[code=fw:1pu67rlu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />INSERT INTO table <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ID</span>,FLD1,FLD2<span style=\"color: #000000;\">&#41;</span> VALUES <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #ff0000;\">'CC'</span>,<span style=\"color: #ff0000;\">'CCCC'</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1pu67rlu]\nJust a split second before, User-B inserts his new data with\n[code=fw:1pu67rlu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />INSERT INTO table <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ID</span>,FLD1,FLD2<span style=\"color: #000000;\">&#41;</span> VALUES <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #ff0000;\">'DD'</span>,<span style=\"color: #ff0000;\">'DDDD'</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1pu67rlu]\nUser-B's insertion will be successful.\nBut User-A's insertion fails with an error.\n\nNote: The problem remains the same even if we read auto_increment value from the table_schema.\n\nSo, the safe practice as well as widely adopted practice is to insert the record without any value to auto-inc field and then get the LAST_INSERT_ID to inform the user.\n\nBy default, the RowSet class treats auto-increment field as read-only. TDatarow inherts the readonly attribute from the RowSet object.\n\nIn my next post I will explain how to over-ride this default behavior.", "time": "16:45", "topic": "Clase Nativa MySql", "username": "nageswaragunupudi" } ]
Clase Nativa MySql
[ { "date": "2022-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy clara su explicación Mr. Rao, y es así como ud. lo indica.\nIgualmente, siguiendo su ejemplo, el error se puede capturar con un TRY CATCH e indicárselo al usuario:\n[code=fw:i8ugties]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br />&nbsp; oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH oError<br />&nbsp; MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Error al grabar\"</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>+oError:<span style=\"color: #000000;\">description</span>,<span style=\"color: #ff0000;\">\"Error\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br />&nbsp;</div>[/code:i8ugties]\nEsto está bien?\nDe esta manera le puedo mostrar al usuario y dejarle elegir que id poner, y controlar por programa si el código ya existe.\nEntiendo perfectamente que no es la mejor práctica, pero es válida si se controla correctamente.\nEl problema me surge cuando las tablas ya están definidas y son usadas por otros sistemas que no puedo modificar (comparto tablas entre sistemas web y mis aplicaciones).\nEn mi caso, sería de mucha utilidad poder anular esa comportamiento por default\nDesde ya muchas gracias", "time": "12:02", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-16", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"cmsoft\":1rg43rk6]\nIgualmente, siguiendo su ejemplo, el error se puede capturar con un TRY CATCH e indicárselo al usuario:\n[code=fw:1rg43rk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br />  oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH oError<br />  MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Error al grabar\"</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>+oError:<span style=\"color: #000000;\">description</span>,<span style=\"color: #ff0000;\">\"Error\"</span><span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /> </div>[/code:1rg43rk6]\nEsto está bien?\n[/quote:1rg43rk6]\n\nTRY/CATCH construct not only does not work but can be misleading too because the FWH lib does not raise Runtime Error for any MySql error.\n\noRs:Save() returns true/false for success/failure and the execution goes to the next line, i.e., commit transaction and oCn:RollBack() is never executed.\n\nAlso for saving to single table, transactions are not necessary.\n\nRecommended:\n[code=fw:1rg43rk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> oRs:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Success</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// appropriate code</span><br /><span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// failure</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">ShowError</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// optional</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// suitable action on failure</span><br /><span style=\"color: #00C800;\">endif</span><br />&nbsp;</div>[/code:1rg43rk6]\n\nOR\n\n[code=fw:1rg43rk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t.<br /><span style=\"color: #00C800;\">if</span> oRs:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// success</span><br /><span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// failure. Automatic error message</span><br /><span style=\"color: #00C800;\">endif</span><br />&nbsp;</div>[/code:1rg43rk6]\n \n\n\nWe need to use Transactions when saving changes to two or more RowSets simultaneously. (i.e., either all should be saved or none):\n\n[code=fw:1rg43rk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t. <span style=\"color: #B900B9;\">// can be a global setting</span><br />oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> oRs1:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .and. oRs2:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .and. ;<br />&nbsp; &nbsp;oRs3:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> .and. oRs4:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br />&nbsp;</div>[/code:1rg43rk6] \n\nNote: if one of the Save()s fails with an error, automatic error message is displayed and subsequent Save()s are not executed and RollBack() is executed.", "time": "04:37", "topic": "Clase Nativa MySql", "username": "nageswaragunupudi" } ]
Clase Nativa MySql
[ { "date": "2022-03-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente su explicación Mr. Rao. Veo que la lógica de la librería nativa es bastante diferente a la de la clase Dolphin. Es cuestión de cambiar el modelo de programación.\nEl mismo criterio se aplicia a una instrucción Execute? \nEsto estaría mal:\n[code=fw:1mvmaqlb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br />  oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql1<span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql2<span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql3<span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH oError<br />  MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Error al grabar\"</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>+oError:<span style=\"color: #000000;\">description</span>,<span style=\"color: #ff0000;\">\"Error\"</span><span style=\"color: #000000;\">&#41;</span><br />  oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /> </div>[/code:1mvmaqlb]\nDebería ser así ?\n[code=fw:1mvmaqlb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t. <span style=\"color: #B900B9;\">// can be a global setting</span><br />oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql1<span style=\"color: #000000;\">&#41;</span> .and. oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql2<span style=\"color: #000000;\">&#41;</span> .and. ;<br />   oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span>cSql3<span style=\"color: #000000;\">&#41;</span><br />   oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br />   oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /> </div>[/code:1mvmaqlb]\nQuiero ir entendiendo la lógica, por eso la consulta...\n\n[b:1mvmaqlb]Editado[/b:1mvmaqlb]\nVeo que execute devuelve :\na) nulo si no hay resultado o si ocurrió un error.\nEn caso de error, oCn:nError y oCn:cError proporcionan la información del error.\nOpcionalmente, configurar lShowError muestra el error o el resultado de la instrucción sql,\nb) Numérico: en caso de inserción, actualización, etc., indicando las filas afectadas\nc) Si el resultado es un conjunto de resultados, se devuelve como matriz Multi-Dim\nComo recomienda que debería ser el proceso indicado?", "time": "12:42", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Execute(...) method does not return true or false.\nExecute( \"SELECT ... \" ) returns an array of selected values. \nExecute( \"UPDATE ..\" OR \"INSERT...\" ) returns number of records affected.\nOnly test: if oCn:nError == 0; success; else; fail; endif\n\nNow, different ways:\n\n[b:23c2c79z]Sample - 1[/b:23c2c79z]:\n[code=fw:23c2c79z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t. <span style=\"color: #B900B9;\">// global setting</span><br /><br />oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />lSuccess := .t.<br /><span style=\"color: #00C800;\">for</span> each cSql in <span style=\"color: #000000;\">&#123;</span> cSql1, cSql2, ... cSqlN <span style=\"color: #000000;\">&#125;</span><br />   oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">nError</span> != <span style=\"color: #000000;\">0</span><br />      lSucess := .f.<br />      EXIT<br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">next</span><br /><span style=\"color: #00C800;\">if</span> lSuccess<br />   oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br />   oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /> </div>[/code:23c2c79z]\n\n[b:23c2c79z]Sample - 2[/b:23c2c79z]:\n[code=fw:23c2c79z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t. <span style=\"color: #B900B9;\">// global setting</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br />   oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">for</span> each cSql in <span style=\"color: #000000;\">&#123;</span> cSql1, cSql2, ... cSqlN <span style=\"color: #000000;\">&#125;</span><br />      oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">nError</span> != <span style=\"color: #000000;\">0</span><br />         <span style=\"color: #00C800;\">THROW</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br />   oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH<br />   oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END<br /> </div>[/code:23c2c79z]\n\n[b:23c2c79z]Sample - 3[/b:23c2c79z]:\nFWH 21.11 onwards only:\nIf the flag oCn:lThrowError (default .F.) is set to .T., method Execute() raises Run-time error, in case of any server error. We request to use this flag only locally when using transactions.\n[code=fw:23c2c79z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t. <span style=\"color: #B900B9;\">// global setting</span><br />oCn:<span style=\"color: #000000;\">lThrowError</span> := .t. <span style=\"color: #B900B9;\">// local setting</span><br /><span style=\"color: #00C800;\">TRY</span><br />   oCn:<span style=\"color: #000000;\">BeginTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">for</span> each cSql in <span style=\"color: #000000;\">&#123;</span> cSql1, cSql2, ... cSqlN <span style=\"color: #000000;\">&#125;</span><br />      oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">next</span><br />   oCn:<span style=\"color: #000000;\">CommitTransaction</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CATCH<br />   oCn:<span style=\"color: #000000;\">RollBack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END<br />oCn:<span style=\"color: #000000;\">lThrowError</span> := .f.<br /> </div>[/code:23c2c79z]\n\nMay I know your FWH version?", "time": "05:56", "topic": "Clase Nativa MySql", "username": "nageswaragunupudi" } ]
Clase Nativa MySql
[ { "date": "2022-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias Mr. Rao.\nMi version la acabo de actualizar la semana pasada por la ultima\nCompiler version: Harbour 3.2.0dev (r2008190002)\nFiveWin version: FWH 21.11\nC compiler version: Borland/Embarcadero C++ 7.0 (32-bit)", "time": "16:14", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Then, your present TRY/CATCH constructs should continue to work, when enclosed between oCn:lThrowError := .t. and .f. like this.\n[code=fw:deqy76uk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCn:<span style=\"color: #000000;\">lThrowError</span> := .t.<br />YOUR PRESENT <span style=\"color: #00C800;\">TRY</span>/CATCH CODE<br />oCn:<span style=\"color: #000000;\">lThrowError</span> := .f.</div>[/code:deqy76uk]", "time": "18:00", "topic": "Clase Nativa MySql", "username": "nageswaragunupudi" } ]
Clase Nativa MySql
[ { "date": "2022-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente Mr. Rao... Eso me evita bastante cambios en mis codigos existentes...\nMuchas gracias!", "time": "19:00", "topic": "Clase Nativa MySql", "username": "cmsoft" } ]
Clase Nativa MySql
[ { "date": "2022-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "esto no esta funcionando, no revienta el error en el catch... (maria16.prg modificado)\n\n[code=fw:1911x5lf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// parent and 2 childs</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><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> oCn, o<br />   <span style=\"color: #00C800;\">local</span> oRsState, oRsCity, oRsCust<br />   <span style=\"color: #00C800;\">local</span> oBrwState, oBrwCity, oBrwCust<br />   <span style=\"color: #00C800;\">local</span> oDlg, oFont<br /><br />   oCn   := FW_DemoDB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//oCn:lShowErrors   := .t.</span><br />   <br />   MsgRun<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Reading tables\"</span>, <span style=\"color: #ff0000;\">\"Please Wait...\"</span>, ;<br />   <||<br />      oCn:<span style=\"color: #000000;\">lThrowError</span> := .t.<br />      <span style=\"color: #00C800;\">try</span><br />        oRsState := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT * FROM states ORDER BY name\"</span> <span style=\"color: #000000;\">&#41;</span><br />        oRsCity  := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT id, state, city FROM customer ORDER BY state, city\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//es customers</span><br />        oRsCust  := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT id, state, CONCAT_WS( ', ', first, last ) AS Name FROM customers ORDER by state,Name\"</span> <span style=\"color: #000000;\">&#41;</span><br />      catch o<br />         ?o:<span style=\"color: #000000;\">Description</span><br />         <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />      end<br />      oCn:<span style=\"color: #000000;\">lThrowError</span> := .f.<br />      oRsCity:<span style=\"color: #000000;\">SetFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"STATE = ?\"</span>, <span style=\"color: #000000;\">&#123;</span> oRsState:<span style=\"color: #000000;\">code</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      oRsCust:<span style=\"color: #000000;\">SetFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"STATE = ?\"</span>, <span style=\"color: #000000;\">&#123;</span> oRsState:<span style=\"color: #000000;\">code</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>      <br />      <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />   > <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Segoe UI\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-10</span> PTS<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">700</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MARIADB - PARENT WITH TWO CHILD TABLES\"</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrwState <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE oRsState ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"NAME\"</span>,<span style=\"color: #ff0000;\">\"CODE\"</span> CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrwState<br />      :<span style=\"color: #000000;\">SetGroupHeader</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"PARENT\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">nStretchCol</span>   := <span style=\"color: #000000;\">1</span><br />      :<span style=\"color: #000000;\">lHScroll</span>      := .f.<br />      :<span style=\"color: #000000;\">bChange</span>       := <||<br />                        oRsCity:<span style=\"color: #000000;\">ReFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> oRsState:<span style=\"color: #000000;\">code</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />                        oRsCust:<span style=\"color: #000000;\">ReFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> oRsState:<span style=\"color: #000000;\">code</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />                        oBrwCity:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                        oBrwCust:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />                        <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />                        ><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrwCity <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">260</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE oRsCity ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"STATE\"</span>,<span style=\"color: #ff0000;\">\"CITY\"</span> CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrwCity<br />      :<span style=\"color: #000000;\">SetGroupHeader</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CHILD-1\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">nStretchCol</span>   := <span style=\"color: #000000;\">2</span><br />      :<span style=\"color: #000000;\">lHScroll</span>      := .f.<br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   @ <span style=\"color: #000000;\">280</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrwCust <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE oRsCust ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"STATE\"</span>,<span style=\"color: #ff0000;\">\"NAME\"</span> CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrwCust<br />      :<span style=\"color: #000000;\">SetGroupHeader</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CHILD-2\"</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">nStretchCol</span>   := <span style=\"color: #000000;\">2</span><br />      :<span style=\"color: #000000;\">lHScroll</span>      := .f.<br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1911x5lf]", "time": "01:30", "topic": "Clase Nativa MySql", "username": "carlos vargas" } ]
Clase Nativa MySql
[ { "date": "2022-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Rao, es necesario implementarlo en los RowSet, Query, por ejemplo usar el ejemplo maria16.prg original, y da error en el oRsCity:setfilter dado que oRsCity es nil, ya que fallo el RecSet.", "time": "01:39", "topic": "Clase Nativa MySql", "username": "carlos vargas" } ]
Clase Nativa MySql
[ { "date": "2022-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:1mci9bb3]* New: FWMARIADB:\n New DATA lThrowError INIT .f.\n If set to .T., any failed DML (INSERT,UPDATE,REPLACE,DELETE) operation\n will raise a runtime error.\n This applies to execution of any DML statements with method Execute() \n or using methods Insert(...), Upsert(...) and Update(...)\n This us provided to faclititate grouping of several DML statements/\n methods inside TRY/CATCH block for Transactions.\n Example Usage:\n // --------\n local lError := .f.\n oCn:BeginTransaction()\n oCn:lThrowError := .t.\n TRY\n oCn:Insert(....)\n oCn:Update(...)\n oCn:Execute( \"INSERT ... \" )\n ...\n CATCH\n lError := .t.\n END\n oCn:lThrowError := .f.\n if lError\n oCn:RollBack()\n else\n oCn:CommitTransaction()\n endif\n // --------[/quote:1mci9bb3]\n\nno esta funcionando..., dont work", "time": "01:43", "topic": "Clase Nativa MySql", "username": "carlos vargas" } ]
Clase Nativa MySql
[ { "date": "2015-08-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenos Días amigos del foro, he estado buscando una clase o alguna forma de crear archivos en pdf por medio de programa pero sin buenos resultados, si alguien sabe de algo que se pueda implementar directamente en la programación se los voy a agradecer.\n\n\nFWH64_11.08\nBCC582", "time": "17:02", "topic": "Clase PDF propia de fivewin", "username": "execompu" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Se puede usar PDFLIB.LIB by xHarbour.\n\n[code=fw:t4ou7qnf]<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: #00C800;\">Function</span> criapdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cMyRun, oPdf<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-> &nbsp;Crear la carpeta: c:\\pdf para grabar</span><br />&nbsp; &nbsp;opdf := tpdf<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;\">'c:<span style=\"color: #000000;\">\\p</span>df<span style=\"color: #000000;\">\\m</span>eupdf.pdf'</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span>,<span style=\"color: #ff0000;\">\"P\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"HOLA MUNDO!!!!!!!!!!!\"</span>,<span style=\"color: #000000;\">800</span>,<span style=\"color: #000000;\">10</span>,.t. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfclosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">pdfclose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Adobe debe estar instalado</span><br />&nbsp; &nbsp;cMyRun := <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\P</span>DF<span style=\"color: #000000;\">\\M</span>EUPDF.PDF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;MYRUN<span style=\"color: #000000;\">&#40;</span> cMyRun <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /><br /><br /><span style=\"color: #00C800;\">function</span> filesize<span style=\"color: #000000;\">&#40;</span>cfile<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nfiles := directory<span style=\"color: #000000;\">&#40;</span>cfile<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> nfiles<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> MYRUN<span style=\"color: #000000;\">&#40;</span> cComando <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;***************************<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oShell, RET, lOk:=.T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; #IFDEF __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oShell := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"WScript.Shell\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; #ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oShell := Win_OleCreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"WScript.Shell\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; #ENDIF<br /><br />&nbsp; &nbsp;CATCH<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#IFDEF __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oShell := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"WScript.Shell\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oShell := Win_OleCreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"WScript.Shell\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ENDIF<br /><br />&nbsp; &nbsp; &nbsp; CATCH<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lOk:=.F.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lOk<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">TRY</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//.F. = Nao espera a aplicacao fechar, .T. espera.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oShell:<span style=\"color: #000000;\">Run</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"%comspec% /c \"</span> + cComando, <span style=\"color: #000000;\">0</span>, .T. <span style=\"color: #000000;\">&#41;</span> <br /><br />&nbsp; &nbsp; &nbsp; CATCH<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lOk:=.F.<br /><br />&nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; &nbsp; oShell := <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-- &nbsp; RET := oShell:Run( \"%comspec% /c \" + cComando, 0) &nbsp;//, .T. )</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> lOk<br />&nbsp;</div>[/code:t4ou7qnf]\n\u001a", "time": "14:08", "topic": "Clase PDF propia de fivewin", "username": "karinha" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo pruebo y te comento y muchas gracias por responder.", "time": "16:13", "topic": "Clase PDF propia de fivewin", "username": "execompu" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola karinha:\n\nDes afortunadamente no he podido echar a andar el ejemplo que me mandaste, me marca este error al compilar: \n\n_HB_FUN___CLSACTIVE", "time": "03:31", "topic": "Clase PDF propia de fivewin", "username": "execompu" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Pareciera que tienes algun .obj compilado con xHarbour.\n\nMi recomendacion es que re-montes completamente la aplicacion.\n\nsaludos", "time": "09:31", "topic": "Clase PDF propia de fivewin", "username": "hmpaquito" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:3s7fcz8k]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=21745&start=0[/url:3s7fcz8k]\n\n[url:3s7fcz8k]https&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=TPDF&#46;zip&can=2&q=[/url:3s7fcz8k]\n\nBy Surgom\n\n[url:3s7fcz8k]https&#58;//app&#46;box&#46;com/shared/qfbeha7cb7[/url:3s7fcz8k]\n\nPrueba de TEST.PRG by Surgom:\n\n[img:3s7fcz8k]http&#58;//i&#46;imgur&#46;com/conA6ZP&#46;png[/img:3s7fcz8k]\n\nSaludos.", "time": "15:32", "topic": "Clase PDF propia de fivewin", "username": "karinha" } ]
Clase PDF propia de fivewin
[ { "date": "2015-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:34grth4z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"PdfHbDoc.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> oWnd, n<br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oMenu<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MENU</span> oMenu<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"My First Pdf\"</span> <span style=\"color: #0000ff;\">ACTION</span> creapdfcc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Exit\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MENU</span> oMenu<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #00C800;\">function</span> creapdfcc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> dresult <span style=\"color: #B900B9;\">// := &nbsp;DEHASTA()</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cImpdos<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oprn<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nsaldo := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nvalor := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> z := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cPath := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\P</span>DF<span style=\"color: #000000;\">\\M</span>EUPDF.pdf\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oPdf<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> ntotal := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;n &nbsp;:= <span style=\"color: #000000;\">2.9</span><br /><br />&nbsp; &nbsp;opdf := tpdf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span>cPath<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfnewpage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A4\"</span>,<span style=\"color: #ff0000;\">\"P\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfimage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\Q</span>RCODE.jpg\"</span>, cm2dpi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2.5</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">85</span>,<span style=\"color: #000000;\">66</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"QUÍMICA MEGA SA\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> .<span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Matanza 1456/58\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.2</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Avellaneda-Pcia Bs As\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1.6</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"T.E.: 4289-2700(Rotativas)\"</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.0</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">100</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oPdf:<span style=\"color: #000000;\">Pdfatsay</span><span style=\"color: #000000;\">&#40;</span>replicate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"_\"</span>,<span style=\"color: #000000;\">115</span><span style=\"color: #000000;\">&#41;</span>,cm2dpi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2.5</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">10</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">Pdfclosepage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;opdf:<span style=\"color: #000000;\">pdfclose</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Archivo creado con éxito\"</span>,<span style=\"color: #ff0000;\">\"Aviso del sistema\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;if !empty(cmail)<br />&nbsp; &nbsp; &nbsp; correo(cMail,,(\"Enviamos resumen de cuenta desde \" + transform(dresult[1],\"@d\") + \" hasta \" + &nbsp;transform(dresult[1],\"@d\") ),\"Resumen de cuenta\", alltrim(cPath ) )<br />&nbsp; &nbsp;endif<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;ShellExecute<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"open\"</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\p</span>df<span style=\"color: #000000;\">\\m</span>eupdf.pdf\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /><br /><span style=\"color: #B900B9;\">/*******************************************************************************/</span><br /><br /><span style=\"color: #00C800;\">function</span> cm2dpi<span style=\"color: #000000;\">&#40;</span> nCM, <span style=\"color: #0000ff;\">page</span>, lHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nHeight,nDpi := <span style=\"color: #000000;\">72</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nRes <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span> lHeight <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; lHeight := .T.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> lHeight<br />&nbsp; &nbsp; &nbsp; nHeight := <span style=\"color: #000000;\">842.0</span><br />&nbsp; &nbsp; &nbsp; nRes := nHeight - <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; nRes := <span style=\"color: #000000;\">&#40;</span> nCM * nDpi / <span style=\"color: #000000;\">2.54</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> nRes<br />&nbsp;</div>[/code:34grth4z]\n\u001a\n[img:34grth4z]http&#58;//i&#46;imgur&#46;com/IN1aGO8&#46;png[/img:34grth4z]\n\nsaludos.", "time": "16:56", "topic": "Clase PDF propia de fivewin", "username": "karinha" } ]
Clase PDF propia de fivewin
[ { "date": "2006-04-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, despues de varios dias probando, quitando, poniendo, etc.\nHe descubierto que si le quito a la App el look XP, ya no me cierra y sigue todo trabajando OK, lo activo y empiezan los problemas.....\n\nEste es el contenido de mi archivo, por si tiene algo raro o erroneo :\n\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<assembly \n xmlns=\"urn:schemas-microsoft-com:asm.v1\"\n manifestVersion=\"1.0\">\n<assemblyIdentity\n name=\"MiniGUI\"\n processorArchitecture=\"x86\"\n version=\"5.1.0.0\"\n type=\"win32\"/>\n<description>Windows Shell</description>\n<dependency>\n <dependentAssembly>\n <assemblyIdentity\n type=\"win32\"\n name=\"Microsoft.Windows.Common-Controls\"\n version=\"6.0.0.0\"\n processorArchitecture=\"x86\"\n publicKeyToken=\"6595b64144ccf1df\"\n language=\"*\"\n />\n </dependentAssembly>\n</dependency>\n</assembly>\n\n\nSaludos a todos", "time": "20:59", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "Raymundo Islas M." } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-04-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Ray,\n\nUsa el que proporcionamos en samples\\winxp", "time": "21:20", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "Antonio Linares" } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-04-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Ya lo hice Antonio, con resultados identicos :\n\nLo activo, hay problemas, lo desactivo, se van, pero queda la apariencia de la App, pues.... simplemente simplona <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \n\nSaludos", "time": "21:38", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "Raymundo Islas M." } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba los siguiente:\n\nComenta la linea en el archivo rc\n\n[code:hqlnv557]\n//1 24 \"winxp&#46;man\"\n[/code:hqlnv557]\n\nluego, en el directorio de tu aplicación, toma el archivo winxp.man y renombralo a:\n\n[code:hqlnv557]\nnombredemiaplicacion&#46;exe&#46;manifest\n[/code:hqlnv557]\n\nsi tu app se llama ray.exe, renombra el archivo manifest a \n\n[code:hqlnv557]\nray&#46;exe&#46;manifest\n[/code:hqlnv557]\n\ncuando el programa finaliza, te crea un archivo error.log?\n\notra situacion se da cuando usas la libreria tsbrowse, esa libreria usa un preview.prg y un metafil.prg modificado, ademas de ser versiones algo antiguas.\n\nel caso es que normalmente nosotros agregamos esas tsbrowse.lib antes de las lib de fwh por lo que estariamos usando esas clases antiguas y no las nuevas.\n\nde ser asi lo adecuado es extraer los modulos antiguos de la lib tsbwrowse\npara evitar usarlos\n\n[code:hqlnv557]\ntlib tsbrowse&#46;lib *-rpreview&#46;obj *-tmetafil&#46;obj\n[/code:hqlnv557]\n\nsalu2\ncarlos vargas", "time": "17:09", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "carlos vargas" } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "WWOOOOWWW !!!!!!!!\n\n <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n\nCarlos, eres un genio !!!!\n\n\nYa no me cerro la App, hay algunos detalles en algunas pantallas, pero creo que seran faciles de arreglar.\n\nGracias amigo, te veo por privado mañana lunes <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->", "time": "00:09", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "Raymundo Islas M." } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-10-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Carlos, a mi tambien me fue muy util.\nCesar", "time": "16:42", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "cmsoft" } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2006-10-07", "forum": "FiveWin para Harbour/xHarbour", "text": "de nada <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nsalu2\ncarlos vargas", "time": "00:41", "topic": "Clase PreView no compatible con Temas Visuales de XP ???", "username": "carlos vargas" } ]
Clase PreView no compatible con Temas Visuales de XP ???
[ { "date": "2016-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día\nEstoy usando la versión FWH64.1311\n\nEl problema que tengo es con la clase TPrinter, al crear cualquier reporte, la clase no libera la memoria utilizada.\n\nAlgún tip que puedan compartir ?\n\nSaludos", "time": "18:33", "topic": "Clase Printer [ Liberar memoria ]", "username": "Vikthor.Thomas" } ]
Clase Printer [ Liberar memoria ]
[ { "date": "2016-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Cual és lá version del windows e la memória disponilbe? En windows de 64 bits, el mejor, és que se use 8 Gbs de Ram. Saludos.", "time": "19:19", "topic": "Clase Printer [ Liberar memoria ]", "username": "karinha" } ]
Clase Printer [ Liberar memoria ]
[ { "date": "2016-12-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Vikthor,\n\nEstás usando algún PEN ó algún FONT que finalmente no liberes ? Usando SetResCheck() puedes comprobar que objetos GDI no han sido liberados:\n\n[url:3996wlwl]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_setresdebug[/url:3996wlwl]\n\nSi se trata de memoria de Harbour no liberada, prueba a llamar a hb_gcAll()", "time": "20:38", "topic": "Clase Printer [ Liberar memoria ]", "username": "Antonio Linares" } ]
Clase Printer [ Liberar memoria ]
[ { "date": "2016-12-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\n\nEl método BuildListView() de la clase TPrview es el causante del consumo de memoria.\nAl cargar las imágenes en TImageList() del arreglo ::oDevice:aMeta\n\nSaludos", "time": "21:05", "topic": "Clase Printer [ Liberar memoria ]", "username": "Vikthor.Thomas" } ]
Clase Printer [ Liberar memoria ]
[ { "date": "2016-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Vikthor,\n\nMe suena que eso ya se arregló en su momento.\n\nPuedes proporcionar un ejemplo simple para probarlo ? gracias", "time": "12:31", "topic": "Clase Printer [ Liberar memoria ]", "username": "Antonio Linares" } ]
Clase Printer [ Liberar memoria ]
[ { "date": "2015-04-07", "forum": "FiveTouch", "text": "Antonio\nSaludos cordiales\nSera posible linkar esta clase, veo que incorpora valores de Entorno QT, ejemplo: Colores.\n\n<!-- m --><a class=\"postlink\" href=\"http://doc.qt.io/qt-4.8/qt.html\">http://doc.qt.io/qt-4.8/qt.html</a><!-- m -->", "time": "02:10", "topic": "Clase QT", "username": "jnavas" } ]
Clase QT
[ { "date": "2015-04-07", "forum": "FiveTouch", "text": "Juan,\n\nLo acabo de intentar pero parece que no está implementada en la capa QT para Harbour.\n\nHabría que comentarlo con Pritpal Bedi. Voy a ver si le localizo.", "time": "14:58", "topic": "Clase QT", "username": "Antonio Linares" } ]
Clase QT
[ { "date": "2015-04-07", "forum": "FiveTouch", "text": "Hi\n\nJumping in...\n\nQT is not a class as other classes and is callable on C++ level only.\nThis namespace only defines the ENUMS in C++ and #defines in Harbour.\nQtContribs contain all the defines in hbqt/qtgui/hbqtgui.ch header file.\nJust include it as oyou normally do.\n\nContstants in hbqtgui.ch are defined like this :\n\nQT Harbour\nQt::white Qt_white\n\nOnly \"::\" has been replaced with \"_\".\n\nIt would be nice if you post your queries ( in English only ) at \n<!-- m --><a class=\"postlink\" href=\"https://groups.google.com/forum/?fromgroups#!forum/qtcontribs\">https://groups.google.com/forum/?fromgr ... qtcontribs</a><!-- m -->\n(a dedicated newsgroup for HbQt related questions)\nI am here because Antonio pointed this out to me so it is not \npossible for me to reach to this forum anyway.\n\n\nPritpal Bedi\na student of software analysis & concepts", "time": "20:23", "topic": "Clase QT", "username": "Pritpal Bedi" } ]
Clase QT
[ { "date": "2015-04-07", "forum": "FiveTouch", "text": "Pritpal,\n\nthanks!\n\nAs you all may know, thanks to Pritpal we have QT support in Harbour and he is the best expert about QT and Harbour", "time": "20:25", "topic": "Clase QT", "username": "Antonio Linares" } ]
Clase QT
[ { "date": "2015-04-07", "forum": "FiveTouch", "text": "Antonio\nGracias, se que le ha puesto mucho trabajo con este excelente producto.\nHe visto que son definciiones que posiblemente se puedan remplazar con un #include, ejemplo el tema de los colores.\n\nNo he podido implementar los colores en QT.", "time": "21:38", "topic": "Clase QT", "username": "jnavas" } ]
Clase QT
[ { "date": "2007-01-02", "forum": "Utilities / Utilidades", "text": "Hola,\n\n He descobierto un pequeño bug en el TSalXls en el momento de imprimir los headers de Groups en el archivo XLS. Ahi va la nueva versión.\n\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/022a95eb63/REPEXCEL.rar.html\">http://hyperupload.com/download/022a95e ... L.rar.html</a><!-- m -->\n\nSaludos,", "time": "17:26", "topic": "Clase REPEXCEL", "username": "Kleyber" } ]
Clase REPEXCEL
[ { "date": "2007-01-09", "forum": "Utilities / Utilidades", "text": "Hola a los amigos del foro!!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nPongo a vuestra disposición [u:71uyxija][b:71uyxija]la última versión de la clase RepExcel[/b:71uyxija][/u:71uyxija].\n\nGracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> a :\n[b:71uyxija]Renomas[/b:71uyxija], autor de la clase,\n[b:71uyxija][u:71uyxija]a Antonio Linares quien una vez más me ha autorizado a publicarla incluyendo archivos pertenecientes a FWH 6.12 con las modificaciones necesarias.[/u:71uyxija][/b:71uyxija]\ny a [b:71uyxija]Kleyber Derick[/b:71uyxija], por su modificación en la generacion de grupos en la planilla.\n\nAhora, con las nuevas modificaciones que he hecho, no existe diferencia en el preview de esta clase y el de FWH, los menúes y botones, así como la presentación de los números de página son idénticos, de manera que los usuarios no notarán NINGUNA DIFERENCIA, entre el uso de la clase TReport de FWH y la RepExcel con el pasaje de los reportes a planillas excel, aquellos que utilizan versiones recientes notarán el incremento en la rapidez de generación de la excel por la optimización de la clase TReport.\n\nPueden Bajarla del siguiente LINK:\n\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/027ca04378/RepExcel.exe.html\">http://hyperupload.com/download/027ca04 ... l.exe.html</a><!-- m -->\n\nQUE LA DISFRUTEN!!! <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->", "time": "21:10", "topic": "Clase REPEXCEL", "username": "jose_murugosa" } ]
Clase REPEXCEL
[ { "date": "2007-09-09", "forum": "Utilities / Utilidades", "text": "Hola.\n\n ¿se puede mandar un reporte directamente a excel sin un usar preview\\guardar como?\n\n Saludos.\n\n Jose rios.", "time": "17:12", "topic": "Clase REPEXCEL", "username": "José Ríos" } ]
Clase REPEXCEL
[ { "date": "2007-09-10", "forum": "Utilities / Utilidades", "text": "[quote=\"José Ríos\":2k0rstx6]Hola.\n\n ¿se puede mandar un reporte directamente a excel sin un usar preview\\guardar como?\n\n Saludos.\n\n Jose rios.[/quote:2k0rstx6]\n\nSi la pregunta es si se puede con Repexcel imprimir a excel sin preview, la respuesta es no, la clase no lo contempla actualmente.\n\nLo que si se puede es generar una excel con FileXls directamente, puedes ver en la clase (aquí en el foro) varios ejemplos.", "time": "01:15", "topic": "Clase REPEXCEL", "username": "jose_murugosa" } ]
Clase REPEXCEL
[ { "date": "2007-09-10", "forum": "Utilities / Utilidades", "text": "Hola.\n\n Muchas gracias por tu respuesta.\n\n Saludos.\n\n Jose Rios", "time": "01:39", "topic": "Clase REPEXCEL", "username": "José Ríos" } ]
Clase REPEXCEL
[ { "date": "2008-03-26", "forum": "Utilities / Utilidades", "text": "Alguien me puede decir de donde puedo bajar la clase REPEXCEL ya que el enlace no me esta funcionando\n\n\nGracias", "time": "20:29", "topic": "Clase REPEXCEL", "username": "BenD" } ]
Clase REPEXCEL
[ { "date": "2008-03-27", "forum": "Utilities / Utilidades", "text": "[quote=\"BenD\":32ecyf8b]Alguien me puede decir de donde puedo bajar la clase REPEXCEL ya que el enlace no me esta funcionando\n\n\nGracias[/quote:32ecyf8b]\n\n\nEn este link hallarás varias clases y entre ellas RepExcel.\n<!-- m --><a class=\"postlink\" href=\"http://www.box.net/shared/lck9effuyn\">http://www.box.net/shared/lck9effuyn</a><!-- m -->", "time": "12:15", "topic": "Clase REPEXCEL", "username": "jose_murugosa" } ]
Clase REPEXCEL
[ { "date": "2007-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Algun compañero que tenga la clase RmChart y los wrappers por favor envienmela a <!-- e --><a href=\"mailto:georgeabinader@msn.com\">georgeabinader@msn.com</a><!-- e -->\n\nGracias\n\nGeorge", "time": "17:09", "topic": "Clase RMChart", "username": "George" } ]
Clase RMChart
[ { "date": "2007-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "George,\n\njust sent to you\n\nStefan", "time": "08:42", "topic": "Clase RMChart", "username": "StefanHaupt" } ]
Clase RMChart
[ { "date": "2007-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Stefan\n\nI just recieved, thanks\n\nGeorge", "time": "18:35", "topic": "Clase RMChart", "username": "George" } ]
Clase RMChart
[ { "date": "2017-05-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien tiene el código de la clase que maneja RMChartX para HARBOUR (Yo lo tengo para xHarbour).\n\nSi así fuera y lo pudiera compartir quedaría muy agradecido, ya que me estoy pasando a Harbour y no puedo hacer andar esta clase.", "time": "13:06", "topic": "Clase RMChartX", "username": "jose_murugosa" } ]
Clase RMChartX
[ { "date": "2017-05-23", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:1p2wtkcv]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/viewtopic&#46;php?f=4&t=17133&start=30[/url:1p2wtkcv] \n\n[url:1p2wtkcv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=52512[/url:1p2wtkcv]", "time": "16:40", "topic": "Clase RMChartX", "username": "karinha" } ]
Clase RMChartX
[ { "date": "2006-01-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola \n\n Como puedo saber el número de filas que puedo imprimir en una página ?\n\n\n Un saludo y gracias", "time": "14:47", "topic": "Clase Report ?", "username": "Gabri" } ]
Clase Report ?
[ { "date": "2006-01-05", "forum": "FiveWin para Harbour/xHarbour", "text": "No es posible saberlo de antemano, el objeto REPORT va imprimiendo linea por linea, calculando al mismo tiempo el espacio que le queda para imprimir, tomando en cuenta el tamaño de la hoja en base a los datos que le devuelve el driver.\n\nPor partes.\n\nEl objeto REPORT en realidad es un objeto PRINTER inteligente, que realiza los cálculos de tamaño y espacio de manera automatica.\n\nPara que PRINTER pueda imprimir, valga la redundancia, necesita información del driver de la impresora sobre la cual va a imprimir, esta informacion es por ejemplo la resolucion, el tamaño de la hoja los margenes de la misma, etc.\n\nEn base a esa informacion, el objeto PRINTER sabe que area efectiva de impresion tiene.\n\nREPORT es otra historia, porque basado en las metricas devueltas por Printer, REPORT imprime primero cabeceras, titulos y pies de pagina, luego calcula el espacio disponible para el cuerpo y procede a imprimir linea por linea contado la longitud que lleva impresa en base a la fuente sobre la cual está definido el reporte.\n\nTe comento que no puedes saber cuantas lineas vas a poder imprimir, porque de ante mano cada impresora tiene resolucion distinta, con lo cual, quiza puedas imprimir tal cantidad de lineas en una impresora, pero en otra puedes imprimir mas o menos lineas, dependiendo de la resolucion.\n\nTampoco puedes saber cuantas lineas hay, porque algunas impresoras manejan \"margenes\" predefinidos dentro del driver, con lo cual, a menos que manualmente anules los drivers (con la funcion PrinterSetup() ) tampoco puedes saber que tamaño real de impresion va a tener tu hoja.", "time": "01:18", "topic": "Clase Report ?", "username": "R.F." } ]
Clase Report ?
[ { "date": "2006-01-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Rene \n\n\n Un saludo \n\n Gabriel", "time": "15:26", "topic": "Clase Report ?", "username": "Gabri" } ]
Clase Report ?
[ { "date": "2007-02-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\nestoy utilizando la clase report modificada por RenOmaS para poder pasar los reportes a Excel.\n\nEl problema esta que con esta clase no se puede visualizar las lineas cuando se difine le reporte con oReport:cellView(), a simple vista todo parece estar correcto, pero al previsualizar el reporte, no aparece el cuadriculado que deberia.\n\nAlguien tiene el mismo problema? y si tiene la solucion aun mejor.\n\nsaludos\n\nMarcelo", "time": "19:21", "topic": "Clase Report modificada por RenOmaS", "username": "Marcelo Via Giglio" } ]
Clase Report modificada por RenOmaS
[ { "date": "2007-02-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Estas seguro...\n\noReport:CellView()\ntienes que ejecutarlo despues de haber definidos las columnas del reporte, siempre ha funcionado asi.. al menos en la version que tengo...que es un poco antigua\n\nSalu2 <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "21:50", "topic": "Clase Report modificada por RenOmaS", "username": "RenOmaS" } ]
Clase Report modificada por RenOmaS
[ { "date": "2007-02-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\n(gracias por responder)\nsi, no me sale el grid, tan solo el contorno y no las lineas horizontales de division de cada linea.\n\nMira tu codigo es completemente claro, y no estas tocando el codigo de la clase original me parece muy raro, sera que puedes enviarme tus clases para probarlas (report y mreport) (via at dicyt.umss.edu.bo)\n\nDesde ya muchas gracias\n\nun saludo\n\nMarcelo", "time": "22:40", "topic": "Clase Report modificada por RenOmaS", "username": "Marcelo Via Giglio" } ]
Clase Report modificada por RenOmaS
[ { "date": "2007-02-26", "forum": "FiveWin para Harbour/xHarbour", "text": "La que utilizo. es la que esta en utilidades (en este foro), es la que posteo Jose M.\n\nsalu2 <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "10:13", "topic": "Clase Report modificada por RenOmaS", "username": "RenOmaS" } ]
Clase Report modificada por RenOmaS
[ { "date": "2007-03-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\nla solucion para el problema del cellview, va reemplazando el metodo \nstartline de la clase TMReport\n\n[quote:2xppfa7p]\nMETHOD StartLine( nHeight, lSeparator ) CLASS TMReport\n\n If ::lSalida\n ::oSalida:StartLine( nHeight )\n Else\n Super:StartLine( nHeight, lSeparator )\n EndIf\n\n Return NIL\n[/quote:2xppfa7p]\n\nsaludos\n\nMarcelo", "time": "20:15", "topic": "Clase Report modificada por RenOmaS", "username": "Marcelo Via Giglio" } ]
Clase Report modificada por RenOmaS
[ { "date": "2007-03-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Marcelo,\nPuedes enviarme esta clase hacia <!-- e --><a href=\"mailto:jnavas@datapronet.com\">jnavas@datapronet.com</a><!-- e -->\n\n\n\n[quote=\"Marcelo Via Giglio\":202hrj49]Holas,\n\nla solucion para el problema del cellview, va reemplazando el metodo \nstartline de la clase TMReport\n\n[quote:202hrj49]\nMETHOD StartLine( nHeight, lSeparator ) CLASS TMReport\n\n If ::lSalida\n ::oSalida:StartLine( nHeight )\n Else\n Super:StartLine( nHeight, lSeparator )\n EndIf\n\n Return NIL\n[/quote:202hrj49]\n\nsaludos\n\nMarcelo[/quote:202hrj49]", "time": "02:27", "topic": "Clase Report modificada por RenOmaS", "username": "jnavas" } ]
Clase Report modificada por RenOmaS
[ { "date": "2017-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Colegas, tengo un reporte realizado con FwhMariaDb y lo parametricé de la siguiente manera\n\n[code=fw:14eastnj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRpt : <span style=\"color: #000000;\">bSkip</span>  := <span style=\"color: #000000;\">&#123;</span> || oRs : <span style=\"color: #000000;\">Skip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #0000ff;\">Activate</span> Report oRpt    <span style=\"color: #00C800;\">While</span> <span style=\"color: #000000;\">&#40;</span> !oRs : <span style=\"color: #000000;\">Eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <br /> </div>[/code:14eastnj]\n\nCuando ejecuto el reporte la consulta nunca llega al final. Si bien me lista los registros, una vez terminado de listar me genera un sin fin de páginas en blanco y no termina nunca el proceso, debo cancelarlo. Me falta algo mas en la configuración ? Muchísimas gracias.\n\nSaludos", "time": "20:23", "topic": "Clase Report y FwhMariaDb", "username": "horacio" } ]
Clase Report y FwhMariaDb
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Algo asi:\n\nREPORT oPrn .....\n...\n...\n..\n \n oRpt:bSkip := {|| oRs:Skip(), SYSREFRESH() }\n\nEND REPORT\n\nACTIVATE REPORT oRpt WHILE !oRs:EOF()", "time": "03:47", "topic": "Clase Report y FwhMariaDb", "username": "Willi Quintana" } ]
Clase Report y FwhMariaDb
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Willy por tu sugerencia pero tampoco funciona. Posteo una imagen del problema\n\n[img:1hyk80uu]http&#58;//i65&#46;tinypic&#46;com/2mrtsia&#46;jpg[/img:1hyk80uu]\n\nSaludos", "time": "11:33", "topic": "Clase Report y FwhMariaDb", "username": "horacio" } ]
Clase Report y FwhMariaDb
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:21omcr51]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=19685&p=111915&hilit=ACTIVATE+REPORT+oRpt#p111915[/url:21omcr51]", "time": "13:01", "topic": "Clase Report y FwhMariaDb", "username": "karinha" } ]
Clase Report y FwhMariaDb
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Joao por el post. Pude solucionarlo con la sugerencia de Ramón. \n\nSaludos", "time": "14:38", "topic": "Clase Report y FwhMariaDb", "username": "horacio" } ]
Clase Report y FwhMariaDb
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:2asdllfx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">local</span> lEof := .f.<br /><br />REPORT oRep PREVIEW<br /><br /><columns><br />oRep:<span style=\"color: #000000;\">bSkip</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> |n| lEof := <span style=\"color: #000000;\">&#40;</span> oRs:<span style=\"color: #000000;\">Skip</span><span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> != n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />ENDREPORT<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> REPORT oRep <span style=\"color: #00C800;\">WHILE</span> !lEof<br />&nbsp;</div>[/code:2asdllfx]", "time": "19:44", "topic": "Clase Report y FwhMariaDb", "username": "nageswaragunupudi" } ]
Clase Report y FwhMariaDb
[ { "date": "2009-04-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias a las pruebas que estamos haciendo estos dias con el RibbonBar de CodeJock, hemos mejorado la Clase TActiveX para que automaticamente use objetos TOleAuto en los eventos, por lo que el uso del RibbonBar es mucho más simple y fácil <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nAqui teneis un ejemplo de uso. Fijaros en la forma en que oControl se obtiene desde RibbonBarEvent():\n[code=fw:2x0efj1d]<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 &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpFlagRightAlign &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDTAB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDGROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">20</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDBUTTON &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">30</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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oMenu, oTabs, oGroups, oControls<br /><br />&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;\">\"Visual RibbonBar\"</span><br /><br />&nbsp; &nbsp;@ <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 />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&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 /><br />&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;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;oMenu:<span style=\"color: #000000;\">Flags</span> = xtpFlagRightAlign<br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;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>, ID_ADDTAB, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;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>, ID_ADDGROUP, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;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>, ID_ADDBUTTON, <span style=\"color: #ff0000;\">\"Add Button\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<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 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oControl, oTab, oGroup, oItem <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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;<br />&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; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDTAB<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDGROUP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDBUTTON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">otherwise</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:2x0efj1d]", "time": "08:42", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Dinamicamente inspeccionando los controles del RibbonBar:\n\n[img:2aig2dk9]http&#58;//img518&#46;imageshack&#46;us/img518/467/22476131&#46;png[/img:2aig2dk9]\n\nRibonBar.prg\n[code=fw:2aig2dk9]<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 &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpFlagRightAlign &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDTAB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDGROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">20</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDBUTTON &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">30</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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oMenu, oTabs, oGroups, oControls<br /><br />&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;\">\"Visual RibbonBar\"</span><br /><br />&nbsp; &nbsp;@ <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 />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&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 /><br />&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;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;oMenu:<span style=\"color: #000000;\">Flags</span> = xtpFlagRightAlign<br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;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>, ID_ADDTAB, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Groups\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;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>, ID_ADDGROUP, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Controls\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;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>, ID_ADDBUTTON, <span style=\"color: #ff0000;\">\"Add Button\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<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 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oControl, oTab, oGroup, oItem <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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;<br />&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; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDTAB<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDGROUP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDBUTTON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> == <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">otherwise</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; &nbsp; <br /><br /><span style=\"color: #00C800;\">function</span> ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, cCaption := PadR<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Control Properties\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Caption:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, &nbsp;<span style=\"color: #000000;\">4</span> &nbsp;<span style=\"color: #0000ff;\">GET</span> cCaption <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Width:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Width</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Height:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Height</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:2aig2dk9]", "time": "09:26", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Una Clase TActiveX modificada y ampliada es necesaria para estos ejemplos.\n\nEsta Clase la incluiremos en FWH 9.04. \n\nPosiblemente publiquemos ya una versión preliminar de FWH 9.04 con estos cambios, para que podais empezar a usarlos <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "16:04", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-07", "forum": "FiveWin para Harbour/xHarbour", "text": "[img:2w2mkpu5]http&#58;//img5&#46;imageshack&#46;us/img5/8151/27850001&#46;png[/img:2w2mkpu5]\n[img:2w2mkpu5]http&#58;//img5&#46;imageshack&#46;us/img5/9058/20513256&#46;png[/img:2w2mkpu5]\n[code=fw:2w2mkpu5]<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: #00D7D7;\">#define</span> xtpFlagRightAlign     <span style=\"color: #000000;\">1</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 /><span style=\"color: #00D7D7;\">#define</span> ID_ADDTAB            <span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDGROUP          <span style=\"color: #000000;\">20</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDBUTTON         <span style=\"color: #000000;\">30</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDIMAGE          <span style=\"color: #000000;\">40</span><br /><br /><span style=\"color: #00C800;\">static</span> oIcons, 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, oTabs, oGroups, oControls, oImages<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 | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams <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 />   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 />   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> = 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 />   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>, ID_ADDTAB, <span style=\"color: #ff0000;\">\"Add\"</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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Groups\"</span> <span style=\"color: #000000;\">&#41;</span><br />   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>, ID_ADDGROUP, <span style=\"color: #ff0000;\">\"Add\"</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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Controls\"</span> <span style=\"color: #000000;\">&#41;</span><br />   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>, ID_ADDBUTTON, <span style=\"color: #ff0000;\">\"Add Button\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oImages = 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;\">\"Images\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oImages:<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>, ID_ADDIMAGE, <span style=\"color: #ff0000;\">\"Load Image\"</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 <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oControl, oTab, oGroup, oItem, cBmpFile <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><br />           <br />           oControl = aParams<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />           <br />           <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />              <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDTAB<br />                   oControl = 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 />                   oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />                   oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br /><br />              <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDGROUP<br />                   <span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> > <span style=\"color: #000000;\">0</span><br />                      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> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDBUTTON<br />                   <span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> == <span style=\"color: #000000;\">0</span><br />                      oControl = 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 />                      oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />                      oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br />                   <span style=\"color: #00C800;\">endif</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 />                      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 />                   <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 />                      oItem = 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 />                      oItem:<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;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> = ID_ADDIMAGE<br />                   cBmpFile = cGetFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"*.bmp\"</span>, <span style=\"color: #ff0000;\">\"Please select a BMP file\"</span> <span style=\"color: #000000;\">&#41;</span> <br />                   <span style=\"color: #00C800;\">if</span> File<span style=\"color: #000000;\">&#40;</span> cBmpFile <span style=\"color: #000000;\">&#41;</span><br />                      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oIcons:<span style=\"color: #0000ff;\">Count</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />                      oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> cBmpFile, oIcons:<span style=\"color: #0000ff;\">Count</span> + <span style=\"color: #000000;\">1</span>, xtpImageNormal <span style=\"color: #000000;\">&#41;</span><br />                   <span style=\"color: #00C800;\">endif</span>   <br />                   <br />              <span style=\"color: #00C800;\">otherwise</span><br />                   <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> <span style=\"color: #000000;\">&#41;</span><br />                      ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <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 /><br /><span style=\"color: #00C800;\">function</span> ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, cCaption := PadR<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Control Properties\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br />   <br />   @ <span style=\"color: #000000;\">0.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Caption:\"</span><br />   <br />   @ <span style=\"color: #000000;\">1</span>,  <span style=\"color: #000000;\">4</span>  <span style=\"color: #0000ff;\">GET</span> cCaption <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   <br />   @ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Width:\"</span><br />   <br />   @ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Width</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />   @ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Height:\"</span><br />   <br />   @ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Height</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />   @ <span style=\"color: #000000;\">2.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Icon Id:\"</span><br />   <br />   @ <span style=\"color: #000000;\">3.4</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">IconId</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>            <br /> </div>[/code:2w2mkpu5]", "time": "15:57", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Podeis descargar una demo (EXE y OCX) desde aqui:\n<!-- m --><a class=\"postlink\" href=\"http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38cad9543e5e4099ab5621d66e282a0ee8\">http://www.mediafire.com/?sharekey=414c ... 6e282a0ee8</a><!-- m -->", "time": "22:13", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Editando el texto del Tab y del Grupo:\n\n[img:1kwqrdft]http&#58;//img165&#46;imageshack&#46;us/img165/7715/capturee&#46;png[/img:1kwqrdft]\n\nPodeis descargarlo y probarlo desde aqui:\n<!-- m --><a class=\"postlink\" href=\"http://www.mediafire.com/?sharekey=d0453478149576bfe7c82ed4b8f0c380e0ca5f9a04effcccce018c8114394287\">http://www.mediafire.com/?sharekey=d045 ... 8114394287</a><!-- m -->\n\n[code=fw:1kwqrdft]<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 &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpFlagRightAlign &nbsp; &nbsp; <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageNormal &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageDisabled &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageHot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">2</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImageChecked &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">3</span><br /><span style=\"color: #00D7D7;\">#define</span> xtpImagePressed &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDTAB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">10</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDGROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">20</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDBUTTON &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">30</span><br /><span style=\"color: #00D7D7;\">#define</span> ID_ADDIMAGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">40</span><br /><br /><span style=\"color: #00C800;\">static</span> oIcons, oRb <br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oAct, oMenu, oTabs, oGroups, oControls, oImages<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! IsActiveX<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 />&nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&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;\">\"Visual RibbonBar\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ACTIVEX oAct PROGID <span style=\"color: #ff0000;\">\"Codejock.CommandBarsFrame.13.0.0\"</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 />&nbsp; &nbsp;oAct:<span style=\"color: #000000;\">bOnEvent</span> = <span style=\"color: #000000;\">&#123;</span> | cEvent, aParams | RibbonBarEvent<span style=\"color: #000000;\">&#40;</span> cEvent, aParams <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&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 /><br />&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><br /><br />&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;\">\"fwh\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;oMenu:<span style=\"color: #000000;\">Flags</span> = xtpFlagRightAlign<br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp;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>, ID_ADDTAB, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Groups\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;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>, ID_ADDGROUP, <span style=\"color: #ff0000;\">\"Add\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;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;\">2</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Controls\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;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>, ID_ADDBUTTON, <span style=\"color: #ff0000;\">\"Add Button\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oImages = 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;\">\"Images\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oImages:<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>, ID_ADDIMAGE, <span style=\"color: #ff0000;\">\"Load Image\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<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 <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oControl, oTab, oGroup, oItem, cBmpFile <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> cEvent == <span style=\"color: #ff0000;\">\"Execute\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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;<br />&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; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDTAB<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDGROUP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> == ID_ADDBUTTON<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb:<span style=\"color: #000000;\">TabCount</span> == <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style=\"color: #0000ff;\">Id</span> = oRb:<span style=\"color: #000000;\">TabCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oControl:<span style=\"color: #000000;\">Selected</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem = 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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> oControl:<span style=\"color: #0000ff;\">Id</span> = ID_ADDIMAGE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBmpFile = cGetFile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"*.bmp\"</span>, <span style=\"color: #ff0000;\">\"Please select a BMP file\"</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> File<span style=\"color: #000000;\">&#40;</span> cBmpFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oIcons:<span style=\"color: #0000ff;\">Count</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oIcons:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> cBmpFile, oIcons:<span style=\"color: #0000ff;\">Count</span> + <span style=\"color: #000000;\">1</span>, xtpImageNormal <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">otherwise</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; &nbsp; <br /><br /><span style=\"color: #00C800;\">function</span> ControlInspect<span style=\"color: #000000;\">&#40;</span> oControl <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, cCaption := PadR<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cTabCaption := PadR<span style=\"color: #000000;\">&#40;</span> oRb:<span style=\"color: #000000;\">SelectedTab</span>:<span style=\"color: #000000;\">Caption</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cGrpCaption := PadR<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">RibbonGroup</span>:<span style=\"color: #000000;\">Caption</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Control Properties\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Caption:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, &nbsp;<span style=\"color: #000000;\">4</span> &nbsp;<span style=\"color: #0000ff;\">GET</span> cCaption <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">Caption</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Width:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Width</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1.9</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Height:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.2</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">Height</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Icon Id:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3.4</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">GET</span> oControl:<span style=\"color: #000000;\">IconId</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">4.9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Tab caption:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">5.6</span>, <span style=\"color: #000000;\">5.3</span> <span style=\"color: #0000ff;\">GET</span> cTabCaption <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oRb:<span style=\"color: #000000;\">SelectedTab</span>:<span style=\"color: #000000;\">Caption</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> cTabCaption <span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">5.7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Group caption:\"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.6</span>, <span style=\"color: #000000;\">5.3</span> <span style=\"color: #0000ff;\">GET</span> cGrpCaption <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">RibbonGroup</span>:<span style=\"color: #000000;\">Caption</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> cGrpCaption <span style=\"color: #000000;\">&#41;</span>, oRb:<span style=\"color: #000000;\">RedrawBar</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">12</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:1kwqrdft]", "time": "00:29", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio,\n\nYa encaramelados con Codejock, podrías darme alguna pista de cómo usar [b:lf6szb2f]TASKPANEL[/b:lf6szb2f] de Codejock. Le doy por todos los lados, y aunque no me sale error no pinta nada. Tengo FWH 8.07\n\nUn abrazo,\n\nCarlos Gallego", "time": "01:05", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nNi sabia que existiese <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nComo la usas ? Pon algunos ejemplos que podamos probar", "time": "01:25", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\n[code=fw:11ye689r]<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: #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<br />   <span style=\"color: #00C800;\">local</span> oTaskP, oGrps<br />   <span style=\"color: #00C800;\">LOCAL</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu<br />   <span style=\"color: #0000ff;\">ENDMENU</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;\">\"FWH Support Codejock ActiveX\"</span> <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #B900B9;\">// MDI</span><br /><br />   oTaskP := 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.TaskPanel.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 />    oGrps := oTaskP:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Visisble\"</span>,.T.<span style=\"color: #000000;\">&#41;</span><br />    oGrps := oTaskP:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Enable\"</span>,.T.<span style=\"color: #000000;\">&#41;</span><br />    oGrps := oTaskP:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Expandable\"</span>,.T.<span style=\"color: #000000;\">&#41;</span><br />    oGrps := oTaskP:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Groups\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />      oItGr1 := oGrps:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #ff0000;\">\"Uno\"</span><span style=\"color: #000000;\">&#41;</span><br />       oItGr1:<span style=\"color: #000000;\">Caption</span> := <span style=\"color: #ff0000;\">\"Dificil\"</span><br />       oItGr1:<span style=\"color: #000000;\">Special</span> := .T.<br />         xxx := oItGr1:<span style=\"color: #0000ff;\">Items</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Uno\"</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />         oItGr1:<span style=\"color: #0000ff;\">Items</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Uno\"</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span>ValType<span style=\"color: #000000;\">&#40;</span>xxx<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />       oItGr2 := oGrps:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Dos\"</span><span style=\"color: #000000;\">&#41;</span><br />       oItGr3 := oGrps:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">\"Tres\"</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 /> </div>[/code:11ye689r]\nSaludos,\n\nCarlos Gallego", "time": "01:37", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "También he probado SKINFRAMEWORK, inclusive la combiné con RIBBONBAR, y funciona perfecto !!! en XP y en vista", "time": "01:40", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Realmente Codejock es excepcional. El único problema es que su manual es super difícil de enterder para los que no manejamos Visual Basic.\n\nSi nos dieras una buena guía de cómo manejar los objetos en esta OCX estaríamos hechos en cuanto a mejorar sensiblemente la presentación y diseño de nuestras aplicaciones, y, de esta forma, lograrías una excelente dupleta entra FiveWin y Codejock en beneficio de la comunidad fivewinera.\n\nSaludos,\n\nCarlos Gallego", "time": "01:48", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nYo ni siquiera he mirado el manual <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nDesde Microsoft Word, abres VBA (Visual Basic for Applications) y tiene un inspector de classes. Y ahi puedes ir viendo datos, metodos y eventos. Es bastante intuitivo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:58", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nMira a ver si soporta este método:\n\noActiveX&#058;Do( \"AttachToWindow\", oWnd:hWnd )", "time": "10:36", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nSeria possível incluir estas mudanças activex na versão de 9.01 ?", "time": "13:24", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Rossine" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nSi soporta oActiveX&#058;Do( \"AttachToWindow\", oWnd:hWnd ), pero igual no pinta nada <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nVale la pena que veas el manual \"SymbolReference.chm\".\n\nHe revisado con VBA, pero igual, no encuentro por dónde hacerla funcionar, me quedó grande <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->", "time": "16:59", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Rossine,\n\n> Seria possível incluir estas mudanças activex na versão de 9.01 ?\n\nSi <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:27", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nEn vez de hacer:\n\noGrps := oTaskP:Do( \"Visible\",.T.)\n\nprueba con:\n\noGrps := oTaskP:SetProp( \"Visible\", .T. )\n\nOjo, tenias una \"s\" extra.", "time": "18:30", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Antonio Linares" } ]
Clase TActiveX mejorada y RibbonBar más fácil
[ { "date": "2009-04-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\n\"oGrps := oTaskP:SetProp( \"Visible\", .T. )\"\n\nGenera error:\n\n[errsysw.prg->ERRORDIALOG] (78) Called from: \n errsysw.prg->(b)ERRORSYS(49)\n win32ole.prg->TOLEAUTO:_VISIBLE(0)\n ->__OBJSENDMSG(0)\n ->ACTXSETPROPERTY(0)\n .\\source\\classes\\ACTIVEX.PRG->(b)TACTIVEX&#058;TACTIVEX(0)\n ->TACTIVEX&#058;SETPROP(0)\n PRUEBA1.prg->MAIN(33)\nType: C >>>_VISIBLE<<<\nType: C >>>DISP_E_MEMBERNOTFOUND<<<\nType: N >>> 0<<<\n\nCon oTaskP:Do( \"Visible\",.T.) no genera error, abre la ventana pero no pinta el panel. Es decir, no hace nada.", "time": "19:04", "topic": "Clase TActiveX mejorada y RibbonBar más fácil", "username": "Cgallegoa" } ]
Clase TActiveX mejorada y RibbonBar más fácil