messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Steve,\n\nPlease link this OBJ with your application:\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/101302540/xhb.obj.html\">http://rapidshare.com/files/101302540/xhb.obj.html</a><!-- m -->", "time": "20:17", "topic": "Classes ... anyone?", "username": "Antonio Linares" } ]
Classes ... anyone?
[ { "date": "2008-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Many thanks Antonio ... that little OBJ worked like magic; and now I feel rather sheepish ... I think this is something that I should be able to resolve myself? ... where to start? ... the mystery remains!. I salute you guys out there ... thank you.", "time": "12:46", "topic": "Classes ... anyone?", "username": "SteveLai" } ]
Classes ... anyone?
[ { "date": "2008-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Steve,\n\n> I think this is something that I should be able to resolve myself?\n\nNo. Its a low level technical issue. We solved it here <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n> ... where to start? ... the mystery remains!\n\nHere you have a brief explanation about it: \n\nThe class TActiveX uses some C++ low level source code. With Borland and Microsoft C compilers there is no problem as those missing symbols are provided by Borland and Microsoft. But xHB C compiler (it is PellesC compiler just renamed) does not provide C++ support at all. \n\nIn my little OBJ there is a replacement for those C++ missing symbols.\n\nIs your EXE working fine ? If yes, then simply don't care about it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "13:09", "topic": "Classes ... anyone?", "username": "Antonio Linares" } ]
Classes ... anyone?
[ { "date": "2008-09-30", "forum": "FiveWin for CA-Clipper", "text": "I'm looking for deeper documentation about fivewin classes. I'm rookie and I don't know if it exist. Spedifically, I'm need it about TDATABASE. I have the methods and datas but I can't find the methods sintax.", "time": "12:48", "topic": "Classes documentation", "username": "jicorral" } ]
Classes documentation
[ { "date": "2008-09-30", "forum": "FiveWin for CA-Clipper", "text": "<!-- m --><a class=\"postlink\" href=\"http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_tdatabase\">http://wiki.fivetechsoft.com/doku.php?i ... _tdatabase</a><!-- m -->", "time": "14:41", "topic": "Classes documentation", "username": "Antonio Linares" } ]
Classes documentation
[ { "date": "2008-09-30", "forum": "FiveWin for CA-Clipper", "text": "Class TDataBase is very easy to understand.\r\n\r\nSimply review source/classes/database.prg source code and you will see the methods parameters.", "time": "14:43", "topic": "Classes documentation", "username": "Antonio Linares" } ]
Classes documentation
[ { "date": "2008-10-09", "forum": "FiveWin for CA-Clipper", "text": "There are some articles about classes and database classes on my website here:\r\n\r\n[img:2f382s76]http&#58;//ourworld&#46;compuserve&#46;com/homepages/jbott/program&#46;htm[/img:2f382s76]\r\n\r\nRegards,\r\nJames", "time": "14:16", "topic": "Classes documentation", "username": "James Bott" } ]
Classes documentation
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches,\n\nEstoy intentando crear una clase \"heredada\" porque estuve viendo en el foro y sería práctico no reformar directamente las clases.\n\nCopio un pequeño ejemplo con la clase TRichedit a la cual le agrego un method (METHOD Cololo) y una data (lItalica).\n\n[code=fw:1he28tsw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Constant.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"WColors.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"RichEdit.ch\"</span><br /><br /><br /><br /><span style=\"color: #00C800;\">CLASS</span> NewRichedit <span style=\"color: #0000ff;\">FROM</span> TRichEdit<br /><br />CLASSDATA lRegistered AS LOGICAL   <br /><br />    <span style=\"color: #00C800;\">DATA</span>  lItalica      AS LOGICAL <span style=\"color: #0000ff;\">INIT</span> .f.                                                                         <br />        <br />    <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, bSetGet, oWnd, nWidth, nHeight, oFont, ;<br />               lPixel, cMsg, lHScroll, lReadOnly, bWhen, bValid, ;<br />               bChanged, lDesign, lHighlight, cFileName, ;<br />               nRTFSize, lNoURL, lNoScroll, lNoBorder <span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br /> <br />    <span style=\"color: #00C800;\">METHOD</span> Cololo<span style=\"color: #000000;\">&#40;</span> nStart, nEnd, nColor <span style=\"color: #000000;\">&#41;</span><br /><br />     <br />                                 <br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, bSetGet, oWnd, nWidth, nHeight, oFont, ;<br />            lPixel, cMsg, lHScroll, lReadOnly, bWhen, bValid, ;<br />            bChanged, lDesign, lHighlight, cFileName, ;<br />            nRTFSize, lNoURL, lNoScroll, lNoBorder <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> NewRichedit<span style=\"color: #B900B9;\">//TRichEdit</span><br /><br />   #ifdef __XPP__<br />      #undef <span style=\"color: #00C800;\">New</span><br />   #endif<br /><br />   <span style=\"color: #00C800;\">DEFAULT</span> nTop       := <span style=\"color: #000000;\">0</span>, ;<br />           nLeft      := <span style=\"color: #000000;\">0</span>, ;<br />           oWnd       := GetWndDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />           nWidth     := GetClientRect<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>, ;<br />           nHeight    := GetClientRect<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>, ;<br />           lPixel     := .f., ;<br />           lHScroll   := .f., ;<br />           lReadOnly  := .f., ;<br />           lDesign    := .f., ;<br />           lHighlight := .f., ;<br />           cFileName  := <span style=\"color: #ff0000;\">\"\"</span> , ;<br />           nRTFSize   := <span style=\"color: #000000;\">1024</span> * <span style=\"color: #000000;\">1024</span>, ;<br />           lNoURL     := .f., ;<br />           lNoScroll  := .f., ;<br />           lNoBorder  := .f., ;<br />           oFont      := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Arial\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> LargeFonts<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">-11</span>, <span style=\"color: #000000;\">-13</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> bSetGet != <span style=\"color: #00C800;\">nil</span><br />      ::<span style=\"color: #000000;\">cCaption</span> = cValToChar<span style=\"color: #000000;\">&#40;</span> Eval<span style=\"color: #000000;\">&#40;</span> bSetGet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      ::<span style=\"color: #000000;\">cCaption</span> = <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />   ::<span style=\"color: #000000;\">nTop</span>      = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lPixel, nTop, nTop * SAY_CHARPIX_H <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">nLeft</span>     = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lPixel, nLeft, nLeft * SAY_CHARPIX_W <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">nBottom</span>   = ::<span style=\"color: #000000;\">nTop</span> + nHeight - <span style=\"color: #000000;\">1</span><br />   ::<span style=\"color: #000000;\">nRight</span>    = ::<span style=\"color: #000000;\">nLeft</span> + nWidth - <span style=\"color: #000000;\">1</span><br />   ::<span style=\"color: #000000;\">bSetGet</span>   = bSetGet<br />   ::<span style=\"color: #000000;\">oWnd</span>      = oWnd<br />   ::<span style=\"color: #000000;\">nStyle</span>    = nOR<span style=\"color: #000000;\">&#40;</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP, WS_VSCROLL, ;<br />                      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign   , WS_CLIPSIBLINGS, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !lNoBorder, WS_BORDER, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lHScroll  , WS_HSCROLL, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !lHScroll , ES_WANTRETURN, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !lNoScroll, ES_DISABLENOSCROLL, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      ES_MULTILINE <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">nId</span>       = ::<span style=\"color: #000000;\">GetNewId</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">cCaption</span>  = RTrim<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">lDrag</span>     = lDesign<br />   ::<span style=\"color: #000000;\">lCaptured</span> = .f.<br />   ::<span style=\"color: #000000;\">oFont</span>     = oFont<br />   ::<span style=\"color: #000000;\">cMsg</span>      = cMsg<br />   ::<span style=\"color: #000000;\">lReadOnly</span> = lReadOnly<br />   ::<span style=\"color: #000000;\">bWhen</span>     = bWhen<br />   ::<span style=\"color: #000000;\">bValid</span>    = bValid<br />   ::<span style=\"color: #000000;\">bChange</span>   = bChanged<br />   ::<span style=\"color: #000000;\">cFileName</span> = cFileName<br />   ::<span style=\"color: #000000;\">nRTFSize</span>  = <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> nRTFSize, <span style=\"color: #000000;\">32</span> * <span style=\"color: #000000;\">1024</span> <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">lURL</span>      = !lNoURL<br /><br />   ::<span style=\"color: #000000;\">lHighlight</span>  = lHighlight<br />   ::<span style=\"color: #000000;\">aKeywords1</span>  = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"CLASS\"</span>, <span style=\"color: #ff0000;\">\"FROM\"</span>, <span style=\"color: #ff0000;\">\"ENDCLASS\"</span>, <span style=\"color: #ff0000;\">\"DATA\"</span>, <span style=\"color: #ff0000;\">\"AS\"</span>, <span style=\"color: #ff0000;\">\"METHOD\"</span>, ;<br />                     <span style=\"color: #ff0000;\">\"CONSTRUCTOR\"</span>, <span style=\"color: #ff0000;\">\"function\"</span>, <span style=\"color: #ff0000;\">\"return\"</span>, <span style=\"color: #ff0000;\">\"OBJECT\"</span>, <span style=\"color: #ff0000;\">\"ENDOBJECT\"</span> <span style=\"color: #000000;\">&#125;</span><br />   ::<span style=\"color: #000000;\">aKeywords2</span>  = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"#include\"</span>, <span style=\"color: #ff0000;\">\"Self\"</span>, <span style=\"color: #ff0000;\">\"nil\"</span>, <span style=\"color: #ff0000;\">\"public\"</span>, <span style=\"color: #ff0000;\">\"local\"</span>, <span style=\"color: #ff0000;\">\"Super\"</span> <span style=\"color: #000000;\">&#125;</span><br />   ::<span style=\"color: #000000;\">cSeparators</span> = <span style=\"color: #ff0000;\">\" +-()[]:*/{},=\"</span><br /><br />   ::<span style=\"color: #000000;\">nClrNumber</span>    = CLR_HMAGENTA<br />   ::<span style=\"color: #000000;\">nClrString</span>    = CLR_YELLOW<br />   ::<span style=\"color: #000000;\">nClrComment</span>   = CLR_HBLUE<br />   ::<span style=\"color: #000000;\">nClrSeparator</span> = CLR_WHITE<br />   ::<span style=\"color: #000000;\">nClrText</span>      = CLR_BLACK<br />   ::<span style=\"color: #000000;\">nClrKey1</span>      = CLR_HGREEN<br />   ::<span style=\"color: #000000;\">nClrKey2</span>      = CLR_HCYAN<br />   <br />   <br />     ::<span style=\"color: #000000;\">lItalica</span>         :=  .f.                    <span style=\"color: #B900B9;\">// by rolo</span><br />     <br />    <br />    <br />   ::<span style=\"color: #000000;\">SetOleInit</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">Create</span><span style=\"color: #000000;\">&#40;</span> CTRL_CLASS <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> WM_SETFONT, oFont:<span style=\"color: #000000;\">hFont</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      oWnd:<span style=\"color: #000000;\">AddControl</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      oWnd:<span style=\"color: #000000;\">DefControl</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />   ::<span style=\"color: #000000;\">SetFont2RTF</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// to adjust point size</span><br /><br />   <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lHighlight</span><br />      ::<span style=\"color: #000000;\">HighLightAllText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// PostMessage( ::hWnd, FM_HIGHLIGHTALL )</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />   <span style=\"color: #00C800;\">if</span> lDesign<br />      ::<span style=\"color: #000000;\">CheckDots</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><br /><span style=\"color: #00C800;\">METHOD</span> Cololo<span style=\"color: #000000;\">&#40;</span> nStart, nEnd, nColor <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> NewRichedit <span style=\"color: #B900B9;\">//TRichEdit</span><br /><br />   ::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> nStart, nEnd <span style=\"color: #000000;\">&#41;</span><br />   RESetCharFormat<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span>, ;<br />                    Size2Font<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span> * ::<span style=\"color: #000000;\">nTamano</span> , nColor , ;               <br />                    ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nCharSet</span>, ;<br />                    ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nPitchFamily</span>, ;<br />                    <span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">lItalica</span>,.t.,.f.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,;                                                                                             <br />                     ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">lStrikeOut</span> <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">HideSel</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> Size2Font<span style=\"color: #000000;\">&#40;</span> nSize <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nSize * <span style=\"color: #000000;\">3</span>/<span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span></div>[/code:1he28tsw]\n\n\nEsto lo compila bien sin ningún error pero si hago:\n\n [code=fw:1he28tsw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRich:<span style=\"color: #000000;\">lItalica</span>:=.t.</div>[/code:1he28tsw] \n\nA la hora de ejecutar ese código da un error:\n\n[code=fw:1he28tsw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error description: <span style=\"color: #000000;\">Warning</span> BASE/<span style=\"color: #000000;\">1005</span>  <span style=\"color: #0000ff;\">Message</span> not found: <span style=\"color: #000000;\">TRICHEDIT</span>:_LITALICA<br />Stack Calls<br />===========<br />   Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">source</span>\\rtl\\tobject.prg => TRICHEDIT:<span style=\"color: #000000;\">ERROR</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">source</span>\\rtl\\tobject.prg => TRICHEDIT:<span style=\"color: #000000;\">MSGNOTFOUND</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">source</span>\\rtl\\tobject.prg => TRICHEDIT:_LITALICA<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:1he28tsw]\n\nEsta pequeña reforma es solo una prueba para encontrar la forma de hacerlo bien. Si a la nueva data y al Method los coloco dentro de la clase TRichedit, funciona sin inconvenientes.\n\n¿Alguien puede ayudarme a ver que estoy haciendo mal?. Gracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "02:14", "topic": "Classes heredadas - Ayuda", "username": "rolando" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nSi tu nueva clase se llama NewRichedit(), entonces tienes que usarla para crear tu control y no usar TRichEdit()", "time": "11:39", "topic": "Classes heredadas - Ayuda", "username": "Antonio Linares" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nGracias por responder.\n\nLo que pretendo es realizar cambios a un par de methods agregando datas y también agregar algunos methods más en el caso de la TRichedit.\n\nLa idea es que no tenga que rehacer todos los cambios que le hecho a cada clase cuando actualice versión.\n\n¿Es esta la forma correcta de hacerlo o hay otra manera?.\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:47", "topic": "Classes heredadas - Ayuda", "username": "rolando" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nLa forma más correcta es crear una nueva clase derivada de la que quieres modificar, como has hecho.\nLo que ocurre es que eso hace que los comandos xbase no sirvan, ya que solo se refieren a las Clases originales.\n\nUna solución es variar la Clase, sin modificar su código fuente. Esto no es \"correcto\", pero funciona bastante bien <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nPara añadir nuevas DATAs puedes hacer:\n\nEXTEND CLASS TRichEdit WITH DATA oMiData\n\nPara añadir nuevos Métodos o cambiar los existentes:\n\nEXTEND CLASS TRichEdit WITH MESSAGE MiMensaje METHOD MiMetodo\n\ny defines en el código la función MiMetodo la referencia a Self:\n\n local self := HB_QSelf()", "time": "18:45", "topic": "Classes heredadas - Ayuda", "username": "Antonio Linares" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio, ahora lo tengo un poco más claro.\n\nPero, por mi modo de programar (mezcla de clipper y POO), para crear clases heredadas, debería rehacer todos los prg's de mis aplicaciones.\n\nSeguramente lo voy a intentar con algún proyecto nuevo, pero por ahora voy a probar sobreescribiendo métodos y, si eso no me resulta, seguiré como antes cambiando las clases a la medida de mis necesidades (como tengo asentados todos los cambios, calculo que me será más fácil de realizar que si debo cambiar todos los prg's de mis aplicaciónes).\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:27", "topic": "Classes heredadas - Ayuda", "username": "rolando" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nSi tus cambios en las clases son genéricos y de utilidad para otros, siempre podemos estudiar el incluirlos en FiveWin, \n\nasi no tendrías que cambiar nada en las clases estandard de FWH <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "20:50", "topic": "Classes heredadas - Ayuda", "username": "Antonio Linares" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nHe hecho pequeños cambios en distintas clases, pero en la que más trabajé es en la TRichedit (dentro de mis limitados conocimientos, le agregué algunas funcionalidades tal cual lo necesitaba).\n\nVoy a preparar con tiempo un ejemplo y te lo enviaré, junto con la clase modificada, para que lo analices y si vale la pena publicar los cambios (y quizás mejorarlos), por supuesto que me gustaría que lo hagas.\n\nSaludos.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "00:12", "topic": "Classes heredadas - Ayuda", "username": "rolando" } ]
Classes heredadas - Ayuda
[ { "date": "2013-09-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nParece muy interesante, asi que quedo a la espera de que me lo envies cuando puedas.\n\nMuchas gracias <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:16", "topic": "Classes heredadas - Ayuda", "username": "Antonio Linares" } ]
Classes heredadas - Ayuda
[ { "date": "2006-05-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Where can I find a tutorial and/or documentation about how to create and inherit FWH classes ?\nIs there one around ?\nI am triing to inherit a class from another because I need to add a method.\nI am getting an error that I don´t have if I use the original class.\nThe object seems not ot be created at all...\nThe code is something like this:\n \nClass CL2 from CL1\n METHOD PrintCl()\nENDCLASS\n\nMETHOD PrintCl() class CL2\n alert(\"CL2\")\nreturn NIL\n \nQuestions:\nAl the CL1 methods are avaiable in CL2 ?\nDo I need a constructor/destructor method or the CL1 one is used ?\n\n[[]] Maurício Faria", "time": "20:47", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"concentra\":1su26fex]Where can I find a tutorial and/or documentation about how to create and inherit FWH classes ?\nIs there one around ?\nI am triing to inherit a class from another because I need to add a method.\nI am getting an error that I don´t have if I use the original class.\nThe object seems not ot be created at all...\nThe code is something like this:\n \nClass CL2 from CL1\n METHOD PrintCl()\nENDCLASS\n\nMETHOD PrintCl() class CL2\n alert(\"CL2\")\n\nreturn NIL\n \nQuestions:\nAl the CL1 methods are avaiable in CL2 ?\nDo I need a constructor/destructor method or the CL1 one is used ?\n\n[[]] Maurício Faria[/quote:1su26fex]\n\nDon't forget to add:\n\nCLASSDATA lRegistered AS LOGICAL", "time": "22:04", "topic": "Classes inheritance. How to ?", "username": "Gale FORd" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"concentra\":lm3v8q3z]Where can I find a tutorial and/or documentation about how to create and inherit FWH classes ?[/quote:lm3v8q3z]\n\nBest documentation is FWH source code.\n\n[quote=\"concentra\":lm3v8q3z]I am triing to inherit a class from another because I need to add a method.\nI am getting an error that I don´t have if I use the original class.\nThe object seems not ot be created at all...\nThe code is something like this:\n \nClass CL2 from CL1\n METHOD PrintCl()\nENDCLASS\n\nMETHOD PrintCl() class CL2\n alert(\"CL2\")\nreturn NIL[/quote:lm3v8q3z]\n\nCan you build a little real (compilable) sample of the problem?\n \n[quote=\"concentra\":lm3v8q3z]Questions:\nAl the CL1 methods are avaiable in CL2 ?[/quote:lm3v8q3z]\n\nYes.\n\n[quote=\"concentra\":lm3v8q3z]Do I need a constructor/destructor method or the CL1 one is used ?[/quote:lm3v8q3z]\n\nYes, you need of a constructor.\n\nEMG", "time": "23:30", "topic": "Classes inheritance. How to ?", "username": "Enrico Maria Giordano" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurício,\n\nThere are a couple of articles that I wrote on this available on my website here:\n\n<!-- m --><a class=\"postlink\" href=\"http://ourworld.compuserve.com/homepages/jbott/program.htm\">http://ourworld.compuserve.com/homepage ... rogram.htm</a><!-- m -->\n\nThe article, \"Introduction to Object-Oriented Programming Using FiveWin\" is in two parts.\n\n>I am getting an error that I don´t have if I use the original class. \n\nI see nothing wrong with the code you show so the problem must be in the code you didn't show us. Can you provide us with a small REAL example. Which FW class are trying to inherit from? What is the error you are getting? What version of FW are you using?\n\nJames", "time": "03:33", "topic": "Classes inheritance. How to ?", "username": "James Bott" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Gale FORd\":13cm3mck][quote=\"concentra\":13cm3mck]Where can I find a tutorial and/or documentation about how to create and inherit FWH classes ?\nIs there one around ?\nI am triing to inherit a class from another because I need to add a method.\nI am getting an error that I don´t have if I use the original class.\nThe object seems not ot be created at all...\nThe code is something like this:\n \nClass CL2 from CL1\n METHOD PrintCl()\nENDCLASS\n\nMETHOD PrintCl() class CL2\n alert(\"CL2\")\n\nreturn NIL\n \nQuestions:\nAl the CL1 methods are avaiable in CL2 ?\nDo I need a constructor/destructor method or the CL1 one is used ?\n\n[[]] Maurício Faria[/quote:13cm3mck]\n\nDon't forget to add:\n\nCLASSDATA lRegistered AS LOGICAL[/quote:13cm3mck]\n\nWhy ? \nWhat is \"lRegistered\" ?\n \n[[]] Maurício Faria", "time": "12:42", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":146i9z3b]Maurício,\n\nThere are a couple of articles that I wrote on this available on my website here:\n\n<!-- m --><a class=\"postlink\" href=\"http://ourworld.compuserve.com/homepages/jbott/program.htm\">http://ourworld.compuserve.com/homepage ... rogram.htm</a><!-- m -->\n\nThe article, \"Introduction to Object-Oriented Programming Using FiveWin\" is in two parts.\n\n>I am getting an error that I don´t have if I use the original class. \n\nI see nothing wrong with the code you show so the problem must be in the code you didn't show us. Can you provide us with a small REAL example. Which FW class are trying to inherit from? What is the error you are getting? What version of FW are you using?\n\nJames[/quote:146i9z3b]\n \nThanks James.\nI am reading it and it seems very usefull for a beginning.\nCan I translate to Portuguese ?\n \n[[]] Maurício Faria", "time": "12:44", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nYour articles are very interesting, I´m studying them.\n\nI will translate them to spanish and send to your e-mail.", "time": "12:48", "topic": "Classes inheritance. How to ?", "username": "jose_murugosa" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"EnricoMaria\":2hofg2ae][quote=\"concentra\":2hofg2ae]Where can I find a tutorial and/or documentation about how to create and inherit FWH classes ?[/quote:2hofg2ae]\n\nBest documentation is FWH source code.\n[/quote:2hofg2ae]\n \nI tried but could not figure out what is wrong with my code.\nI thought I needed to study a little if some docs are avaiable.\n \n[quote=\"EnricoMaria\":2hofg2ae]\n\n[quote=\"concentra\":2hofg2ae]I am triing to inherit a class from another because I need to add a method.\nI am getting an error that I don´t have if I use the original class.\nThe object seems not ot be created at all...\nThe code is something like this:\n \nClass CL2 from CL1\n METHOD PrintCl()\nENDCLASS\n\nMETHOD PrintCl() class CL2\n alert(\"CL2\")\nreturn NIL[/quote:2hofg2ae]\n\nCan you build a little real (compilable) sample of the problem?\n\n[/quote:2hofg2ae]\n \nI am triing to add some methods to the SuperBrowse class without modifiing it, and so I tried to inherit it, creating a particular class.\nI will try to find what is wrong with the code with the help you gave me and if I can´t I will try to post complete code.\n \n[quote=\"EnricoMaria\":2hofg2ae] \n[quote=\"concentra\":2hofg2ae]Questions:\nAl the CL1 methods are avaiable in CL2 ?[/quote:2hofg2ae]\n\nYes.\n\n[quote=\"concentra\":2hofg2ae]Do I need a constructor/destructor method or the CL1 one is used ?[/quote:2hofg2ae]\n\nYes, you need of a constructor.\n\nEMG[/quote:2hofg2ae]\n \n[[]] Maurício Faria", "time": "12:53", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurício,\n\n>Can I translate to Portuguese?\n\nSure. Please send me a copy and I will put it up on my site.\n\nJames", "time": "16:38", "topic": "Classes inheritance. How to ?", "username": "James Bott" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "José,\n \n>I will translate them to spanish and send to your e-mail.\n\nGreat. I will put that version on my site too.\n\nJames", "time": "16:40", "topic": "Classes inheritance. How to ?", "username": "James Bott" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Gale FORd\":3ksgky21]Don't forget to add:\nCLASSDATA lRegistered AS LOGICAL\n[/quote:3ksgky21]\nBingo !!!!!\nAdded this single line and my inherited class worked like a charm...\nThanks Gale, but what the hell is \"lRegistered\" ?\n \n[[]] Maurício Faria", "time": "18:51", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "It is a flag that allows a one-time registration of a control class. It is needed to get Windows aware of the new control.\n\nEMG", "time": "19:26", "topic": "Classes inheritance. How to ?", "username": "Enrico Maria Giordano" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"EnricoMaria\":2fjmxmot]It is a flag that allows a one-time registration of a control class. It is needed to get Windows aware of the new control.\nEMG[/quote:2fjmxmot]\n \nOk, but could you tell me when I need it and when I do not ?\n \n[[]] Maurício Faria", "time": "19:49", "topic": "Classes inheritance. How to ?", "username": "concentra" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"concentra\":f321ppg5][quote=\"EnricoMaria\":f321ppg5]It is a flag that allows a one-time registration of a control class. It is needed to get Windows aware of the new control.\nEMG[/quote:f321ppg5]\n \nOk, but could you tell me when I need it and when I do not ?\n \n[[]] Maurício Faria[/quote:f321ppg5]\n\nIf you are creating a temporary stand alone class from scratch and you will not inherit from it then it is not required\n\nIf you plan on inheriting from your class or your class is inheriting from another, then you will need to add it.", "time": "20:12", "topic": "Classes inheritance. How to ?", "username": "Gale FORd" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Gale FORd\":2u6qcjwc]If you are creating a temporary stand alone class from scratch and you will not inherit from it then it is not required\n\nIf you plan on inheriting from your class or your class is inheriting from another, then you will need to add it.[/quote:2u6qcjwc]\n\nNo, you will only need it if you are going to make a control. Not all classes are controls.\n\nEMG", "time": "21:35", "topic": "Classes inheritance. How to ?", "username": "Enrico Maria Giordano" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n>No, you will only need it if you are going to make a control.\n\nAnd apparently you need it only sometimes when it is a control. For instance, the DBCombo class inherits from the TCombobox class but doesn't have lRegistered (and it works fine). Perhaps lRegistered should be added, but one wonders why it works without it.\n\nJames", "time": "22:42", "topic": "Classes inheritance. How to ?", "username": "James Bott" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Because you are inheriting from a standard Windows control and not creating a new custom control.\n\nEMG", "time": "22:55", "topic": "Classes inheritance. How to ?", "username": "Enrico Maria Giordano" } ]
Classes inheritance. How to ?
[ { "date": "2006-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n>Because you are inheriting from a standard Windows control and not creating a new custom control. \n\nThanks for clarifying that.\n\nJames", "time": "00:08", "topic": "Classes inheritance. How to ?", "username": "James Bott" } ]
Classes inheritance. How to ?
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I made this button on Ribbonbar because radio control is not transparent) \n\n @ 24, 400 ADD BUTTON oSay OF ::oGrPlanning BITMAP \".\\bitmaps\\bradio1.bmp\" MOSTLEFT SIZE 65, 18 PROMPT \"Filtro\" ;\n ACTION ( oSelf:lFilter := ! oSelf:lFilter, ;\n oSay:SetFile( If( oSelf:lFilter, \".\\bitmaps\\bradio1.bmp\", \".\\bitmaps\\bradio2.bmp\" ) ) )\n\n\nthen I have a get \n\n @ 9,592 GET oNum1 VAR oSelf:nNumFrom SIZE 90,60 PIXEL OF ::oGrPlanning ;\n FONT oFontBig ;\n BITMAP FwDArrow() ;\n ACTION NIL ; \n [b:2k5zdwdm] WHEN oSelf:lFilter [/b:2k5zdwdm]\n\n\nwhen the oSelf_lFiler is F the get is allwasy active \n\nhow I can resolve ?", "time": "09:51", "topic": "Clausole When not run ok - Resolved!!!", "username": "Silvio.Falconi" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "lFilter is STATIC VARIABLE? .T. or .F.? \n\nTo best assist you, always set a full example. You always put pieces of the program.\n\nRegards.", "time": "14:01", "topic": "Clausole When not run ok - Resolved!!!", "username": "karinha" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "lfilter is a DATA of my class and init is false", "time": "14:49", "topic": "Clausole When not run ok - Resolved!!!", "username": "Silvio.Falconi" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "And when you change lfilter to .T., What returns?\n\n[code=fw:3dyttsqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">lFilter</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// ??</span><br />&nbsp;</div>[/code:3dyttsqj]\n\n\n? lFilter\n\nRegards.", "time": "15:22", "topic": "Clausole When not run ok - Resolved!!!", "username": "karinha" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "return right only the get not respect the when clausole \n\n[img:1n03ox4i]https&#58;//i&#46;postimg&#46;cc/9XxwyYtS/NN&#46;jpg[/img:1n03ox4i]\n\n\nI tried with btnbmp\n\n @ 24, 400 BTNBMP oSay PROMPT { || If( oSelf:lFilter, \"Filtro\", \"Tutti\" ) } ;\n RESOURCE aImagesGiorno[ 1 ] ;\n SIZE 50,60 PIXEL OF ::oGrPlanning FLAT ;\n ACTION ( oSelf:lFilter := !oSelf:lFilter, ;\n ::SetImages( If(oSelf:lFilter, aImagesGiorno[ 1 ], aImagesGiorno[ 2 ] ) ),;\n msginfo(oSelf:lFilter) )\n\n\n @ 9,592 GET oNum1 VAR oSelf:nNumFrom SIZE 110,40 PIXEL OF ::oGrPlanning ;\n FONT oFontBig ;\n BITMAP FwDArrow() ;\n ACTION nil,;\n oNum1:REFRESH() ) when ::lFilter //or when oself:lfilter\n\n\n[img:1n03ox4i]https&#58;//i&#46;postimg&#46;cc/Ghy39FMv/NN&#46;png[/img:1n03ox4i]\n\nthe btnbmp run ok and change the value od lFilter \nthen the get not respect the clausole WHEN oself:lfilter or when ::lFilter\n\n\nbecause the get must run only when lfilter is true\n\nI tried also with @ 24, 400 BTNBMP oSay PROMPT { || If( oSelf:lFilter, \"Filtro\", \"Tutti\" ) } ;\n RESOURCE aImagesGiorno[ 1 ] ;\n SIZE 50,60 PIXEL OF ::oGrPlanning FLAT ;\n ACTION ( oSelf:lFilter := !oSelf:lFilter, ;\n ::SetImages( If(oSelf:lFilter, aImagesGiorno[ 1 ], aImagesGiorno[ 2 ] ) ),;\n oNum1:refresh(),oNum2:refresh() )\n\nbut oNum1 and oNum2 are not disable when the lFilter is False", "time": "15:47", "topic": "Clausole When not run ok - Resolved!!!", "username": "Silvio.Falconi" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "You need to use oDlg:AEvalWhen()", "time": "17:24", "topic": "Clausole When not run ok - Resolved!!!", "username": "nageswaragunupudi" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2019-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Already in the afternoon I had solved when Enrico reminded me that I had to use AEvalWhen (), anyway thanks anyway. ia another time I had the same problem but unfortunately a little for the age a little for the heat I have not recirculated myself", "time": "20:55", "topic": "Clausole When not run ok - Resolved!!!", "username": "Silvio.Falconi" } ]
Clausole When not run ok - Resolved!!!
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches compañeros del foro, espero puedan ayudarme, estoy usan un xbrowse y necesito usar la clausula \"ON CHANGE\" (o la que sea equivalente) para mostrar algunos datos dependiendo del registro seleccionado de la base de datos.\n\n[code=fw:36pi715u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">resource</span> <span style=\"color: #ff0000;\">\"dlgverdb9\"</span> <span style=\"color: #0000ff;\">of</span> oVentprinc <span style=\"color: #0000ff;\">title</span> <span style=\"color: #ff0000;\">\"Llamadas\"</span> <span style=\"color: #0000ff;\">font</span> oFont1g<br />      <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">say</span> <span style=\"color: #0000ff;\">prompt</span><span style=\"color: #ff0000;\">\"Lista de llamadas realizadas, selecciona la llamada a consultar\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">of</span> oDlg<br />      <span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">font</span> oFont1  <span style=\"color: #0000ff;\">name</span> <span style=\"color: #ff0000;\">\"TIMES NEW ROMAN\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span> bold<br />      oBrw := TXBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span><br />      oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW <span style=\"color: #B900B9;\">//barra selectora</span><br />      oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_INSET<br />      oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_INSET<br />      oBrw:<span style=\"color: #000000;\">lColDividerComplete</span> := .t.       <span style=\"color: #B900B9;\">//HEADERS Y FOOTERS</span><br />      oBrw:<span style=\"color: #000000;\">nHeaderHeight</span> := <span style=\"color: #000000;\">22</span> <span style=\"color: #B900B9;\">//Altura cabeceras de col</span><br />      oBrw:<span style=\"color: #000000;\">lRecordSelector</span> := .t. <span style=\"color: #B900B9;\">//poner o no, COL de la flechita de la izq</span><br />      oBrw:<span style=\"color: #000000;\">bClrHeader</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">152</span>, <span style=\"color: #000000;\">251</span>, <span style=\"color: #000000;\">152</span><span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">47</span>, <span style=\"color: #000000;\">79</span>, <span style=\"color: #000000;\">79</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #B900B9;\">//{|| { nRGB(140, 0, 0), nRGB(229,0,0) } } // VERDECITO</span><br />      oBrw:<span style=\"color: #000000;\">bClrFooter</span> := oBrw:<span style=\"color: #000000;\">bClrHeader</span><br />      oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</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>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// colores para lineas normales</span><br />      oBrw:<span style=\"color: #000000;\">bClrSel</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">241</span>,<span style=\"color: #000000;\">222</span>,<span style=\"color: #000000;\">088</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// para barra de linea selecc cuando el control no tiene el foco</span><br />      oBrw:<span style=\"color: #000000;\">bClrSelFocus</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</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>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">34</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// para barra de linea selecc cuando el control tiene el foco</span><br />      oBrw:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">19</span><br /><br />      oCol = oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      oCol:<span style=\"color: #000000;\">bStrData</span> = <span style=\"color: #000000;\">&#123;</span> || market->idmarket <span style=\"color: #000000;\">&#125;</span><br />      oCol:<span style=\"color: #000000;\">nDataStrAlign</span> := <span style=\"color: #000000;\">0</span><br />      oCol:<span style=\"color: #000000;\">cHeader</span> = <span style=\"color: #ff0000;\">\"ID de llamada\"</span><br />      oCol:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #000000;\">110</span><br />      oCol:<span style=\"color: #000000;\">bLClickHeader</span>:= <span style=\"color: #000000;\">&#123;</span>|| DbSetorder<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">Gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,letbus:=<span style=\"color: #ff0000;\">\"ID de llamada\"</span>,odlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,nord:=<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#125;</span><br />      oCol:<span style=\"color: #000000;\">oHeaderFont</span> := oFont1<br />      oCol:<span style=\"color: #000000;\">bClrHeader</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span>  <span style=\"color: #000000;\">65535</span>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">47</span>, <span style=\"color: #000000;\">79</span>, <span style=\"color: #000000;\">79</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />..... <span style=\"color: #000000;\">&#40;</span>Ms columnas<span style=\"color: #000000;\">&#41;</span><br /><br />      oBrw:<span style=\"color: #000000;\">SetRDD</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      oBrw:<span style=\"color: #000000;\">CreatefromResource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">say</span> oSay1 <span style=\"color: #0000ff;\">prompt</span> <span style=\"color: #ff0000;\">\"Buscar en \"</span>+letbus <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UpDate</span><br />      <span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">get</span> Oget1 <span style=\"color: #0000ff;\">VAR</span> cBusca <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span><br /><br />      <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">button</span> oBtn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">action</span> <span style=\"color: #000000;\">&#40;</span>busyfil<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">update</span><br />      <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">button</span> oBtn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">action</span> sinfil<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">Button</span> oBtn3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">prompt</span> <span style=\"color: #ff0000;\">\"Revisar tareas\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> revmar:=idmarket,revtar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">Button</span> oBtn4 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">prompt</span> <span style=\"color: #ff0000;\">\"Registrar ventas\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> revmar:=idmarket,regven<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">button</span> oBtn5 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">action</span> <span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ciccc:=<span style=\"color: #ff0000;\">\"N\"</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <span style=\"color: #00C800;\">enddo</span><br />   oFont1:<span style=\"color: #000000;\">end</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></div>[/code:36pi715u]\n\nComo decía, necesito desplegar información en el diálogo, dependiendo del registro seleccionado, misma que cambiara a cada cambio en el No. de registro.\n\nMuchas gracias", "time": "02:47", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "mariordz" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mario:\nNo se si esto te valdrá, pero tengo un xbrowse en el que al desplazar el cursor por los registros hace que un objeto SAY me vaya mostrando la información del registro algo así\n[code=fw:12xbyajl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">on</span> <span style=\"color: #0000ff;\">change</span> <span style=\"color: #000000;\">&#123;</span>osay1:<span style=\"color: #000000;\">settext</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Dorsal: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span>carrera<span style=\"color: #000000;\">&#91;</span>olbx:<span style=\"color: #000000;\">narrayat</span>,<span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" &nbsp;-- &nbsp;\"</span>+alltrim<span style=\"color: #000000;\">&#40;</span>carrera<span style=\"color: #000000;\">&#91;</span>olbx:<span style=\"color: #000000;\">narrayat</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,osay1:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,osay1:<span style=\"color: #000000;\">show</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:12xbyajl]\nen este caso el xbrowse me muestra una matriz (array) llamada carrera, y objeto say que modifica es osay1, y el objeto xbrowse es olbx.\nUn saludo", "time": "06:55", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "groiss" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mario\nPor si es de tu interés, xBrowse incorpara el bloque\n[code=fw:203wskfm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> oBrw:<span style=\"color: #000000;\">bToolTip</span>:= <span style=\"color: #000000;\">&#123;</span>|| ShowToolTip<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />...<br />...<br /><br />PROCEDURE ShowToolTip<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />   oBrw:<span style=\"color: #000000;\">oCol3</span>:<span style=\"color: #000000;\">cTooltip</span>:= <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> !nCondicion == <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Tu mensaje\"</span>, <span style=\"color: #ff0000;\">\"mensaje alternativo\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// Fin</span></div>[/code:203wskfm]\n\nSaludos", "time": "13:28", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "MarioG" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias por sus respuestas, tengo estas dudas:\n\n[b:51dchlzd]Groiss[/b:51dchlzd], honestamente no se donde insertar la clausa \"on chage\", en mi xbrowse, podrías indicarme donde?\n\n[b:51dchlzd]Mario G.[/b:51dchlzd] Estoy usando la versión 2.6 de Fivewin y me aparece el error de que no reconoce la sentencia tooltip, seguramente es por mi versión de FWH\n\nNuevamente muchas gracias.", "time": "15:24", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "mariordz" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mario\n\n\"on change\" es una clausula, parte, de:\n#xcommand @ <nRow>, <nCol> [ COLUMN ] XBROWSE <oBrw> ;\n [ [ FIELDS ] <Flds,...>] ;\n [ <dsrc: ALIAS, ARRAY, RECSET, RECORDSET, OBJECT, DATASOURCE> <uDataSrc> ] ;\n [ <sizes:FIELDSIZES, SIZES, COLSIZES> <aColSizes,...> ] ;\n [ <head:HEAD,HEADER,HEADERS> <aHeaders,...> ] ;\n [ <pic: PICS, PICTURE, PICTURES> <aPics,...> ] ;\n [ <cols: COLS, COLUMNS> <aCols,...> ] ;\n [ <idx: SORT,ORDERS> <aSort,...> ] ;\n [ JUSTIFY <aJust,...> ] ;\n [ SIZE <nWidth>, <nHeigth> ] ;\n [ ID <nID> ] ;\n [ <dlg:OF,DIALOG> <oWnd> ] ;\n [ SELECT <cField> FOR <uValue1> [ TO <uValue2> ] ] ;\n [b:1r8g1nwg][ <change: ON CHANGE, ON CLICK> <uChange> ] ;[/b:1r8g1nwg]\n ...\n\nVos deberías usar oBrw:bChange:= {|| ... } (porque no declaras el comando, sino que llamas directamente a la clase)\n\nEn cuanto a la version. Creo que la version libre actual es superior a la que usas. La podes bajar de la pagina de Fivetech\n\nSaludos", "time": "15:55", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "MarioG" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2012-08-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Mario, mil gracias por la orientación, funcionó de maravilla.\n\nHace un tiempo, cuando liberaron la versión 6.12 (creo) de Fivewin la bajé e instale, pero me empezó a dar mil problemas con funciones que no existían en esa versión o que habían cambiado de nombre, bajé las versiones de BCC y Harbour para esa versión, pero me seguía dando miles de problemas y decidi regresarme a usar la versión con la que originalmente había generado mis programas.\n\nMuchas, muchas gracias nuevamente.", "time": "19:31", "topic": "Clausula \"ON CHANGE\" en xbrowse", "username": "mariordz" } ]
Clausula "ON CHANGE" en xbrowse
[ { "date": "2006-02-02", "forum": "FiveWin para Pocket PC", "text": "Creo que sería facil implementar la clausula font en los botones de recursos \nya que el btn:setfont( ofont) funciona perfectamente .\nSaludso.", "time": "13:36", "topic": "Clausula Font en los button de recursos", "username": "astursoft" } ]
Clausula Font en los button de recursos
[ { "date": "2021-07-09", "forum": "FiveWin para Harbour/xHarbour", "text": "No se si me he perdido algo con la clausula PIXEL en los controles, pero hay algo que se me escapa, siempre he hecho mis aplicaciones con recursos. Pero ahora estoy haciendo una aplicación que necesito que el tamaño y colocación de los controles dentro de un dialogo aparezcan a una determinada distancia dependiendo de la resolución de la pantalla.\nPara resumir, el problema que estoy teniendo, por ejemplo, es el siguiente:\n[code=fw:qhvzph3k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />nresv := GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDC, VERTRES <span style=\"color: #000000;\">&#41;</span><br />nresh := GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDC, HORZRES <span style=\"color: #000000;\">&#41;</span><br />n_ini_v_fold := <span style=\"color: #000000;\">100</span>  <span style=\"color: #B900B9;\">// el valor es lo de menos, en realidad es un % de la resolución de la pantalla</span><br />n_ini_h_fold := <span style=\"color: #000000;\">20</span><br />n_fin_h_fold := <span style=\"color: #000000;\">300</span><br />n_fin_v_fold := <span style=\"color: #000000;\">250</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgNotas <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> nresv, nresh<br />....<br />@ n_ini_v_fold, n_ini_h_fold FOLDEREX oFolder <span style=\"color: #0000ff;\">PROMPT</span> afolders <span style=\"color: #0000ff;\">DIALOGS</span> aDialogs <span style=\"color: #0000ff;\">OF</span> oDlgNotas <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> n_fin_h_fold, n_fin_v_fold <span style=\"color: #0000ff;\">FONT</span> oFontn<br />.... <br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgNotas <br />...<br /> </div>[/code:qhvzph3k]\n\nAqui me pone el Folder en una determinada posición, pero por motivos de que las pestañas del folder cambian al seleccionar un elemento de un combobox, tengo que destruirlo y volver a declararlo en otra función:\n[code=fw:qhvzph3k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">function</span> ponfolder<span style=\"color: #000000;\">&#40;</span>ccombo<span style=\"color: #000000;\">&#41;</span><br />.....<br />@ n_ini_v_fold, n_ini_h_fold FOLDEREX oFolder <span style=\"color: #0000ff;\">PROMPT</span> afolders <span style=\"color: #0000ff;\">DIALOGS</span> aDialogs <span style=\"color: #0000ff;\">OF</span> oDlgNotas <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> n_fin_h_fold, n_fin_v_fold <span style=\"color: #0000ff;\">FONT</span> oFontn<br />....<br /><span style=\"color: #00C800;\">return</span><br /> </div>[/code:qhvzph3k]\nY aquí está el problema, en ningún momento se cambian los valores de las variables n_ini_v_fold.... Sin embargo, me muestra el folder en otra posición totalmente distinta, es como si los valores de las variables se hubieran reducido a menos de la mitad, cuando no es así (Comprobado mostrando msgalert(str(n_ini_v_fold) justo delante de la declaración del folder.\nEso mismo me pasa con todos los controles (xbrowse, btnbmp, comobobox. etc.), si están en la función donde se declara el dialogo, los muestra en la posicicón correcta, si se declaran en otra funcion, los muestra en otra posición. Incluso el tamaño de los botones y las distancias de un control a otro, varian. Me estoy volviendo loco.\n¿Alguna sugerencia?\nSaludos", "time": "17:45", "topic": "Clausula Pixel", "username": "Sebastián Almirón" } ]
Clausula Pixel
[ { "date": "2021-07-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Sebastian, añade estas clausulas y prueba\n[code=fw:15wo9sxy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgNotas <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> nresv, nresh <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br />&nbsp;</div>[/code:15wo9sxy]", "time": "17:55", "topic": "Clausula Pixel", "username": "cnavarro" } ]
Clausula Pixel
[ { "date": "2021-07-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Jo..r Cristobal, gracias, funciona a la perfección, no tenia ni idea de la clausula TRUEPIXEL para los dialogos, llevo cuatro días peleandome con esto.\nSaludos", "time": "18:06", "topic": "Clausula Pixel", "username": "Sebastián Almirón" } ]
Clausula Pixel
[ { "date": "2021-07-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Buén dia. Master Navarro, no uso Código, podrias porfa, explicar que hace:\n\n[code=fw:vfa36j15]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br />&nbsp;</div>[/code:vfa36j15]\n\nGracias.\n\nRegards, saludos.", "time": "17:33", "topic": "Clausula Pixel", "username": "karinha" } ]
Clausula Pixel
[ { "date": "2021-07-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado Joao\nFijate en el siguiente ejemplo:\n[code=fw:3bxxr4fi]<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 />&nbsp; &nbsp;Pixels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;TruePixels<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 /><br /><br /><span style=\"color: #00C800;\">Function</span> Pixels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cVar &nbsp;:= Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Calibri\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">501</span>, <span style=\"color: #000000;\">701</span> <span style=\"color: #0000ff;\">PIXEL</span><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">24</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">Function</span> TruePixels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cVar &nbsp;:= Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">30</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Calibri\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">501</span>, <span style=\"color: #000000;\">701</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">24</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3bxxr4fi]\n\nLas diferencias entre programar usando un dialog o una ventana como contenedor es que las unidades por defecto que toman los dialogs respecto a las windows son el doble, aunque definas la clausula PIXEL en la definición del Dialog ( esta característica no es un tema de Fivewin, sino del propio Windows que lo tiene así establecido ).\nAnte esa circunstancia y para que no haya diferencias de apariencia entre utilizar windows o dialog como contenedores de nuestros controles, se implementó la claúsula TRUEPIXEL en los dialog, para que Fw internamente divida por dos las coordenadas y tamaños que definimos en los controles, y aparezcan con las mismas dimensiones que si usáramos una window.\nEn resumen, la claúsula TRUEPIXEL se define en los dialog para ser aplicada a las coordenadas y dimensiones de nuestros controles.", "time": "18:51", "topic": "Clausula Pixel", "username": "cnavarro" } ]
Clausula Pixel
[ { "date": "2021-07-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Perfecto Master. Con TRUEPIXEL, és bién mejor para trabajar. Gracias, saludos.", "time": "13:45", "topic": "Clausula Pixel", "username": "karinha" } ]
Clausula Pixel
[ { "date": "2007-08-12", "forum": "FiveWin para CA-Clipper", "text": "Porque no trabaja la clausula valid de un Get el código es el siguiente:\nlocal l_oGet\nprivate p_cArti :=space(14)\nprivate p_pDlg\nDEFINE DIALOG p_oDlg RESOURCE 'DCON_PRE1'\n REDEFINE GET l_oGet VAR p_cArti ID 101 OF p_oDlg PICTURE '@!@k' VALID(Chk_Pre1())\nACTIVATE DIALOG p_oDlg CENTER\nClose Databases\nReturn Nil\n\nStatic Function Chk_Pre1()\n? '1'\nReturn(.t.)\n\nGuillermo Guevara C.\nClp5.2e FW2.3b Blk3.3", "time": "14:10", "topic": "Clausula Valid en un GET simple", "username": "ingggc" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-13", "forum": "FiveWin para CA-Clipper", "text": "Guillermo,\n\nNecesitas tener un control más en el diálogo para que se produzca pérdida de foco hacia ese otro control", "time": "10:00", "topic": "Clausula Valid en un GET simple", "username": "Antonio Linares" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-13", "forum": "FiveWin para CA-Clipper", "text": "Disculpa mi ignorancia.\n\nOk de acuerdo con tu recomendación, entonces voy a programar un diálogo definiendo controles que no ucupo, ¿es una limitante de FW ó que sucede?, en nuestro viejo Clipper no teniamos estas limitántes.\n\nEjemplo específico de este caso, estoy tratando de construir un verificador de precios para que el usuario utilice un scanner (Lector de código de barras) lea el GET (unico control en este diálogo) y a través de la clausula VALID con otro diálogo despliegue el precio de venta por unos segundos y que regrese al GET original listo para otra lectura.\n\nGuillermo Guevara C.", "time": "15:39", "topic": "Clausula Valid en un GET simple", "username": "ingggc" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-13", "forum": "FiveWin para CA-Clipper", "text": "Guillermo:\n\nNo, no hay esa limitante, prueba cambiando la línea así:\n\nREDEFINE GET l_oGet VAR p_cArti ID 101 OF p_oDlg PICTURE '@!@k' VALID Chk_Pre1()\n\nSalaudos", "time": "16:32", "topic": "Clausula Valid en un GET simple", "username": "Armando" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-13", "forum": "FiveWin para CA-Clipper", "text": "Guillermo,\n\nUsa un GET y un botón \"Aceptar\"", "time": "17:57", "topic": "Clausula Valid en un GET simple", "username": "Antonio Linares" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-14", "forum": "FiveWin para CA-Clipper", "text": "Armando:\n\nTu sugerencia es que quite un par de parentesis de la clausula VALID, ya lo hice, pero no funcionó, sigue igual, el programa está atascado en el GET.\n\nAntonio:\n\nImaginate en una tienda un verificador de precios donde comunmente, el cliente solo acerca el producto al lector de código de barras y en la pantalla se muestra el precio del artículo.\n\nCon tu sugerencia de definir un botón, imaginate tendría que ponerle un ratón con un \"Mousepad\" o un teclado con una base (Mesa ó algo así) lo cual resultaría, totalmente inoperante.\n\nPosiblemente estoy buscando la solución al problema incorrectamente, si alguién en el foro tiene alguna idea para solucionar está cosa tan simple por favor transmitanmela.\n\nRealmente este tipo de problemas son los que me han detenido en la decisión de comprar las herramientas requeridas para cambiar definitivamente a este ambiente.\n\nSaludos \n\nGuillermo", "time": "16:22", "topic": "Clausula Valid en un GET simple", "username": "ingggc" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-14", "forum": "FiveWin para CA-Clipper", "text": "Guillermo:\n\nPodrías especificar un poco más cual es el problema ?, cuando dices se queda atascado significa que no ves el resultado del código ?:\n\n? '1' \n\nSi entiendo bien, la solución es que utilices un SAY en el mismo dialogo, despues del GET, para mostrar el precio de venta, así no tendrías que obligar al usuario a usar ningun botón.\n\nSaludos", "time": "17:09", "topic": "Clausula Valid en un GET simple", "username": "Armando" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-15", "forum": "FiveWin para CA-Clipper", "text": "Efectivamente lo que requiero es que se muestre el\n? '1' \nQue es la prueba de que funcionó la clausula VALID en el GET\n\nYa había comprobado que poniendo el SAY en mismo control se hace la perdida de foco que me indicaba Antonio.\n\nSin embargo estoy intrigado porque algo que funciona tan bién en nuestro viejo Clipper no puede funcionar en FW, cuando menos hasta ahora.\n\nAgradezco tus atenciones\n\nGuillermo", "time": "17:15", "topic": "Clausula Valid en un GET simple", "username": "ingggc" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-15", "forum": "FiveWin para CA-Clipper", "text": "Guillermo,\n\n>\nSin embargo estoy intrigado porque algo que funciona tan bién en nuestro viejo Clipper no puede funcionar en FW, cuando menos hasta ahora. \n>\n\nWindows es un entorno muy distinto en su funcionamiento al antiguo MsDos.\n\nFiveWin intenta en la medida de lo posible proporcionar comportamientos muy similares, pero en ocasiones hay que seguir las reglas que impone Windows", "time": "18:02", "topic": "Clausula Valid en un GET simple", "username": "Antonio Linares" } ]
Clausula Valid en un GET simple
[ { "date": "2007-08-16", "forum": "FiveWin para CA-Clipper", "text": "Muchas Gracias por todos los consejos y tu apoyo, estoy de acuerdo hay que cambiar la forma estructurada de pensar, a pensar en función de la programación orientada a objetos.\n\nLo consideraré para mi verificador de precios\n\nGuillermo", "time": "15:06", "topic": "Clausula Valid en un GET simple", "username": "ingggc" } ]
Clausula Valid en un GET simple
[ { "date": "2007-09-20", "forum": "FiveWin para CA-Clipper", "text": "La solucion es simple pon otro Get pero que su variable sea vacio\n\n\n \nlocal l_oGet ,[color=red:ci9r1vu1]xClav:=''[/color:ci9r1vu1]\nprivate p_cArti :=space(14) \nprivate p_pDlg \nDEFINE DIALOG p_oDlg RESOURCE 'DCON_PRE1' \nREDEFINE GET l_oGet VAR p_cArti ID 101 OF p_oDlg PICTURE '@!@k' VALID(Chk_Pre1()) \n\n[color=red:ci9r1vu1]@ 02,08 Get xClav Size 1,1[/color:ci9r1vu1]\n\nACTIVATE DIALOG p_oDlg CENTER \nClose Databases \nReturn Nil \n\nStatic Function Chk_Pre1() \n? '1' \nReturn(.t.) \n[code][/code]", "time": "17:57", "topic": "Clausula Valid en un GET simple", "username": "jacgsoft" } ]
Clausula Valid en un GET simple
[ { "date": "2007-09-25", "forum": "FiveWin para CA-Clipper", "text": "YO HE HECHO ESO CON CODIGO DE BARRAS Y SOLO PONGO UN BOTON \"SALIR\", NO ES PARA QUE EL USUARIO LE DE CON UN MOUSE SALIR SINO COMO DICE ANTONIO PARA QUE HAYA AL MENOS 2 CONTROLES, SI TE DA PIEDRA PONERLO PONLO HIDE Y YA", "time": "13:58", "topic": "Clausula Valid en un GET simple", "username": "QAZWSX2K" } ]
Clausula Valid en un GET simple
[ { "date": "2007-02-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nEs posible q no funcionen correctamente las clausulas box, raised y shadow en la clase TSay ?\n\n[code:2gknr8b5]#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, oSay, oCursor\n\n DEFINE CURSOR oCursor HAND\n\n DEFINE DIALOG oDlg FROM 0,0 TO 20,40\n\n @ 1, 2 SAY oSay PROMPT \"Left\" SIZE 100, 20 COLOR CLR_RED\n @ 2, 2 SAY oSay PROMPT \"Right\" RIGHT SIZE 100, 20 COLOR CLR_RED\n @ 3, 2 SAY oSay PROMPT \"Center\" CENTER SIZE 100, 20 COLOR CLR_RED\n @ 4, 2 SAY oSay PROMPT \"Box\" BOX SIZE 100, 20 COLOR CLR_RED\n @ 5, 2 SAY oSay PROMPT \"Raised\" RAISED SIZE 100, 20 COLOR CLR_RED\n @ 6, 2 SAY oSay PROMPT \"Shadow\" SHADOW SIZE 100, 20 COLOR CLR_RED\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil[/code:2gknr8b5]", "time": "09:57", "topic": "Clausulas TSay", "username": "Carles" } ]
Clausulas TSay
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nEstoy probando cosas nuevas y me he encontrado con este problema:\n\nHe puesto la clausula SHADED en un SAY en vez de BORDER y me aparece así:\n\n[img:atcrsokw]http&#58;//www&#46;colthop&#46;es/ima01&#46;jpg[/img:atcrsokw]\n\nCuando lo pongo con BORDER sale así:\n\n[img:atcrsokw]http&#58;//www&#46;colthop&#46;es/ima02&#46;jpg[/img:atcrsokw]\n\nAlguien sabe porque y como se puede solucionar.\n\nEl código es:\n\n[code=fw:atcrsokw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ <span style=\"color: #000000;\">10</span>*ProporV, <span style=\"color: #000000;\">10</span>*ProporH <span style=\"color: #0000ff;\">SAY</span> tDlg001 <span style=\"color: #0000ff;\">VAR</span> LocaText<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">175</span><span style=\"color: #000000;\">&#41;</span>      <span style=\"color: #0000ff;\">OF</span> wGestClie1 <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> escri1, fondo1 <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>*ProporH,xProPorV*ProPorV<br />@ <span style=\"color: #000000;\">10</span>*ProporV,<span style=\"color: #000000;\">410</span>*ProporH <span style=\"color: #0000ff;\">SAY</span> tDlg002 <span style=\"color: #0000ff;\">VAR</span> LocaText<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">90</span><span style=\"color: #000000;\">&#41;</span>      <span style=\"color: #0000ff;\">OF</span> wGestClie1 <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> escri1, fondo1 <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>*ProporH,xProPorV*ProPorV<br />@ <span style=\"color: #000000;\">10</span>*ProporV,<span style=\"color: #000000;\">110</span>*ProporH <span style=\"color: #0000ff;\">SAY</span> vDlg001 <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\" \"</span> + codigo   <span style=\"color: #0000ff;\">OF</span> wGestClie1 <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> escri3, fondo3 <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">78</span>*ProporH,xProPorV*ProPorV   SHADED<br />@ <span style=\"color: #000000;\">10</span>*ProporV,<span style=\"color: #000000;\">530</span>*ProporH <span style=\"color: #0000ff;\">SAY</span> vDlg041 <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\" \"</span> + clavecif <span style=\"color: #0000ff;\">OF</span> wGestClie1 <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> escri3, fondo3 <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">14</span>*ProporH,xProPorV*ProPorV   BORDER<br /> </div>[/code:atcrsokw]\n\nGracias y un saludo\n\nCarlos", "time": "14:50", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nEn el editor de recursos prueba ambas claúsulas a ver si se ven a la vez", "time": "18:27", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nComo se cambia en el editor de recursos (ya sabes soy mu torpe).\nNo obstante yo h probado a poner las dos a la vez SHADED BORDER y sale igual.\n\nUn saludo\n\nCarlos", "time": "18:46", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nEs esta la apariencia que deseas conseguir ?\n\n[img:18mu6ljg]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/saystyle&#46;JPG[/img:18mu6ljg]", "time": "20:30", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nRealmente estaba probando para ver como quedaba ya que nunca lo había probado y no se como queda al ver SHADED imagine una cosa parecida a una caja con sombra pero es lo que no he conseguido ver como queda.\n\nSi me haces el favor podrías mandarme una imagen con las tres posibilidades SHADED, RAISED y BOX. Por lo que veo en la imagen que me mandas parece mas RAISED que SHADED. \n\nUn saludo\n\nCarlos", "time": "20:57", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nQue editor de recursos usas ?\n\nPruébalo desde tu editor de recursos", "time": "07:17", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nNo utilizo editor de recursos. Dime uno para probar.\n\nUn saludo\n\nCarlos", "time": "08:24", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nPuedes usar PellesC. Yo suelo usar ResEdit.", "time": "09:34", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nVi en tu post que usabas el ResEdit y me lo bajé para intentar usarlo lo instale y todo casi bien ya que cada vez que intentaba crear un dialogo para hacer las pruebas me daba un error y no me dejaba seguir. Probaré con el PellesC\n\nNo obstante la instrucción que pongo es correcta o no, ya que simplemente es para ver como queda. Lo que pasa que si me gusta como queda y quiero usarla me encontraría con el problema.\n\nUn saludo\n\nCarlos", "time": "09:49", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nEstos son los estilos que usa la Clase TSay:\n\n[code=fw:139yd18h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; ::<span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;= nOR<span style=\"color: #000000;\">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign, nOr<span style=\"color: #000000;\">&#40;</span> WS_CLIPSIBLINGS, WS_TABSTOP <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lCentered, SS_CENTER, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRight, SS_RIGHT, SS_LEFT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBorder, WS_BORDER, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lShaded, SS_BLACKRECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBox, &nbsp; &nbsp;SS_GRAYRECT, &nbsp;<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRaised, SS_WHITERECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:139yd18h]\n\nEn mis pruebas (la imagen que te puse), los estilos son otros. Por eso no te aparece como quieres.\n\nY de ahi que te preguntase que efecto es el que quieres, antes de ponernos a modificar la clase.", "time": "09:57", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nAnteriormente te puse dos SAY uno debajo del otro, primero con el SHADED y después sin ninguno :\n\n[img:h4d583ue]http&#58;//www&#46;colthop&#46;es/ima01&#46;jpg[/img:h4d583ue]\n[img:h4d583ue]http&#58;//www&#46;colthop&#46;es/ima02&#46;jpg[/img:h4d583ue]\n\nSería hacer el SAY mas parecido al GET:\n\n[img:h4d583ue]http&#58;//www&#46;colthop&#46;es/ima03&#46;jpg[/img:h4d583ue]\n\nY me pareció que poniendo SHADED hacia el efecto que hace el GET de una sombra. Pero cuando lo puse quitaba los colores y no ponía el dato lo dejaba todo en gris.\n\nUn saludo\n\nCarlos", "time": "10:12", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nPodemos modificar la clase según necesitemos.\n\nPor eso te decía de que probases los diferentes estilos desde el editor de recursos, y una\nvez esté como tu quieras, que me indicases que estilos son los que has usado.", "time": "11:46", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nNo consigo abrir el dialogo en el ResEdit podrías enviarme tu test.rc a mi email (<!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->) para abrirlo aquí y poder decirte lo que me pides.\n\nUn saludo\n\nCarlos", "time": "12:23", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\ntest.rc\n[code=fw:1sl3vm92]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br />IDD_DIALOG1 <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">134</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Dialog\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Ms Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; LTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Static\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">31</span>, <span style=\"color: #000000;\">39</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">22</span>, WS_BORDER | SS_LEFT, WS_EX_STATICEDGE<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:1sl3vm92]\n\nWS_BORDER | SS_LEFT, WS_EX_STATICEDGE", "time": "18:12", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nHe estado mirando esto y sobre lo que tu me mandaste cree otro SAY (con el Pelles C ya que el ResEdit no me dejaba) y después de trastear sería casi como el que tu has realizado lo que cambia es que no tiene borde.\n\n[code=fw:3d6b7hnc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL<br />IDD_DIALOG1 <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">134</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_CENTER|WS_CAPTION|WS_SYSMENU|WS_VISIBLE|0x00000008<br />CAPTION <span style=\"color: #ff0000;\">\"Dialog\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Ms Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; CONTROL <span style=\"color: #ff0000;\">\"Static\"</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_BORDER|WS_GROUP, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">22</span>, WS_EX_STATICEDGE<br />&nbsp; CONTROL <span style=\"color: #ff0000;\">\"Static\"</span>, <span style=\"color: #000000;\">4001</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_GROUP, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">48</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">22</span>, WS_EX_STATICEDGE<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:3d6b7hnc]\n\nAhora me dirás como puedo hacer para poder poner ese estilo en todo mis SAY, que yo no se.\n\nUn saludo\n\nCarlos", "time": "08:06", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Has probado?\n\n[code=fw:2klk7ck8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oSay:<span style=\"color: #000000;\">nStyle</span> := nOr<span style=\"color: #000000;\">&#40;</span> WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_CENTER|WS_CAPTION|WS_SYSMENU|WS_VISIBLE|0x00000008 <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2klk7ck8]", "time": "08:49", "topic": "Clausulas del SAY", "username": "cnavarro" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Cristóbal:\n\nGracias por tu interés. \n\nNo lo he probado hasta ahora, pero cuando la he puesto en unos SAY para ver que hacia me da un Syntax Error at \"|\" cuando pongo mas de dos parámetros y cando pongo solo uno y me compila me da el error de \"No existe la variable\" con \"DS_3DLOOK\", \"DS_CENTER\" y \"WS_VISIBLE\" y con el resto no encuentro variación con solo BORDER o CON SHADED. Me podrías indicar que hace esta instrucción para poder ver un SAY con SHADED.\n\nGracias de nuevo\n\nUn saludo\n\nCarlos", "time": "09:29", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos, lo quieres hacer con REDEFINE por .RC o con codigo?\n\nEsas definiciones estan creo recordar en windows.h", "time": "09:37", "topic": "Clausulas del SAY", "username": "cnavarro" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Cristóbal:\n\nLo quiero realizar por código y cuando incluyo el Windows.h con:\n\n#INCLUDE \"Windows.h\" \n\nMe sale mas errores en la línea 30 y la 174 de este. Este archivo es del BCC582 o de otro.\n\nUn saludo\n\nCarlos", "time": "10:03", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-05-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nModifica asi la Clase TSay:\n\n#define WS_EX_STATICEDGE 0x00020000\n\n[code=fw:2c8686zf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; ::<span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;= nOR<span style=\"color: #000000;\">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign, nOr<span style=\"color: #000000;\">&#40;</span> WS_CLIPSIBLINGS, WS_TABSTOP <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lCentered, SS_CENTER, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRight, SS_RIGHT, SS_LEFT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBorder, nOr<span style=\"color: #000000;\">&#40;</span> WS_BORDER, WS_EX_STATICEDGE <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lShaded, SS_BLACKRECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBox, &nbsp; &nbsp;SS_GRAYRECT, &nbsp;<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRaised, SS_WHITERECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:2c8686zf]\n\nSi quieres sin borde negro:\n\n[code=fw:2c8686zf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; ::<span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;= nOR<span style=\"color: #000000;\">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign, nOr<span style=\"color: #000000;\">&#40;</span> WS_CLIPSIBLINGS, WS_TABSTOP <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lCentered, SS_CENTER, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRight, SS_RIGHT, SS_LEFT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBorder, WS_EX_STATICEDGE, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lShaded, SS_BLACKRECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBox, &nbsp; &nbsp;SS_GRAYRECT, &nbsp;<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRaised, SS_WHITERECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:2c8686zf]\n\nSólo tendrás que usar la claúsula BORDER", "time": "12:23", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nEsto lo deje apartado ya que no me salio bien lo que me dijiste estoy intentando retomarlo ahora, me podrias decir donde se definen WS_BORDER, SS_BALCKRECT, SS_GRAYRECY y SS_WHITERECT.\n\nUn saludo\n\nCarlos", "time": "16:09", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nWS_BORDER, SS_BLACKRECT y SS_WHITERECT estan en winapi.ch de FWH\n\nAqui está el que falta:\n\n#define SS_GRAYRECT 5", "time": "17:28", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-06-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nEso si lo he encontrado y he visto que cada uno tiene un numero y ese numero le indica lo que tiene que hacer por así decirlo, es donde se declara ese numero lo desearía saber.\n\nUn saludo\n\nCarlos", "time": "18:46", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nSon valores definidos por Windows (aparecen en los ficheros de cabecera de Windows).\n\nLo más sencillo es añadirlo a FWH\\source\\classes\\say.prg", "time": "09:47", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nSi eso es lo que estoy haciendo ponerlo en el SAY.PRG y probar. Por eso de mi pregunta de donde puedo ver todas esas posibilidades y si existe una que sea SHADOW.\n\nCuales son los Ficheros de Cabecera de Windows.\n\nUn saludo\n\nCarlos", "time": "10:15", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2015-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Todos los estilos los puedes encontrar en c:\\bcc582\\include\\winuser.h", "time": "10:17", "topic": "Clausulas del SAY", "username": "Antonio Linares" } ]
Clausulas del SAY
[ { "date": "2015-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nHe mirado el winuser y he encontrado:\n\n/* 3D border styles */\n#define BDR_RAISEDOUTER 0x0001\n#define BDR_SUNKENOUTER 0x0002\n#define BDR_RAISEDINNER 0x0004\n#define BDR_SUNKENINNER 0x0008\n\nLo he puesto en el say.prg en las primeras líneas después de los #define que hay.\n\nDespués como me indicaste en el Style\n\n[code=fw:2wypywz7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />::<span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;= nOR<span style=\"color: #000000;\">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign, nOr<span style=\"color: #000000;\">&#40;</span> WS_CLIPSIBLINGS, WS_TABSTOP <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lCentered, SS_CENTER, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRight, SS_RIGHT, SS_LEFT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBorder, BDR_RAISEDOUTER , <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lShaded, SS_BLACKRECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lBox, &nbsp; &nbsp;SS_GRAYRECT, &nbsp;<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lRaised, SS_WHITERECT, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2wypywz7]\n\nPero no hace nada. ¿Hay que hacer algo más?\n\nUn saludo\n\nCarlos", "time": "12:51", "topic": "Clausulas del SAY", "username": "colthop" } ]
Clausulas del SAY
[ { "date": "2011-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola buenos dias a todos,alguien sabe o darme una idea, de como crear una rutina para al momento de estar indexando los registros, que en mi rutina,me marque error de mensaje que tengo llaves duplicadas o registro duplicado ? un ejemplo como ese en la cabecera CVECODIGO...:\n\nCVECODIGO\n-----------\n0101\n0102\n0103\n0104\n0105\n0105 **Aqui es donde me genera la duplicidad de la la misma clave, eso es debido a la caida de red o corte de energia electrica y mientras otro usuario, abrio el folio consecutivo...\n0106\n0107\n0108\n\nGracias espero haberme explicado y sobre todo desde que punto de partida, generaria mi funcion de rutina antes mencionado.\n\nSaludos y buen dia a todos.\n\nWilliam,que se recupere pronto tu hijo, es un alivio que ya paso lo peor, es cuestion de recuperacion, que Dios los bendiga Willi.\n\nAtte: Adriano C. C.\n<!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->", "time": "18:38", "topic": "Claves duplicadas al indexar ....", "username": "ACC69" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\n\nComo le propones el número al usuario?\n\nYo lo hago de la siguiente manera..\n\n1. tengo en una base los correlativos [b:2fmw7xwo]parame[/b:2fmw7xwo]\n2- Le propongo un numero, pero no es el definitivo\n3.- Al grabar verifico que no exista el numero en la base\n4.-grabo y luego le envio el numero al usuario, luego actualizo el numero en parame\n\n[code=fw:2fmw7xwo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr <span style=\"color: #0000ff;\">INTERVAL</span> <span style=\"color: #000000;\">5000</span> <span style=\"color: #0000ff;\">ACTION</span> ;<br />                    <span style=\"color: #000000;\">&#40;</span> Parame-><span style=\"color: #000000;\">&#40;</span> dbSkip<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      _numdocu := Parame->GDes<span style=\"color: #000000;\">+1</span>,;<br />                      aGet<span style=\"color: #000000;\">&#91;</span>id_numdocu,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr<br />    Eval<span style=\"color: #000000;\">&#40;</span> oTmr:<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2fmw7xwo]\n\nen grabar\n[code=fw:2fmw7xwo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">if</span> !parame-><span style=\"color: #000000;\">&#40;</span> NetRLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />Eval<span style=\"color: #000000;\">&#40;</span> oTmr:<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span><br />oTmr:<span style=\"color: #000000;\">DeActivate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />nDocu := _numdocu<br /><br /><span style=\"color: #00C800;\">if</span> Docu_BF-><span style=\"color: #000000;\">&#40;</span> dbSeek<span style=\"color: #000000;\">&#40;</span> upper<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>_tipdocu,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + str<span style=\"color: #000000;\">&#40;</span> nDocu,<span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    nOldFactu := nDocu<br />    <span style=\"color: #00C800;\">while</span> Docu_BF-><span style=\"color: #000000;\">&#40;</span> dbSeek<span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>_tipdocu,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + Str<span style=\"color: #000000;\">&#40;</span>++nDocu, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">enddo</span><br />    <span style=\"color: #00C800;\">if</span> Valtype<span style=\"color: #000000;\">&#40;</span> oTmr <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"O\"</span><br />        <span style=\"color: #00C800;\">if</span> !MsgNoYes<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"La \"</span>+_tipdocu +<span style=\"color: #ff0000;\">\" nº \"</span>+ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nOldFactu<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" ya existe, desea reemplazarla\"</span>+CRLF+;<br />                        <span style=\"color: #ff0000;\">\"por esta nueva \"</span>+_tipdocu + <span style=\"color: #ff0000;\">\" nº \"</span>+ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nDocu<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />            dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            aGet<span style=\"color: #000000;\">&#91;</span>id_numdocu<span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> Valtype<span style=\"color: #000000;\">&#40;</span> oTmr <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"O\"</span><br />                oTmr:<span style=\"color: #0000ff;\">Activate</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;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">endif</span><br />    <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />..<br />..<br />aqui se graba todo la info<br /><br />parame->Num... := nDocu<br /><br />dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:2fmw7xwo]", "time": "20:31", "topic": "Claves duplicadas al indexar ....", "username": "Patricio Avalos Aguirre" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Patricio Avalos Aguirre\":3clh1beh]Hola\n\nComo le propones el número al usuario?\n\nYo lo hago de la siguiente manera..\n\n1. tengo en una base los correlativos [b:3clh1beh]parame[/b:3clh1beh]\n2- Le propongo un numero, pero no es el definitivo\n3.- Al grabar verifico que no exista el numero en la base\n4.-grabo y luego le envio el numero al usuario, luego actualizo el numero en parame\n\n[code=fw:3clh1beh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr <span style=\"color: #0000ff;\">INTERVAL</span> <span style=\"color: #000000;\">5000</span> <span style=\"color: #0000ff;\">ACTION</span> ;<br />                    <span style=\"color: #000000;\">&#40;</span> Parame-><span style=\"color: #000000;\">&#40;</span> dbSkip<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                      _numdocu := Parame->GDes<span style=\"color: #000000;\">+1</span>,;<br />                      aGet<span style=\"color: #000000;\">&#91;</span>id_numdocu,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr<br />    Eval<span style=\"color: #000000;\">&#40;</span> oTmr:<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3clh1beh]\n\nen grabar\n[code=fw:3clh1beh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">if</span> !parame-><span style=\"color: #000000;\">&#40;</span> NetRLock<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />Eval<span style=\"color: #000000;\">&#40;</span> oTmr:<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">&#41;</span><br />oTmr:<span style=\"color: #000000;\">DeActivate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />nDocu := _numdocu<br /><br /><span style=\"color: #00C800;\">if</span> Docu_BF-><span style=\"color: #000000;\">&#40;</span> dbSeek<span style=\"color: #000000;\">&#40;</span> upper<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>_tipdocu,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + str<span style=\"color: #000000;\">&#40;</span> nDocu,<span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    nOldFactu := nDocu<br />    <span style=\"color: #00C800;\">while</span> Docu_BF-><span style=\"color: #000000;\">&#40;</span> dbSeek<span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>_tipdocu,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + Str<span style=\"color: #000000;\">&#40;</span>++nDocu, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">enddo</span><br />    <span style=\"color: #00C800;\">if</span> Valtype<span style=\"color: #000000;\">&#40;</span> oTmr <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"O\"</span><br />        <span style=\"color: #00C800;\">if</span> !MsgNoYes<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"La \"</span>+_tipdocu +<span style=\"color: #ff0000;\">\" nº \"</span>+ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nOldFactu<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" ya existe, desea reemplazarla\"</span>+CRLF+;<br />                        <span style=\"color: #ff0000;\">\"por esta nueva \"</span>+_tipdocu + <span style=\"color: #ff0000;\">\" nº \"</span>+ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nDocu<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />            dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            aGet<span style=\"color: #000000;\">&#91;</span>id_numdocu<span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> Valtype<span style=\"color: #000000;\">&#40;</span> oTmr <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"O\"</span><br />                oTmr:<span style=\"color: #0000ff;\">Activate</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;\">return</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">endif</span><br />    <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />..<br />..<br />aqui se graba todo la info<br /><br />parame->Num... := nDocu<br /><br />dbUnlockAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:3clh1beh][/quote:3clh1beh]\n\nHola Patricio, gracias por responder, mas o menos asi lo hago,pero...sin el timer, ya que cada registro, se va grabando pero antes esta una rutina, de por ejemplo ocupado(), pero creo que al parecer, es el indice que se corrompio, al momento de la caida de energia electrica, del primer usuario, que al segundo usuario, reconocio como consecutivo del ultimo folio, es por eso que estoy viendo la manera de saber o crear una rutina, al momento de generar mi indice, me marque error, que existe una clave duplicada, pero no tengo ni idea, si alguien ya tiene implementado algo parecido, se los agradecere mucho. \n\nGracias y saludos", "time": "20:59", "topic": "Claves duplicadas al indexar ....", "username": "ACC69" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Adriano:\n\nYo tengo unas rutinas que las llamo: [b:1nb6siqj]Control de Integridad[/b:1nb6siqj]\n [b:1nb6siqj] VerificaDuplicados()\n VerificaCabecerasDinDetalle()\n VerificaDetallesSinCabecera()\n VerificaCamposNulos()\n[/b:1nb6siqj]\n\nAhí hago la revisión y emito un informe.\n\nSin embargo no son automáticas, tiene que hacerlo el usuario.\n\nAhora, tb, estoy trabajando sobre un proceso automático de mantenimiento, es decir que cada cierto tiempo se ejecute un proceso de mantenimiento al iniciar el programa :\nRecrearIndices()\nReprocesarSaldos()\n\nAcá también se podría incluir la rutina de revisión de duplicados\n\nOtra tarea también seria el de ejecutar la rutina de mantenimiento cuando ocurra situaciones extrañas: Crash, etc., en entornos multiusuario.\n\nAtentamente,\n\nRolando.\nSaludos desde Cochabamba, Bolivia", "time": "16:42", "topic": "Claves duplicadas al indexar ....", "username": "RSalazarU" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"RSalazarU\":mhscckp0]Adriano:\n\nYo tengo unas rutinas que las llamo: [b:mhscckp0]Control de Integridad[/b:mhscckp0]\n [b:mhscckp0] VerificaDuplicados()\n VerificaCabecerasDinDetalle()\n VerificaDetallesSinCabecera()\n VerificaCamposNulos()\n[/b:mhscckp0]\n\nAhí hago la revisión y emito un informe.\n\nSin embargo no son automáticas, tiene que hacerlo el usuario.\n\nAhora, tb, estoy trabajando sobre un proceso automático de mantenimiento, es decir que cada cierto tiempo se ejecute un proceso de mantenimiento al iniciar el programa :\nRecrearIndices()\nReprocesarSaldos()\n\nAcá también se podría incluir la rutina de revisión de duplicados\n\nOtra tarea también seria el de ejecutar la rutina de mantenimiento cuando ocurra situaciones extrañas: Crash, etc., en entornos multiusuario.\n\nAtentamente,\n\nRolando.\nSaludos desde Cochabamba, Bolivia[/quote:mhscckp0]\n\nHola Rolando gracias por contestar, el chiste es al momento de estar indexando se muestre un mensaje de error : \"Codigo duplicado o ID duplicado, como se entienda...aunque no siempre se estara indexando, es de vez en cuando,dependiendo del usuario, que quiera reindexar sus archivos en forma semanal,mensual, etc etc , pero que se muestre que exista claves duplicadas, ese es el chiste,imaginate sino sabemos que dentro de la base de datos esten duplicados,todo por la caida de energia electrica o red ,que se yo,yo tengo esa funcion asi ....\n\n[code=fw:mhscckp0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">MsgMeter<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#123;</span>|oMeter,oText,oDlg,lEnd | BuildIndex<span style=\"color: #000000;\">&#40;</span>oMeter,oText,oDlg,@lEnd ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dbf05,<span style=\"color: #ff0000;\">\"S05\"</span>,<span style=\"color: #ff0000;\">\"STR(CVEIVA,1)\"</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; &nbsp; Dbf05,.F.,.F.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</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; &nbsp; <span style=\"color: #ff0000;\">\"Generando indice ...\"</span>+Dbf05,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Espera por favor...\"</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:mhscckp0]\nY aqui la rutina...\n\n[code=fw:mhscckp0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> BuildIndex<span style=\"color: #000000;\">&#40;</span>oMeter, oText, oDlg, lEnd, cDbf, cAlias, cCpo, cInd, lExclus, lRut<span style=\"color: #000000;\">&#41;</span><br />&nbsp;<span style=\"color: #00C800;\">LOCAL</span> DirEmp:= <span style=\"color: #ff0000;\">\"EMP\"</span>+TSTR<span style=\"color: #000000;\">&#40;</span>nNUMEMP<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span><br /><br />&nbsp;CursorWait()<br /><br />&nbsp;IF lRut<br />&nbsp; &nbsp; &nbsp;cDbf := DirEmp+cDbf<br />&nbsp; &nbsp; &nbsp;cInd := cInd<br />&nbsp;ENDIF<br /><br />&nbsp;IF lExclus<br />&nbsp; &nbsp; &nbsp;Use &(cDbf) Alias &(cAlias) Exclusive<br />&nbsp; &nbsp; &nbsp;Pack<br />&nbsp;ELSE<br />&nbsp; &nbsp; &nbsp;Use &(cDbf) Alias &(cAlias)<br />&nbsp;ENDIF<br /><br />&nbsp;oMeter:nTotal := RecCount()<br /><br />&nbsp;INDEX ON &(cCpo) TAG &(cInd) FOR !DELETED() EVAL (oMeter:Set(RecNo()), SysRefresh(), !lEnd ) &nbsp; //....aqui es desde donde o como poner esa rutina de verificar claves duplicadas ...al momento de estar indexando la base de datos..espero que me entiendan, y ver desde donde poner la funcion,ando buscando y buscando y nada...pero en fin.<br /><br />&nbsp;(DbCloseArea(cDbf))<br />RETURN NIL</span></div>[/code:mhscckp0]\n\nAh y las ultimas 3 rutinas como es la funcion que hace Rolando....\n\nSaludos y buen dia Rolando.\n\nAtte: Adriano C. C.\n<!-- e --><a href=\"mailto:[email protected]\">[email protected]</a><!-- e -->", "time": "19:18", "topic": "Claves duplicadas al indexar ....", "username": "ACC69" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Adriano:\n\nRealmente es una gran idea, pero lo veo un poco difícil, se tendría que trabajar con el código HARBOUR de REINDEX/CREATE INDEX y añadir los parámetros que se pasara a EVAL <bBlock>.\n\nBueno acerca del proceso que te comente: [b:xjaxao1u]mantenimiento()[/b:xjaxao1u] este se lo debería ejecutar al iniciar el programa bajo los siguientes criterios.\n\n- Se debe indicar con alguna variable de configuración del sistema que se puede hacer mantenimiento en esta terminal\n- Se debe indicar cada cuanto se va a realizar el reindexado de la Base de Datos completa.\n En este punto, yo tengo una función que realiza el reindexado de [b:xjaxao1u]TODAS la tablas obligadamente[/b:xjaxao1u]\n- Se debe indicar cada cuanto se va a realizar el Reproceso de Saldos.\n En algunos de mis sistemas: Almacenes, Ventas, tengo una tabla que maneja los saldos mensuales, \n este se actualiza automáticamente, pero puede suceder que por alguna razón no este con la información correcta, \n por lo que el reproceso coloca los saldos correctos nuevamente.\n También, se debe indicar cada cuanto se realiza el reproceso: diario, semanal o mensual.\n\nHasta acá lo llevo implementado actualmente\n\nLa parte de Control de integridad también se la debería hacer en este punto:\n- Verificar si existe duplicados (tu problema)\n- Verificar si hay datos nulos (registros sin ID)\n- Verificar maestro/detalle (cabeceras sin detalle y detalles sin cabecera)\n- Informar de esto en un reporte\n\nEs bastante trabajo, que se lo tiene que hacer poco a poco, es decir ir incorporando estas propiedades a los programas en cada nueva versión.\n\nAtentamente,\n\nRolando.\nSaludos desde Cochabamba, Bolivia", "time": "23:15", "topic": "Claves duplicadas al indexar ....", "username": "RSalazarU" } ]
Claves duplicadas al indexar ....
[ { "date": "2011-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Adriano\nEl problema que tienes no es tu rutina de index. El problema se te origina, estoy casi seguro, porque tu rutina de ingreso de datos no verifica la existencia previa de la clave. Verifica eso reviamente antes de intentar corregir el eval cuando generas el indice. En el clipper habia la posibilidad de generar indices unicos pero en Harbour no hay esa posibiidad asi que la unicidad la debes asegurar en tu codigo.\nSaludos\nArmando", "time": "23:21", "topic": "Claves duplicadas al indexar ....", "username": "Armando Picon" } ]
Claves duplicadas al indexar ....