topic
stringlengths
1
63
text
stringlengths
1
577k
tsBrowse y Harbour
Los fuentes también los tengo. El problemas es que no puedo compilarlos con las últimas versiones de Harbour.
tsBrowse y Harbour
Fijate este hilo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22711&p=121321&hilit=parni#p121321">viewtopic.php?f=6&t=22711&p=121321&hilit=parni#p121321</a><!-- l -->
tsBrowse y Harbour
Fernando intenta con esta [url:1ta1dwj8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=26573&p=147408&hilit=tsbrowse#p147249[/url:1ta1dwj8] Saludos, Adhemar
tsBrowse y Harbour
Adhemar, gracias por la ayuda. La librería que hay ahí esta en compilada con xharbour y por lo tanto no me vale. Horacio, gracias por contestar. Gracias a ese hilo y una serie de cambios/ajustes que he realizado en TsbFuncs.c he conseguio compilarla con la versión "harbour_bcc582_20130228" de Fivewin. Por si a alguien le vuelve a pasar o le esta pasando, incluyo TsbFuncs.c tal y como la tengo [code=fw:26znlwtc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/***************************************************************<br /><br />This file contains the special painting routines used by TSBrowse Class<br />Last update: November 30th, 2009<br /><br />***************************************************************/</span><br /><br /><span style="color: #00D7D7;">#include</span> <hbApi.h>    <span style="color: #B900B9;">/* set your own path if needed */</span><br /><span style="color: #B900B9;">//#include <WinTen.h>   /* set your own path if needed */</span><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br /><span style="color: #B900B9;">//#include <ClipApi.h>  /* set your own path if needed */</span><br /><span style="color: #B900B9;">//#include <shellapi.h></span><br /><span style="color: #B900B9;">//#include <StdLib.h></span><br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br />void WndBoxDraw<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN, int, BOOL <span style="color: #000000;">&#41;</span> ;<br />void cDrawCursor<span style="color: #000000;">&#40;</span> HWND, LPRECT, long, COLORREF <span style="color: #000000;">&#41;</span> ;<br />void DrawCheck<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, int, BOOL <span style="color: #000000;">&#41;</span> ;<br />DWORD GetTextExtent<span style="color: #000000;">&#40;</span> HDC, LPCSTR, int <span style="color: #000000;">&#41;</span> ;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth, WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span> ;<br />extern void DrawMasked<span style="color: #000000;">&#40;</span> HDC hdc, HBITMAP hbm, WORD y, WORD x <span style="color: #000000;">&#41;</span> ;<br />extern void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTransparent, COLORREF cBackground <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #00C800;">static</span> void GoToPoint<span style="color: #000000;">&#40;</span> HDC, int, int <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #00C800;">static</span> void DegradColor<span style="color: #000000;">&#40;</span> HDC, RECT *, COLORREF, signed long <span style="color: #000000;">&#41;</span> ;<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />CLIPPER TSDrawCell<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, nRow, nColumn , nWidth ,</span><br />                             <span style="color: #B900B9;">//   uData, nAlign , nClrFore, nClrBack ,</span><br />                             <span style="color: #B900B9;">//   hFont, nBitmap, nHeightCell,</span><br />                             <span style="color: #B900B9;">//   b3DLook, nLineStyle, nClrLine, nHeadFoot,</span><br />                             <span style="color: #B900B9;">//   nHeightHead, nHeightFoot, hHeightSuper,</span><br />                             <span style="color: #B900B9;">//   lAdjBmpl, lMultiLine, nVAlign, nVertText,</span><br />                             <span style="color: #B900B9;">//   nClrTo, lDegrad, hBrush )</span><br />#else<br />HARBOUR HB_FUN_TSDRAWCELL<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   HDC  hDC         = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int  nRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   int  nColumn     = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   int  nWidth      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br />   LPSTR cData      = <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>  ;<br />   int  nLen        = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br />   DWORD nAlign     = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> ;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ;<br />   HBITMAP hBitMap  = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightCell  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL b3DLook     = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span> ;<br />   int nLineStyle   = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF clrLine = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeadFoot    = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightHead  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightFoot  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightSuper = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bAdjBmp     = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bMultiLine  = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ;<br />   int nVAlign      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ;<br />   int nVertText    = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">23</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF clrTo   = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">24</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bOpaque     = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span> ;<br />   HBRUSH wBrush    = <span style="color: #000000;">&#40;</span>HBRUSH<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL b3DInv      = <span style="color: #000000;">&#40;</span> HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">27</span> <span style="color: #000000;">&#41;</span> ? ! hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">27</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL b3D         = <span style="color: #000000;">&#40;</span> HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">27</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF nClr3DL = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">28</span> <span style="color: #000000;">&#41;</span> ;<br />   COLORREF nClr3DS = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span> ;<br />   long lCursor     = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   int ixLayOut     = HIWORD<span style="color: #000000;">&#40;</span> nAlign <span style="color: #000000;">&#41;</span> ;<br />   int iAlign       = LOWORD<span style="color: #000000;">&#40;</span> nAlign <span style="color: #000000;">&#41;</span> ;<br />   int iTxtW        = LOWORD<span style="color: #000000;">&#40;</span> GetTextExtent<span style="color: #000000;">&#40;</span> hDC, cData, nLen <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bGrid       = <span style="color: #000000;">&#40;</span> nLineStyle > <span style="color: #000000;">0</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bHeader     = <span style="color: #000000;">&#40;</span> nHeadFoot == <span style="color: #000000;">1</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bFooter     = <span style="color: #000000;">&#40;</span> nHeadFoot == <span style="color: #000000;">2</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bSuper      = <span style="color: #000000;">&#40;</span> nHeadFoot == <span style="color: #000000;">3</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bChecked    = <span style="color: #000000;">&#40;</span> nVertText == <span style="color: #000000;">3</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bBrush      = <span style="color: #000000;">&#40;</span> wBrush ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />   BOOL bDegrad     = <span style="color: #000000;">&#40;</span> bBrush || clrTo == clrBack ? <span style="color: #00C800;">FALSE</span> : <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span> ;<br />   HFONT hOldFont ;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span> ;<br />   HPEN hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, clrLine <span style="color: #000000;">&#41;</span>;<br />   HPEN hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   RECT rct ;<br />   BITMAP bm ;<br />   int nTop, nLeft, nBkOld, iFlags ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span> ;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span> ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br />   SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span> ;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />      rct.top = <span style="color: #000000;">&#40;</span> bHeader ? nHeightSuper - <span style="color: #000000;">&#40;</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #00C800;">else</span><br />      rct.top = <span style="color: #000000;">&#40;</span> bFooter ? rct.bottom - nHeightFoot + <span style="color: #000000;">1</span> : <span style="color: #000000;">nHeightHead</span> + nHeightSuper - <span style="color: #000000;">&#40;</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                  <span style="color: #000000;">&#40;</span> nHeightCell * <span style="color: #000000;">&#40;</span> nRow - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.bottom = rct.top + <span style="color: #000000;">&#40;</span> bHeader ? nHeightHead :<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSuper ? nHeightSuper : <span style="color: #000000;">nHeightCell</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #B900B9;">/* Don't let left side go beyond rct.right of Client Rect. */</span><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nColumn - <span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> <span style="color: #000000;">&#41;</span> <= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct.<span style="color: #0000ff;">left</span> = nColumn ;<br /><br />        <span style="color: #B900B9;">/* if nWidth == -1 or -2, it indicates the last column so go to limit,<br />         Don't let right side go beyond rct.right of Client Rect. */</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWidth >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>rct.<span style="color: #0000ff;">left</span> + nWidth - rct.<span style="color: #0000ff;">right</span><span style="color: #000000;">&#41;</span> <= <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// negative values have different meanings</span><br />         rct.<span style="color: #0000ff;">right</span> = rct.<span style="color: #0000ff;">left</span> + nWidth ;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bDegrad <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.bottom += <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">0</span> : <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         rct.<span style="color: #0000ff;">right</span> += <span style="color: #000000;">1</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bBrush <span style="color: #000000;">&#41;</span><br />            ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED, &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>  <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">else</span><br />            FillRect<span style="color: #000000;">&#40;</span> hDC, &rct, wBrush <span style="color: #000000;">&#41;</span> ;<br /><br />         rct.bottom -= <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">0</span> : <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">1</span> ;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         DegradColor<span style="color: #000000;">&#40;</span> hDC, &rct, clrBack, clrTo  <span style="color: #000000;">&#41;</span> ;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hBitMap <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bAdjBmp <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />             GetObject<span style="color: #000000;">&#40;</span> hBitMap, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span> ;<br />             nTop = rct.top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> bm.bmHeight / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br /><br />             <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> ixLayOut <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// bitmap layout x coordinate</span><br />             <span style="color: #000000;">&#123;</span><br />               <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>: <span style="color: #B900B9;">// column left</span><br />                  nLeft = rct.<span style="color: #0000ff;">left</span> ;<br />                  <span style="color: #00C800;">break</span> ;<br />               <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>: <span style="color: #B900B9;">// column center (text -if any- may overwrite the bitmap)</span><br />                  nLeft = rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />                          <span style="color: #000000;">&#40;</span> bm.bmWidth / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />                  <span style="color: #00C800;">break</span> ;<br />               <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>: <span style="color: #B900B9;">// column right</span><br />                  nLeft = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">&#40;</span> bm.bmWidth + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">break</span> ;<br />               <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>: <span style="color: #B900B9;">// left of centered text</span><br />                  nLeft = <span style="color: #0000ff;">max</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>, rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />                          <span style="color: #000000;">&#40;</span> iTxtW / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - bm.bmWidth - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">break</span> ;<br />               <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>: <span style="color: #B900B9;">// right of centered text</span><br />                  nLeft = rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> iTxtW / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">2</span> ;<br />                  <span style="color: #00C800;">break</span> ;<br />               <span style="color: #00C800;">default</span>: <span style="color: #B900B9;">// a value > 4 means specific pixel location from column left</span><br />                  nLeft = rct.<span style="color: #0000ff;">left</span> + ixLayOut ;<br />                  <span style="color: #00C800;">break</span> ;<br />             <span style="color: #000000;">&#125;</span><br />         <span style="color: #000000;">&#125;</span><br />         <span style="color: #00C800;">else</span><br />         <span style="color: #000000;">&#123;</span><br />            nTop  = rct.top ;<br />            nLeft = rct.<span style="color: #0000ff;">left</span> ;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> b3DLook <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bAdjBmp <span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />               nTop  = rct.top + <span style="color: #000000;">1</span> ;<br />               DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitMap,  nTop, rct.<span style="color: #0000ff;">left</span> - <span style="color: #000000;">1</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">1</span>,<br />                           rct.bottom - rct.top - <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />               hBitMap = <span style="color: #000000;">0</span> ;<br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bOpaque <span style="color: #000000;">&#41;</span><br />                  MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetPixel<span style="color: #000000;">&#40;</span> hDC, nLeft, nTop <span style="color: #000000;">&#41;</span>, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #000000;">&#125;</span><br />            <span style="color: #00C800;">else</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bOpaque <span style="color: #000000;">&#41;</span><br />                  DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitMap, nTop, nLeft, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #00C800;">else</span><br />                  DrawMasked<span style="color: #000000;">&#40;</span> hDC, hBitMap, nTop, nLeft <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #000000;">&#125;</span><br />         <span style="color: #00C800;">else</span><br />         <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bAdjBmp<span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />               DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitMap,  rct.top, rct.<span style="color: #0000ff;">left</span> - <span style="color: #000000;">2</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">3</span>,<br />                           rct.bottom - rct.top - <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />               hBitMap = <span style="color: #000000;">0</span> ;<br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bOpaque <span style="color: #000000;">&#41;</span><br />                  MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetPixel<span style="color: #000000;">&#40;</span> hDC, nLeft, nTop <span style="color: #000000;">&#41;</span>, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #000000;">&#125;</span><br />            <span style="color: #00C800;">else</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bOpaque <span style="color: #000000;">&#41;</span><br />                  DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBitMap, nTop, nLeft, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #00C800;">else</span><br />                  DrawMasked<span style="color: #000000;">&#40;</span> hDC, hBitMap, nTop, nLeft <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #000000;">&#125;</span><br />      <span style="color: #000000;">&#125;</span><br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nLen <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iAlign == DT_LEFT <span style="color: #000000;">&#41;</span><br />            rct.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> hBitMap && ixLayOut == <span style="color: #000000;">0</span> ? bm.bmWidth + <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iAlign == DT_RIGHT <span style="color: #000000;">&#41;</span><br />            rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> hBitMap && ixLayOut == <span style="color: #000000;">2</span> ? bm.bmWidth + <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nVertText == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            rct.<span style="color: #0000ff;">right</span>  += <span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> * nLen <span style="color: #000000;">&#41;</span> ;<br />            rct.bottom += <span style="color: #000000;">10</span> ;<br />         <span style="color: #000000;">&#125;</span><br /><br />         iFlags = iAlign | DT_NOPREFIX | nVAlign * <span style="color: #000000;">4</span> | <span style="color: #000000;">&#40;</span> bMultiLine && nVAlign < <span style="color: #000000;">2</span> ? <span style="color: #000000;">0</span> : <span style="color: #000000;">DT_SINGLELINE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nVertText == <span style="color: #000000;">3</span> || nVertText == <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            DrawCheck<span style="color: #000000;">&#40;</span> hDC, &rct, hWhitePen, iAlign, bChecked <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">else</span><br />         <span style="color: #000000;">&#123;</span><br />            nBkOld = SetBkMode<span style="color: #000000;">&#40;</span> hDC, TRANSPARENT <span style="color: #000000;">&#41;</span> ;<br /><br />            <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> b3D <span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />               rct.top    -= <span style="color: #000000;">1</span> ;<br />               rct.<span style="color: #0000ff;">left</span>   -= <span style="color: #000000;">1</span> ;<br />               rct.bottom -= <span style="color: #000000;">1</span> ;<br />               rct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />               SetTextColor<span style="color: #000000;">&#40;</span> hDC, b3DInv ? nClr3DS : <span style="color: #000000;">nClr3DL</span> <span style="color: #000000;">&#41;</span> ;<br />               DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> ;<br /><br />               rct.top    += <span style="color: #000000;">2</span> ;<br />               rct.<span style="color: #0000ff;">left</span>   += <span style="color: #000000;">2</span> ;<br />               rct.bottom += <span style="color: #000000;">2</span> ;<br />               rct.<span style="color: #0000ff;">right</span>  += <span style="color: #000000;">2</span> ;<br />               SetTextColor<span style="color: #000000;">&#40;</span> hDC, b3DInv ? nClr3DL : <span style="color: #000000;">nClr3DS</span> <span style="color: #000000;">&#41;</span> ;<br />               DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> ;<br /><br />               rct.top    -= <span style="color: #000000;">1</span> ;<br />               rct.<span style="color: #0000ff;">left</span>   -= <span style="color: #000000;">1</span> ;<br />               rct.bottom -= <span style="color: #000000;">1</span> ;<br />               rct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />               SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #000000;">&#125;</span><br /><br />            DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> ;<br />            SetBkMode<span style="color: #000000;">&#40;</span> hDC, nBkOld <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iAlign == DT_LEFT <span style="color: #000000;">&#41;</span><br />            rct.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> hBitMap && ixLayOut == <span style="color: #000000;">0</span> ? bm.bmWidth + <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iAlign == DT_RIGHT <span style="color: #000000;">&#41;</span><br />            rct.<span style="color: #0000ff;">right</span> += <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> hBitMap && ixLayOut == <span style="color: #000000;">2</span> ? bm.bmWidth + <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nVertText == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> * nLen <span style="color: #000000;">&#41;</span> ;<br />            rct.bottom -= <span style="color: #000000;">10</span> ;<br />         <span style="color: #000000;">&#125;</span><br />      <span style="color: #000000;">&#125;</span><br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> b3DLook <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bHeader = <span style="color: #000000;">&#40;</span> bSuper ? bSuper : <span style="color: #000000;">bHeader</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWidth != <span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span> && bGrid <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// -1 draw gridline in phantom column; -2 don't draw gridline in phantom column</span><br />            WndBoxDraw<span style="color: #000000;">&#40;</span> hDC, &rct, hWhitePen, hGrayPen, b3DLook ? <span style="color: #000000;">4</span> : <span style="color: #000000;">nLineStyle</span>, bHeader <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lCursor <span style="color: #000000;">&#41;</span><br />            cDrawCursor<span style="color: #000000;">&#40;</span> hWnd, &rct, lCursor, clrFore <span style="color: #000000;">&#41;</span> ;<br /><br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />         bHeader = <span style="color: #000000;">&#40;</span> bFooter ? bFooter : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader || bSuper <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWidth != <span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span> && bGrid <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// -1 draw gridline in phantom column; -2 don't draw gridline in phantom column</span><br />               WndBoxDraw<span style="color: #000000;">&#40;</span> hDC, &rct, hGrayPen, hGrayPen, nLineStyle, bHeader <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lCursor <span style="color: #000000;">&#41;</span><br />            cDrawCursor<span style="color: #000000;">&#40;</span> hWnd, &rct, lCursor, clrFore <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #000000;">&#125;</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</span><br /><br />void WndBoxDraw<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, HPEN hPUpLeft, HPEN hPBotRit, int nLineStyle, \<br />                 BOOL bHeader <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HPEN hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPUpLeft <span style="color: #000000;">&#41;</span> ;<br />   HPEN hBlack   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nLineStyle <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span> :<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span> :<br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hPBotRit <span style="color: #000000;">&#41;</span> ;<br />         GoToPoint<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->bottom - <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom - <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bHeader <span style="color: #000000;">&#41;</span><br />            LineTo<span style="color: #000000;">&#40;</span> hDC, rct->left - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span> :<br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hPBotRit <span style="color: #000000;">&#41;</span> ;<br />         GoToPoint<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span> :<br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hPBotRit <span style="color: #000000;">&#41;</span> ;<br />         GoToPoint<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->bottom <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right, rct->bottom <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span> :<br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hPUpLeft <span style="color: #000000;">&#41;</span> ;<br />         GoToPoint<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->bottom <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right , rct->top <span style="color: #000000;">&#41;</span> ;<br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hPBotRit <span style="color: #000000;">&#41;</span> ;<br />         GoToPoint<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->bottom - <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom - <span style="color: #000000;">&#40;</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />         LineTo<span style="color: #000000;">&#40;</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">5</span> :<br />         rct->top += <span style="color: #000000;">1</span> ;<br />         rct->left += <span style="color: #000000;">1</span> ;<br />         rct->bottom -= <span style="color: #000000;">1</span> ;<br />         rct->right -= <span style="color: #000000;">1</span> ;<br />         DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #00C800;">break</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hBlack <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER TSBrwScrol<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// l( hWnd, nDir, hFont, nHeightCell, nHeightHead,</span><br />                                 <span style="color: #B900B9;">//    nHeightFoot, nHeightSuper )</span><br />#else<br />   HARBOUR HB_FUN_TSBRWSCROLL<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int iRows        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightCell  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightHead  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightFoot  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br />   int nHeightSuper = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   HFONT hOldFont ;<br />   HDC hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br />   RECT rct;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span> ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.top    += <span style="color: #000000;">&#40;</span> nHeightHead + nHeightSuper - <span style="color: #000000;">&#40;</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;  <span style="color: #B900B9;">// exclude heading from scrolling</span><br />   rct.bottom -= nHeightFoot ;                     <span style="color: #B900B9;">// exclude footing from scrolling</span><br />   rct.bottom -= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> % nHeightCell <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">// exclude unused portion at bottom</span><br />   ScrollWindowEx<span style="color: #000000;">&#40;</span> hWnd, <span style="color: #000000;">0</span>, <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> -<span style="color: #000000;">&#40;</span> nHeightCell * iRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER TSBrwHScro<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// ll( hWnd, nCols, nLeft, nRight )</span><br />#else<br />   HARBOUR HB_FUN_TSBRWHSCROLL<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd  = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   WORD wCols = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int nLeft  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   int nRight = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   HDC hDC    = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br />   RECT rct;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nLeft <span style="color: #000000;">&#41;</span><br />      rct.<span style="color: #0000ff;">left</span> = nLeft ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nRight <span style="color: #000000;">&#41;</span><br />      rct.<span style="color: #0000ff;">right</span> = nRight ;<br /><br />   ScrollWindowEx<span style="color: #000000;">&#40;</span> hWnd, wCols, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER RowFromPix<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRowPix, nHeightCell, nHeightHead,</span><br />                                <span style="color: #B900B9;">//   nHeightFoot, nHeightSuper ) -> nTextRow</span><br />#else<br />   HARBOUR HB_FUN_ROWFROMPIX<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int iPixR = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int iCell = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   int iHead = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   int iFoot = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br />   int iSupH = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   RECT rct ;<br />   int iRow ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iPixR <= <span style="color: #000000;">&#40;</span> rct.top + iHead + iSupH <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      iRow = <span style="color: #000000;">0</span> ;<br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iPixR >= <span style="color: #000000;">&#40;</span> rct.bottom - iFoot <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         iRow = <span style="color: #000000;">-1</span> ;<br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.top += <span style="color: #000000;">&#40;</span> iHead + iSupH <span style="color: #000000;">&#41;</span> ;<br />         iRow = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> iPixR - rct.top <span style="color: #000000;">&#41;</span> / iCell <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> ;<br />      <span style="color: #000000;">&#125;</span><br /><br />   hb_retni<span style="color: #000000;">&#40;</span> iRow <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER SBGetHeigh<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// t( hWnd, hFont, nTotal )</span><br />#else<br />   HARBOUR HB_FUN_SBGETHEIGHT<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND  hWnd  = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int  iTotal = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>  ;<br /><br />   TEXTMETRIC tm ;<br /><br />   RECT  rct ;<br />   HDC   hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br />   HFONT hOldFont ;<br />   LONG  lTotHeight, lReturn ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> iTotal < <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />         hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span> ;<br />      GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />         SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span> ;<br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span> ;<br />      lReturn = <span style="color: #000000;">&#40;</span> iTotal == <span style="color: #000000;">1</span> ? tm.tmAveCharWidth : <span style="color: #000000;">tm</span>.tmHeight <span style="color: #000000;">&#41;</span> ;<br />      hb_retnl<span style="color: #000000;">&#40;</span> lReturn <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br />      lTotHeight = rct.bottom - rct.top + <span style="color: #000000;">1</span> ;<br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span> ;<br />      hb_retnl<span style="color: #000000;">&#40;</span> lTotHeight <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER CountRows<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// ( hWnd, nHeightCell, nHeightHead,</span><br />                                <span style="color: #B900B9;">//   nHeightFoot, nHeightSuper ) -> nRows</span><br />#else<br />   HARBOUR HB_FUN_COUNTROWS<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int iCell = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int iHead = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   int iFoot = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   int iSupH = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   RECT rct ;<br />   int iRows, iFree ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span> ;<br /><br />   iFree = rct.bottom - rct.top + <span style="color: #000000;">1</span> - iSupH - iHead - iFoot ;<br />   iRows = iFree / iCell ;<br /><br />   hb_retni<span style="color: #000000;">&#40;</span> iRows <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER SBmpHeight<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#else<br />   HARBOUR HB_FUN_SBMPHEIGHT<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HBITMAP hBmp  = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   BITMAP bm ;<br /><br />   GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span> ;<br /><br />   hb_retni<span style="color: #000000;">&#40;</span> bm.bmHeight <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER SBmpWidth<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#else<br />   HARBOUR HB_FUN_SBMPWIDTH<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HBITMAP hBmp  = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   BITMAP bm ;<br /><br />   GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span> ;<br /><br />   hb_retni<span style="color: #000000;">&#40;</span> bm.bmWidth <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />void DrawCheck<span style="color: #000000;">&#40;</span> HDC hDC, LPRECT rct, HPEN hWhitePen, int nAlign, BOOL bChecked <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   RECT lrct ;<br />   HPEN hOldPen ;<br />   HBRUSH hOldBrush ;<br /><br />   HBRUSH hGrayBrush  = CreateSolidBrush<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   HBRUSH hWhiteBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   HPEN hBlackPen     = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<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> <span style="color: #000000;">&#41;</span> ;<br />   HPEN hLGrayPen     = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   HPEN hGrayPen      = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   hOldBrush = SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayBrush <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.top = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nAlign <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />         lrct.<span style="color: #0000ff;">left</span> = rct->left ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />         lrct.<span style="color: #0000ff;">left</span> = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->right - rct->left + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">8</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />         lrct.<span style="color: #0000ff;">left</span> = rct->right - <span style="color: #000000;">16</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   lrct.bottom = lrct.top + <span style="color: #000000;">16</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  = lrct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">16</span> ;<br /><br />   lrct.<span style="color: #0000ff;">left</span>   -= <span style="color: #000000;">1</span> ;<br />   lrct.top    -= <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  += <span style="color: #000000;">1</span> ;<br />   lrct.bottom += <span style="color: #000000;">1</span> ;<br /><br />   hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBlackPen <span style="color: #000000;">&#41;</span> ;<br />   Rectangle<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.<span style="color: #0000ff;">left</span>   += <span style="color: #000000;">1</span> ;<br />   lrct.top    += <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />   lrct.bottom -= <span style="color: #000000;">1</span> ;<br /><br />   FillRect<span style="color: #000000;">&#40;</span> hDC, &lrct, hGrayBrush <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.top    += <span style="color: #000000;">2</span> ;<br />   lrct.<span style="color: #0000ff;">left</span>   += <span style="color: #000000;">2</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />   lrct.bottom -= <span style="color: #000000;">1</span> ;<br /><br />   FillRect<span style="color: #000000;">&#40;</span> hDC, &lrct, hWhiteBrush <span style="color: #000000;">&#41;</span> ;<br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldBrush <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayBrush <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhiteBrush <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />   lrct.bottom -= <span style="color: #000000;">1</span> ;<br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hGrayPen <span style="color: #000000;">&#41;</span> ;<br />   Rectangle<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.top    += <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">left</span>   += <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">1</span> ;<br />   lrct.bottom -= <span style="color: #000000;">1</span> ;<br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hBlackPen <span style="color: #000000;">&#41;</span> ;<br />   Rectangle<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.top  += <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">1</span> ;<br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hWhitePen <span style="color: #000000;">&#41;</span> ;<br />   Rectangle<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">&#41;</span> ;<br /><br />   lrct.top    += <span style="color: #000000;">1</span> ;<br />   lrct.<span style="color: #0000ff;">right</span>  -= <span style="color: #000000;">2</span> ;<br />   lrct.bottom -= <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bChecked <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      GoToPoint<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top <span style="color: #000000;">&#41;</span> ;<br /><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hBlackPen <span style="color: #000000;">&#41;</span> ;<br /><br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">4</span> , lrct.bottom - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">6</span>, lrct.bottom - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      GoToPoint<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> ;<br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">4</span> , lrct.bottom - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">6</span>, lrct.bottom - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      GoToPoint<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top + <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> ;<br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">4</span> , lrct.bottom - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />      LineTo<span style="color: #000000;">&#40;</span> hDC, lrct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">6</span>, lrct.bottom - <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hLGrayPen <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hBlackPen <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void GoToPoint<span style="color: #000000;">&#40;</span> HDC hDC, int ix, int iy <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   POINT <span style="color: #0000ff;">pt</span>;<br /><br />   #ifdef __FLAT__<br />      MoveToEx<span style="color: #000000;">&#40;</span> hDC, ix, iy, &pt <span style="color: #000000;">&#41;</span> ;<br />   #else<br />      MoveTo<span style="color: #000000;">&#40;</span> hDC, ix, iy <span style="color: #000000;">&#41;</span>;<br />   #endif<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void DegradColor<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rori, COLORREF cFrom, signed long cTo <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   float clr1r, clr1g, clr1b, clr2r, clr2g, clr2b ;<br />   float iEle, iRed, iGreen, iBlue ;<br />   BOOL bDir, bHoriz = cTo < <span style="color: #000000;">0</span> ;<br />   float iTot = <span style="color: #000000;">&#40;</span> ! bHoriz ? <span style="color: #000000;">&#40;</span> rori->bottom + <span style="color: #000000;">2</span> - rori->top <span style="color: #000000;">&#41;</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> rori->right + <span style="color: #000000;">2</span> - rori->left <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   RECT rct ;<br />   HBRUSH hOldBrush, hBrush ;<br /><br />   rct.top = rori->top ;<br />   rct.<span style="color: #0000ff;">left</span> = rori->left ;<br />   rct.bottom = rori->bottom ;<br />   rct.<span style="color: #0000ff;">right</span> = rori->right ;<br /><br />   clr1r = GetRValue<span style="color: #000000;">&#40;</span> cFrom <span style="color: #000000;">&#41;</span> ;<br />   clr1g = GetGValue<span style="color: #000000;">&#40;</span> cFrom <span style="color: #000000;">&#41;</span> ;<br />   clr1b = GetBValue<span style="color: #000000;">&#40;</span> cFrom <span style="color: #000000;">&#41;</span> ;<br /><br />   cTo   = <span style="color: #000000;">&#40;</span> cTo < <span style="color: #000000;">0</span> ? -cTo : <span style="color: #000000;">cTo</span> <span style="color: #000000;">&#41;</span> ;<br />   clr2r = GetRValue<span style="color: #000000;">&#40;</span> cTo <span style="color: #000000;">&#41;</span> ;<br />   clr2g = GetGValue<span style="color: #000000;">&#40;</span> cTo <span style="color: #000000;">&#41;</span> ;<br />   clr2b = GetBValue<span style="color: #000000;">&#40;</span> cTo <span style="color: #000000;">&#41;</span> ;<br /><br />   iRed   =  clr2r - clr1r ;<br />   iGreen =  clr2g - clr1g ;<br />   iBlue  =  clr2b - clr1b ;<br /><br />   iRed   = <span style="color: #000000;">&#40;</span> iRed / iTot <span style="color: #000000;">&#41;</span> ;<br />   iGreen = <span style="color: #000000;">&#40;</span> iGreen / iTot <span style="color: #000000;">&#41;</span> ;<br />   iBlue  = <span style="color: #000000;">&#40;</span> iBlue / iTot <span style="color: #000000;">&#41;</span> ;<br /><br />   iRed   = <span style="color: #000000;">&#40;</span> iRed < <span style="color: #000000;">0</span> ? -iRed : <span style="color: #000000;">iRed</span> <span style="color: #000000;">&#41;</span> ;<br />   iGreen = <span style="color: #000000;">&#40;</span> iGreen < <span style="color: #000000;">0</span> ? -iGreen : <span style="color: #000000;">iGreen</span> <span style="color: #000000;">&#41;</span> ;<br />   iBlue  = <span style="color: #000000;">&#40;</span> iBlue < <span style="color: #000000;">0</span> ? -iBlue : <span style="color: #000000;">iBlue</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bHoriz <span style="color: #000000;">&#41;</span><br />      rct.bottom = rct.top + <span style="color: #000000;">1</span> ;<br />   <span style="color: #00C800;">else</span><br />      rct.<span style="color: #0000ff;">right</span> = rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">1</span> ;<br /><br />   hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> clr1r, clr1g, clr1b <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   hOldBrush = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBrush <span style="color: #000000;">&#41;</span> ;<br />   FillRect<span style="color: #000000;">&#40;</span> hDC, &rct, hBrush <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> iEle = <span style="color: #000000;">1</span>; iEle < iTot; iEle++ <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />         bDir = <span style="color: #000000;">&#40;</span> clr2r >= clr1r ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDir <span style="color: #000000;">&#41;</span><br />            clr1r += iRed ;<br />         <span style="color: #00C800;">else</span><br />            clr1r -= iRed ;<br /><br />         clr1r = <span style="color: #000000;">&#40;</span> clr1r < <span style="color: #000000;">0</span> ? <span style="color: #000000;">0</span> : <span style="color: #000000;">clr1r</span> > <span style="color: #000000;">255</span> ? <span style="color: #000000;">255</span> : <span style="color: #000000;">clr1r</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         bDir = <span style="color: #000000;">&#40;</span> clr2g >= clr1g ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span>  <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDir <span style="color: #000000;">&#41;</span><br />            clr1g += iGreen ;<br />         <span style="color: #00C800;">else</span><br />            clr1g -= iGreen ;<br />         clr1g = <span style="color: #000000;">&#40;</span> clr1g < <span style="color: #000000;">0</span> ? <span style="color: #000000;">0</span> : <span style="color: #000000;">clr1g</span> > <span style="color: #000000;">255</span> ? <span style="color: #000000;">255</span> : <span style="color: #000000;">clr1g</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         bDir = <span style="color: #000000;">&#40;</span> clr2b >= clr1b ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span>  <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDir <span style="color: #000000;">&#41;</span><br />            clr1b += iBlue ;<br />         <span style="color: #00C800;">else</span><br />            clr1b -= iBlue ;<br />         clr1b = <span style="color: #000000;">&#40;</span> clr1b < <span style="color: #000000;">0</span> ? <span style="color: #000000;">0</span> : <span style="color: #000000;">clr1b</span> > <span style="color: #000000;">255</span> ? <span style="color: #000000;">255</span> : <span style="color: #000000;">clr1b</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldBrush <span style="color: #000000;">&#41;</span> ;<br />      DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span> ;<br />      hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> clr1r, clr1g, clr1b <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hBrush <span style="color: #000000;">&#41;</span> ;<br />      FillRect<span style="color: #000000;">&#40;</span> hDC, &rct, hBrush <span style="color: #000000;">&#41;</span> ;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bHoriz <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.top++ ;<br />         rct.bottom++ ;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.<span style="color: #0000ff;">left</span>++ ;<br />         rct.<span style="color: #0000ff;">right</span>++ ;<br />      <span style="color: #000000;">&#125;</span><br />   <span style="color: #000000;">&#125;</span><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldBrush <span style="color: #000000;">&#41;</span> ;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />   CLIPPER CHANGESYSC<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// OLORS( nItems, aItems, aColors )</span><br />#else<br />   HARBOUR HB_FUN_CHANGESYSCOLORS<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">&#41;</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   int iEle, iItems = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int aiElemen<span style="color: #000000;">&#91;</span> <span style="color: #000000;">28</span> <span style="color: #000000;">&#93;</span> ;<br />   COLORREF alColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">28</span> <span style="color: #000000;">&#93;</span> ;<br /><br />   <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> iEle = <span style="color: #000000;">0</span> ; iEle <= <span style="color: #000000;">&#40;</span> iItems - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; iEle++ <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      aiElemen<span style="color: #000000;">&#91;</span> iEle <span style="color: #000000;">&#93;</span> = hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">&#40;</span> iEle + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      alColors<span style="color: #000000;">&#91;</span> iEle <span style="color: #000000;">&#93;</span> = hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">&#40;</span> iEle + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   SetSysColors<span style="color: #000000;">&#40;</span> iItems, aiElemen, alColors <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />void cDrawCursor<span style="color: #000000;">&#40;</span> HWND hWnd, RECT * rctc, long lCursor, COLORREF nClr <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HDC hDC;<br />   HRGN hReg;<br />   COLORREF lclr = <span style="color: #000000;">&#40;</span> lCursor == <span style="color: #000000;">1</span> ? RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">lCursor</span> == <span style="color: #000000;">2</span> ? nClr : <span style="color: #000000;">lCursor</span> <span style="color: #000000;">&#41;</span>;<br />   HBRUSH hBr ;<br />   RECT rct ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lCursor != <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      hBr = CreateSolidBrush<span style="color: #000000;">&#40;</span> lclr <span style="color: #000000;">&#41;</span> ;<br />      hReg = CreateRectRgn<span style="color: #000000;">&#40;</span> rctc->left, rctc->top, rctc->right - <span style="color: #000000;">1</span>, rctc->bottom <span style="color: #000000;">&#41;</span>;<br />      hDC  = GetDCEx<span style="color: #000000;">&#40;</span> hWnd, hReg, DCX_CACHE <span style="color: #000000;">&#41;</span>;<br /><br />      FrameRgn<span style="color: #000000;">&#40;</span> hDC, hReg, hBr, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br />      DeleteObject<span style="color: #000000;">&#40;</span> hReg <span style="color: #000000;">&#41;</span> ;<br />      DeleteObject<span style="color: #000000;">&#40;</span> hBr <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      rct.top    = rctc->top + <span style="color: #000000;">1</span> ;<br />      rct.<span style="color: #0000ff;">left</span>   = rctc->left + <span style="color: #000000;">1</span> ;<br />      rct.bottom = rctc->bottom - <span style="color: #000000;">1</span> ;<br />      rct.<span style="color: #0000ff;">right</span>  = rctc->right - <span style="color: #000000;">1</span> ;<br /><br />      hDC  = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span> ;<br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:26znlwtc]
tsBrowse y Harbour
Ahora con Microsoft Visual Studio 2012 me aparecen los siguiente errores al crear el ejecutable: [code=fw:1abo54me]<div class="fw" id="{CB}" style="font-family: monospace;">vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSCOLUMN.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_SBGETHEIGHT <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_SBGETHEIGHT <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_ROWFROMPIX <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_COUNTROWS <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_TSBRWSCROLL <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_SBMPHEIGHT <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBROWSE.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_TSDRAWCELL <span style="color: #0000ff;">sin</span> resolver<br />vTsBrowse.LIB<span style="color: #000000;">&#40;</span>TSBTNGET.obj<span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">s</span>ímbolo externo _HB_FUN_GETBTN <span style="color: #0000ff;">sin</span> resolver<br />&nbsp;</div>[/code:1abo54me] Cuando genero la lib, no aparece ninguú error/mensaje.
tsBrowse y Harbour
Fernando, Fíjate si estas compilando en modo C++. Indícale que compile en modo C.
tsBrowse y Harbour
Antonio, Muchas gracias Tienes razón, estaba compilando en modo C++. Una vez que lo he pasado a modo C funciona sin problemas. Sólo he pasado la compilación de ese archivo C. ¿Debería pasar toda la librería? ¿Debería compilarse todo el código en modo C?, en el archivo buildh32.bat esta en modo C++
tsay:settext() change in latest build?
Hi, we found that in FWH 2006.12 build line " ::VarPut( ::cCaption )" has been added to the tsay:settext() method, which causes tsay:bget codeblock to be overwritten with static text and a little misbehavior in our application. Removing this line fixed display problems for us. What was the reason for this change? Taavi.
tsay:settext() change in latest build?
Taavi, Yes, it has to be removed. We added it trying to fix a problem in the report preview, but finally it got solved in a different way.
tsbrowse
saludos alguien sabe donde conseguir tsbrowse y tsbutton para fwh gracias.. arnulfo
tsbrowse
ftp.quiquesoft.com
tsbrowse
Hallo, benutzt jemand von euch tsbrowse ? ich müsste da in einer zelle ein jpg-file anzeigen, bmp´s gehen, jpg´s krieg ich nicht gebacken. hat jemand einen tipp für mich ? gruss, norbert
tsbrowse
hallo, Mein name ist Gutavo, auf Argentinien What version of Ts (ts = TsBrowser) user you?
tsbrowse
[quote="goosfancito":l1rg8d27]hallo, Mein name ist Gutavo, auf Argentinien What version of Ts (ts = TsBrowser) user you?[/quote:l1rg8d27] ts 7.01
tsbrowse
[code:1kyrtk7m]local oBmp local Gcolumn oBmp &#58;= LoadBitmap&#40; GetResources&#40;&#41;, "CheckGrant" &#41; Define GColumn oColumns Data '' Head 'Texto' Size 45 PIXELS 3DLOOK TRUE oColumns&#58;uBmpCell &#58;= &#123;|| oBmp&#125; oColumns&#58;nAlign &#58;= nMakeLong&#40; DT_RIGHT, DT_CENTER &#41;[/code:1kyrtk7m] "FGONDI" - Gracias. por la idea.
tsbrowse
Hallo, ich glaube jpg wird nicht direkt unterstützt, allerdings weiß ichs für Version 7 nicht genau, da ich bisher nur Version 6 nutze. Vielleicht kannst du die Grafik mit TImage einlesen und dann in TsBrowe weiterverarbeiten. Läuft die Version 7.01 denn stabil bei dir ? Ich hab nur Ärger damit gehabt (nicht initialisierte Variable und anderre Runtime-Errors) ? Gruß Stefan
tsbrowse
[quote="StefanHaupt":2ss5wfbu]Hallo, ich glaube jpg wird nicht direkt unterstützt, allerdings weiß ichs für Version 7 nicht genau, da ich bisher nur Version 6 nutze. Vielleicht kannst du die Grafik mit TImage einlesen und dann in TsBrowe weiterverarbeiten. Läuft die Version 7.01 denn stabil bei dir ? Ich hab nur Ärger damit gehabt (nicht initialisierte Variable und anderre Runtime-Errors) ? Gruß Stefan[/quote:2ss5wfbu] Hallo Stefan, ich probiers mal mit timage. ich habe zu Artikeln die entsprechenden Bilder, die als separate JPG-Files auf der Platte liegen. Die möchte ich im TSBrowse anzeigen. Mit .BMPs wäre das kein Problem, die Bilder kommen aber aus dem Shop und sind eben .JPGs. wegen 7.01. Ja - läuft bei mir ganz gut. Sind einige Bugs drausen, die mich in der 6.0 immer generft haben. Allerdings hatte ich mit der 7er auch einige Anfangsschwierigkeiten, gerade beim refreshen der datensätze. Nachdem ich einiges im Source angepasst habe, gehts nun ganz gut. Wenn du da was brauchst, melde dich. Gruss, Norbert
tsbrowse
[quote="Mark++":1ia150q5]Ich benutz nur noch xBrowse ist definitiv stabiler[/quote:1ia150q5] Hallo, ich muss zu meiner Schande gestehen, dass ich mich mit xBrowse noch garnicht befasst habe, werde es aber nach deiner Info nun doch mal tun. Läuft xbrowse zusammen mit mssql-Datendanken sauber ? Gruss, Norbert
tsbrowse
[quote="Mark++":2n1kgq5a]Ich benutz nur noch xBrowse ist definitiv stabiler[/quote:2n1kgq5a] Hallo Mark, habe jetzt xbrowse mal getestet. Gefällt mir gut, schöne Möglichkeiten. Da du xbrowse ja auch nutzt, kannst du mir vielleicht bei einem kleinen Problem weiterhelfen. Ich arbeite mit MSSQL. Wenn ich eine Tabelle mit xbrowse aufrufe, die Datensätze enthält, funktioniert es wunderbar, wenn allerdings keine Datensätze drin sind, zerhackt es mit den Bildschirm (Browse wird nicht korrekt aufgebaut). Hast du da einen Tipp für mich ? Gruss, Norbert
tsbrowse
[quote="NK":1dzqgu38] wegen 7.01. Ja - läuft bei mir ganz gut. Sind einige Bugs drausen, die mich in der 6.0 immer generft haben. Allerdings hatte ich mit der 7er auch einige Anfangsschwierigkeiten, gerade beim refreshen der datensätze. Nachdem ich einiges im Source angepasst habe, gehts nun ganz gut. Wenn du da was brauchst, melde dich. Gruss, Norbert[/quote:1dzqgu38] Hallo Norbert, mein größtes Problem ist ein Programmabsturz, wenn ich das Browse in Foldern habe. Die Folder werden gar nicht erst angezeigt, Fehlermeldung: Error occurred at: 07.02.2006, 10:35:13 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 51 Stack Calls =========== Called from TSBROWSE:PROPER(8030) Called from TSBROWSE:LOADFIELDS(6186) Called from TSBROWSE:DEFAULT(1415) Called from TSBROWSE:NEW(746) Das war schon in der Version 6 ein Problem, da konnte ich es aber beheben, nur die gleichen Änderungen in der Version 7 hatten nicht den gleichen Erfolg. javascript&#058;emoticon ':(' Das refreshen bzw. nicht Anzeigen der Datensätze, gerade in selbst programmierten Relationen ist da schon fast ein kleines Problem Hast du ein paar Tips, wie ich die Version 7.01 doch noch zum Laufen bringe ? Gruß Stefan
tsbrowse
[quote="StefanHaupt":3apdiuw1]Hallo Norbert, mein größtes Problem ist ein Programmabsturz, wenn ich das Browse in Foldern habe. Die Folder werden gar nicht erst angezeigt, Fehlermeldung: Error occurred at: 07.02.2006, 10:35:13 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 51 Stack Calls =========== Called from TSBROWSE:PROPER(8030) Called from TSBROWSE:LOADFIELDS(6186) Called from TSBROWSE:DEFAULT(1415) Called from TSBROWSE:NEW(746) Das war schon in der Version 6 ein Problem, da konnte ich es aber beheben, nur die gleichen Änderungen in der Version 7 hatten nicht den gleichen Erfolg. javascript&#058;emoticon ':(' Das refreshen bzw. nicht Anzeigen der Datensätze, gerade in selbst programmierten Relationen ist da schon fast ein kleines Problem Hast du ein paar Tips, wie ich die Version 7.01 doch noch zum Laufen bringe ? Gruß Stefan[/quote:3apdiuw1] Hallo Stefan, mit den Foldern kann ich dir auf die schnelle auch nicht helfen. Bei mir hab ich nicht mal das demoprogramm sbtest (Foldertest) zum laufen bekommen (hab mich aber auch nicht weiter damit beschäftigt). In Foldern nehme ich nach wie vor den tcbrowse. Wegen deiner Refresh(erei) kann ich dir helfen. Da ich SQL verwende und auch wärend der Anzeige die Filter wechsele hatte ich damit echte Probleme. Das einzige was wirklich geholfen hat war: oList:Refresh( .T. ) oList:SetFocus( .T. ) oList:nLen := oDBF:RecCount() Wichtig ist, dass der Wert von nLEN nach dem filtern manuel neu gesetzt wird. Dann hat es bei mir geklappt. Alledings bin ich eben dabei auf xBrowse umzusteigen. Hab da zwar auch noch so meine Probleme, aber wer hat die nicht <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Wenn ich dir bei der Folder-Sache helfen soll, brauch ich allerdings ein paar Codeschnipsel. Mach ich gerne ... Gruss, Norbert
tsbrowse
Norbert, danke erstmal für die Tips. Ich werde mich demnächst mal das Folderproblem machen, dann kann ich dir genaueres sagen. Es scheint an der Reihenfolge der Initialisierung einzelner Variablen zu liegen. Die Codeschnipsel folgen.... Gruß Stefan
tsbrowse
[quote="StefanHaupt":3n1brlky] Hallo Norbert, mein größtes Problem ist ein Programmabsturz, wenn ich das Browse in Foldern habe. Die Folder werden gar nicht erst angezeigt, Fehlermeldung: Error occurred at: 07.02.2006, 10:35:13 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 51 Stack Calls =========== Called from TSBROWSE:PROPER(8030) Called from TSBROWSE:LOADFIELDS(6186) Called from TSBROWSE:DEFAULT(1415) Called from TSBROWSE:NEW(746) Das war schon in der Version 6 ein Problem, da konnte ich es aber beheben, nur die gleichen Änderungen in der Version 7 hatten nicht den gleichen Erfolg. javascript&#058;emoticon ':(' [/quote:3n1brlky] Hallo Stefan, heute hat mich mal der Ergeiz gepackt und ich habe mit TSBROWSE und FOLDERN gebastelt. Bei mir geht es jetzt. In der METHOD NEW einfach die Anweisung ::DEFAULT() remarken. [code:3n1brlky] If ! Empty&#40; &#58;&#58;oWnd&#58;hWnd &#41; &#58;&#58;Create&#40;&#41; If oFont != Nil &#58;&#58;SetFont&#40; oFont &#41; EndIf &#58;&#58;lVisible = &#46;T&#46; ***** &#58;&#58;Default&#40;&#41; &#58;&#58;oWnd&#58;AddControl&#40; Self &#41; Else &#58;&#58;oWnd&#58;DefControl&#40; Self &#41; If oFont != Nil &#58;&#58;SetFont&#40; oFont &#41; EndIf &#58;&#58;lVisible = &#46;F&#46; EndIf [/code:3n1brlky] Gruss, Norbert
tsbrowse
Ja super, soweit funktioniert es jetzt. Einfach eine ganze Funktion wegzulassen finde ich doch schon recht mutig, hoffentlich gibts da keine ungewolten Nebenwirkungen. Es wird doch einiges eingestellt in der Method. Ich werde das mal weiter beobachten und testen. Danke erstmal Viele Grüße Stefan
tsbrowse
Hi Norbert, ich hab jetzt mal ein paar Tests gemacht, aber die version ist eigentlich unbrauchbar. Die Folder funktionieren zwar jetzt, aber der refresh ist eine einzige Katastrophe. Sobald das abhängige Browse keinen Focus mehr hat, wird nichts angezeigt. beispiel: [code:ksj2k6ra] ON CHANGE Software->ordScope&#40;&#46;&#46;&#46;&#41;, oChildBrw&#58;Setfocus&#40;&#41;, oChildBrw&#58;Refresh&#40;&#41;, oBrw&#58;Setfocus&#40;&#41;[/code:ksj2k6ra] zeigt nichts im abhängigen Browse an, läßt man oBrw:Setfocus() weg, dann gehts. Dann kann man aber mit den Cursortasten nicht mehr durch das eigentlich Browse laufen, da das den Focus ja verloren hat. Ich hab auch momentan keine Zeit, intensiv nach den Fehlern zu suchen, also hab ich jetzt erstmal wieder die Version 6 genommen, die funktioniert ganz ordentlich. Vielleicht sollte ich auch auf xBrowse umsteigen, mal sehen. Wie sehen denn deine Erfahrungen damit aus ? Gruß Stefan
tsbrowse
Alguien tiene una version de Tsbrowse de M.Mercado y que funcione para consultas mysql Gracias
tsbrowse
[quote="Marco Augusto":270ifbnm]Alguien tiene una version de Tsbrowse de M.Mercado y que funcione para consultas mysql Gracias[/quote:270ifbnm] Si es que vas a implementar la TS ( tsbrowse ) por primera vez, te recomiendo la xBrowse. Gustavo.
tsbrowse
[quote="goosfancito":3sh2ag49][quote="Marco Augusto":3sh2ag49]Alguien tiene una version de Tsbrowse de M.Mercado y que funcione para consultas mysql Gracias[/quote:3sh2ag49] Si es que vas a implementar la TS ( tsbrowse ) por primera vez, te recomiendo la xBrowse. Gustavo.[/quote:3sh2ag49] Pregunta.. donde esta la xBrowse ? De quien es... ? Cuando vale... ?
tsbrowse
Viene incluida en el FiveWin,
tsbrowse
[quote="Marco Augusto":1d1rgpax]Alguien tiene una version de Tsbrowse de M.Mercado y que funcione para consultas mysql Gracias[/quote:1d1rgpax] Todos y a la vez ningun browse te sirve para manipular MySQL. Me explico mejor: A menos que trabajes con ADO es posible "browsear" directamente un RecordSet, cualquier otra froma de acceso a MySQL, llamese ODBC, Eagle, RDD SQL u otro, requiere forzosamente que pase el contenido del cursor al un arreglo y que de ahi al browse correspondiente. Para browsear un RecordSet de ADO lo uedes hacer con cualqieur Browse, solo tienes que crear un cursor typo adOpenSetKey y modificar unas datas del browse, y escribir una funcion Skipper Por ejemplo con Access (para my sql, solo cambia la cadena de conexion) [code:1d1rgpax]oMiConexion &#58;= TOleAuto&#40;&#41;&#58;New&#40;“adodb&#46;connection”&#41; oMiConexion&#58;Open&#40;“MicroSoft&#46;Jet&#46;OLEDB&#46;4&#46;0; Data Source=&#46;\taller&#46;mdb”&#41; oRecordSet &#58;= TOleAuto&#40;&#41;&#58;New&#40;“adodb&#46;recordset”&#41; oRecordSet&#58;LockType &#58;= adLockOptimistic oRecordSet&#58;CursorType &#58;= adOpenKeySet oRecordSet&#58;ActiveConnection&#40;oMiConexion&#41; oRecordSet&#58;Source &#58;= “Select * from Clientes” oRecordSet&#58;Open&#40;&#41; oRecordSet&#58;MoveFirst&#40;&#41; @ 0, 0 LISTBOX oBrw FIELDS oRecordSet&#58;Fields&#40;“nombre”&#41;&#58;value,; oRecordSet&#58;Fields&#40;“apellido”&#41;&#58;value,; oRecordSet&#58;Fields&#40;“id”&#41;&#58;value,; oRecordSet&#58;Fields&#40;“edad”&#41;&#58;value,; oRecordSet&#58;Fields&#40;“ciudad”&#41;&#58;value,; oRecordSet&#58;Fields&#40;“estado”&#41;&#58;value; HEADERS "Nombre",”Apellido”,”Id”,”Edad”,”Ciudad”,”Estado” /* esto es lo que cambia */ oBrw&#58;bLogicLen = &#123; || oRecordSet&#58;RecordCount &#125; oBrw&#58;bGoTop = &#123; || oRecordSet&#58;MoveFirst&#40;&#41; &#125; oBrw&#58;bGoBottom = &#123; || oRecordSet&#58;MoveLast&#40;&#41; &#125; oBrw&#58;bSkip = &#123; | nSkip | Skipper&#40; oRecordSet, nSkip &#41; &#125; oBrw&#58;cAlias = "ARRAY" STATIC FUNCTION SKIPPER&#40; oRs, nSkip &#41; LOCAL nRec &#58;= oRs&#58;AbsolutePosition oRs&#58;Move&#40; nSkip &#41; IF oRs&#58;EOF; oRs&#58;MoveLast&#40;&#41;; ENDIF IF oRs&#58;BOF; oRs&#58;MoveFirst&#40;&#41;; ENDIF RETURN oRs&#58;AbsolutePosition – nRe [/code:1d1rgpax] Con esto cualquier browse (Xbrowse, TWBrowse, Browse de Hernan, TSbrowse, etc,) te funciona para una tabla de MySQL
tsbrowse
Hola de nuevo por estos lugares alguien tiene la tsbrowse de MM que me proporcione una copia gracias de antemano y un saludo a todos. fernando
tsbrowse & picture & array
Amigos, Porque este codigo: [code:lgvzgohv] REDEFINE BROWSE oBrw ID 110 OF oDlg font oFonts&#91; 01 &#93; cell oBrw&#58; SetArray&#40; aDatos &#41; ADD COLUMN TO BROWSE oBrw DATA Array element 1 head "Codigo" width 80; align DT_LEFT, DT_CENTER, DT_CENTER; 3DLOOK FALSE, FALSE, FALSE; picture "99/99/9999"; MOVE DT_MOVE_NEXT; FOOTER "Totales->"[/code:lgvzgohv] Pero cuando saco la parte que dice PICTURE "99/99/9999" me funciona perfectamente. PROBLEMA: cuando hago cursos para arriba me aparece esta hermosa pantalla. [url=http&#58;//imageshack&#46;us:lgvzgohv][img:lgvzgohv]http&#58;//img389&#46;imageshack&#46;us/img389/4985/untitled10dt&#46;jpg[/img:lgvzgohv][/url:lgvzgohv]
tsbrowse & picture & array
Respuesta: Estaba moviendome mal en el array cuando definia los valores, tenia un array: [code:2vohff4c]LOCAL aDatos&#58;= array&#40; 25, 06&#41; LOCAL nItem for nItem&#58;= 1 to 06 [/code:2vohff4c] Y en realidad es de 1 a 25 [code:2vohff4c]for nItem&#58;= 1 to 25[/code:2vohff4c] Gracias por las aclaraciones FGONDI.
tsbrowse & twbrowse
Hi, What is the replacement for tsbrowse in FWH ? I can't find any topic of it and the download from Patrick site does not include complete lib files eg: sbrowse.lib,etc. Also where can I find Hernan's Twbrowse ? what is the sample prg in FWH with cell edit style ? Regards Hoe
tsbrowse & twbrowse
Hoe, The lib files probably won't be the right ones anyhow. You need to build your own library compiling with your version of FWH and C. You can use TLib.exe that comes with Borland C if you have it. Or, lib.exe that comes with a lot of Microsoft products. James
tsbrowse & twbrowse
James, Thanks. will do it. Regards Hoe
tsbrowse + tsbutton for FWH 2.7 y xHarbour Build 0.99.61
Hola Aqui les dejo el link por si necesitan las librerias TsBrowse y Tsbutton para tabajar con for FWH 2.7 xHarbour Build 0.99.61 <!-- m --><a class="postlink" href="http://hyperupload.com/download/029b549d95/TSB_LIB.ZIP.html">http://hyperupload.com/download/029b549 ... B.ZIP.html</a><!-- m --> George
tsbrowse + tsbutton for FWH 2.7 y xHarbour Build 0.99.61
George, Gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Las vamos a copiar a la sección de utilidades de estos foros
tsbrowse + tsbutton for FWH 2.7 y xHarbour Build 0.99.61
Antonio, Me alegra saber que puedo aportar mi granito de arena, para de esta manera agradecer a este foro, y a ti en particular que me han enseñado todo lo que he aprendido para programar en windows. Saludos George
tsbrowse + tsbutton for FWH 2.7 y xHarbour Build 0.99.61
<!-- m --><a class="postlink" href="http://hyperupload.com/download/024bcdd980/TSLIB.ZIP.html">http://hyperupload.com/download/024bcdd ... B.ZIP.html</a><!-- m --> En este link esta el codigo fuente de las classes Tsbrowse 7.0 and TsButton 5.0 (Manuel Mercado classes) Despues de PKUNZIP TSLIB.ZIP, usted tiene TSBUTTON.ZIP yTSBRW.ZIP y las librerias compiladas tsbrowse.lib and tsbbutton.lib, usando FWH 2.7 Jul 06 y xBuilder Professional Beta Aug 06 RC9 de xHarbour.com Por favor use la opcion PKUNZIP -D TSBUTTON.ZIP (y para TSBRW.ZIP tambien) para crear los directorios y subdirectorios. Las librerias compiladas se realizaron con el compilador xCC, de xBuilder (<!-- w --><a class="postlink" href="http://www.xHarbour.com">www.xHarbour.com</a><!-- w -->). Incluido estan los ".ini" para crear las libreria con xBuilder George
tsbrowse + tsbutton for FWH 2.7 y xHarbour Build 0.99.61
I have aproblem with tsbutton the button I create with tsbutton ( [b:3o75mkrz]noboxtr) [/b:3o75mkrz]not is trasparent in a window where I use a bitmap on background... I made also a small test program ...to try it !! the test.prg is at :http://hyperupload.com/download/024ac3fe50/TESTSB.zip.html Thanks in advance Best Regards
tsbrowse - MENU POPUP header right click
Como cancelar o MENU POPUP do header, quando se usa right click do mouse? Obrigado
tsbrowse - MENU POPUP header right click
[quote="SGS":2jrkb640]Como cancelar o MENU POPUP do header, quando se usa right click do mouse?[/quote:2jrkb640] oBrw:lNoMoveCols := .T. Saludos. Manuel Mercado
tsbrowse - MENU POPUP header right click
Muito obrigado Maestro! SGS
tsbrowse 7.1
Hola foro, Uso la clase tsbrowse 7.1 y creo que todos conocemos sus problemas de refresco. Yo en concreto tenía problemas al pintar una única fila y no tener el foco sobre browse, Pintaba la fila vacia. He realizado cambios en el método lostfocus de la clases tsbrowse para corregir ese problema y ya me funciona perfectamente. [code:a4gyqmxc]METHOD LostFocus&#40; hCtlFocus &#41; CLASS TSBrowse Local nRecNo, uTag Default &#58;&#58;aControls &#58;= &#123;&#125; If &#58;&#58;lEditing &#46;and&#46; Len&#40; &#58;&#58;aControls &#41; > 0 &#46;and&#46; ; hCtlFocus == &#58;&#58;aControls&#91; 1 &#93;&#58;hWnd Return 0 EndIf If &#58;&#58;lEditing If &#58;&#58;aColumns&#91; &#58;&#58;nCell &#93;&#58;oEdit != Nil &#58;&#58;aColumns&#91; &#58;&#58;nCell &#93;&#58;oEdit&#58;End&#40;&#41; EndIf &#58;&#58;lEditing &#58;= &#58;&#58;lPostEdit &#58;= &#46;F&#46; EndIf &#58;&#58;lNoPaint &#58;= &#46;F&#46; If &#58;&#58;lDrag Return Super&#58;LostFocus&#40; hCtlFocus &#41; EndIf &#58;&#58;lFocused = &#46;F&#46; If ! Empty&#40; &#58;&#58;bLostFocus &#41; Eval&#40; &#58;&#58;bLostFocus, hCtlFocus &#41; EndIf If &#58;&#58;nLen > 0 &#46;and&#46; ! EmptyAlias&#40; &#58;&#58;cAlias &#41; &#46;and&#46; ! &#58;&#58;lIconView &#58;&#58;DrawSelect&#40;&#41; If &#58;&#58;lIsDbf &#46;and&#46; &#40; &#58;&#58;cAlias &#41;->&#40; RecNo&#40;&#41; &#41; != &#58;&#58;nLastPos &#58;&#58;nLastPos &#58;= &#40; &#58;&#58;cAlias &#41;->&#40; RecNo&#40;&#41; &#41; &#58;&#58;nLastnAt &#58;= &#58;&#58;nAt If &#58;&#58;bTagOrder != Nil &#46;and&#46; ! &#58;&#58;lNoResetPos &#46;and&#46; &#58;&#58;bLastTag != Nil &#58;&#58;uLastTag &#58;= Eval&#40; &#58;&#58;bLastTag &#41; EndIf EndIf EndIf If &#58;&#58;oCtx != Nil &#58;&#58;oCtx&#58;Save&#40;&#41; EndIf &#58;&#58;lHasFocus &#58;= &#46;F&#46; Return 0[/code:a4gyqmxc]
tsbrowse 7.1
Eskerrik asko !! Muchas gracias !! Félix
tsbrowse 7.1
Hola, Se que hay mas gente que ha variado la clase, si disponemos de esos cambios mejoraremos la clase entre todos. Mas cambios que he realizado (aparecen bajo el comentario fgondi) [code:1tndmye3]METHOD Edit&#40; uVar, nCell, nKey, nKeyFlags, cPicture, bValid, nClrFore, ; nClrBack &#41; CLASS TSBrowse Local nRow, nHeight, oFont, cType, uValue, nI, aGet, oCol, cMsg, aRct, ; cError, bChange, lSpinner, bUp, bDown, bMin, bMax, nStartX, ; nWidth, lCombo, lMulti, nCol, lLogicDrop, nTxtHeight, ; nFireKey &#58;= &#58;&#58;nFireKey Default nCell &#58;= &#58;&#58;nCell, ; &#58;&#58;lPostEdit &#58;= &#46;F&#46;, ; &#58;&#58;lNoPaint &#58;= &#46;F&#46; oCol &#58;= &#58;&#58;aColumns&#91; nCell &#93; Default &#58;&#58;nHeightSuper &#58;= 0, ; nKey &#58;= VK_RETURN, ; nKeyFlags &#58;= 0, ; nFireKey &#58;= VK_F2, ; uVar &#58;= Eval&#40; oCol&#58;bData &#41;, ; cPicture &#58;= oCol&#58;cPicture, ; bValid &#58;= oCol&#58;bValid, ; nClrFore &#58;= oCol&#58;nClrEditFore, ; nClrBack &#58;= oCol&#58;nClrEditBack uValue &#58;= uVar cType &#58;= If&#40; Empty&#40; oCol&#58;cDataType &#41;, ValType&#40; uValue &#41;, oCol&#58;cDataType &#41; cMsg &#58;= oCol&#58;cMsgEdit cError &#58;= oCol&#58;cError bChange &#58;= oCol&#58;bChange lSpinner &#58;= oCol&#58;lSpinner bUp &#58;= oCol&#58;bUp bDown &#58;= oCol&#58;bDown bMin &#58;= oCol&#58;bMin bMax &#58;= oCol&#58;bMax nStartX &#58;= 0 lCombo &#58;= lMulti &#58;= &#46;F&#46; &#58;&#58;oGet &#58;= &#58;&#58;oWnd&#58;bValid &#58;&#58;oWnd&#58;bValid &#58;= &#123; || ! &#58;&#58;lEditing &#125; If oCol&#58;bPassWord != Nil If ! Eval&#40; oCol&#58;bPassWord, uValue, nCell, &#58;&#58;nAt, Self &#41; Return Nil EndIf EndIf &#58;&#58;lEditing &#58;= &#46;T&#46; &#58;&#58;lHitBottom &#58;= &#46;F&#46; If &#58;&#58;nLen > 0 &#58;&#58;lNoPaint &#58;= &#46;T&#46; EndIf If oCol&#58;bPrevEdit != Nil Eval&#40; oCol&#58;bPrevEdit, uValue, Self &#41; EndIf cMsg &#58;= If&#40; ValType&#40; cMsg &#41; == "B", Eval&#40; cMsg, Self, nCell &#41;, cMsg &#41; If cType == "L" &#46;and&#46; oCol&#58;lCheckBox If nKey != VK_RETURN If Upper&#40; Chr&#40; nKey &#41; &#41; $ "YCST1" &#58;&#58;lChanged &#58;= uVar == &#46;F&#46; uVar &#58;= &#46;T&#46; ElseIf Upper&#40; Chr&#40; nKey &#41; &#41; $ "FN0" &#58;&#58;lChanged &#58;= uVar == &#46;T&#46; uVar &#58;= &#46;F&#46; ElseIf nKey == VK_SPACE uVar &#58;= ! uVar &#58;&#58;lChanged &#58;= &#46;T&#46; Else Return 0 EndIf &#58;&#58;lHasChanged &#58;= If&#40; &#58;&#58;lChanged, &#46;T&#46;, &#58;&#58;lHasChanged &#41; &#58;&#58;oWnd&#58;nLastKey &#58;= VK_RETURN &#58;&#58;PostEdit&#40; uVar, nCell, bValid &#41; //&#46;&#46;&#46; fgondi&#46; Añadido parametro bValid &#58;&#58;lPostEdit &#58;= &#46;F&#46; Return 0 Else &#58;&#58;lPostEdit &#58;= &#46;T&#46; &#58;&#58;lChanged &#58;= &#46;F&#46; &#58;&#58;oWnd&#58;nLastKey &#58;= nKey &#58;&#58;PostEdit&#40; uVar, nCell, bValid &#41; //&#46;&#46;&#46; fgondi&#46; Añadido parametro bValid &#58;&#58;lPostEdit &#58;= &#46;F&#46; Return 0 EndIf EndIf If oCol&#58;bExtEdit != Nil // external edition &#58;&#58;lNoPaint &#58;= &#58;&#58;lEditing &#58;= &#46;F&#46; uVar &#58;= Eval&#40; oCol&#58;bExtEdit, uValue, Self &#41; &#58;&#58;lChanged &#58;= ValType&#40; uVar &#41; != ValType&#40; uValue &#41; &#46;or&#46; uVar != uValue &#58;&#58;lPostEdit &#58;= &#46;T&#46; &#58;&#58;oWnd&#58;nLastKey &#58;= VK_RETURN &#58;&#58;PostEdit&#40; uVar, nCell, bValid &#41; Return Nil EndIf oFont &#58;= If&#40; oCol&#58;oFontEdit != Nil, oCol&#58;oFontEdit, ; If&#40; oCol&#58;oFont != Nil, oCol&#58;oFont, &#58;&#58;oFont &#41; &#41; If oCol&#58;oEdit != Nil oCol&#58;oEdit&#58;End&#40;&#41; Endif If &#58;&#58;nFreeze > 0 For nI &#58;= 1 To Min&#40; &#58;&#58;nFreeze , nCell - 1 &#41; nStartX += &#58;&#58;GetColSizes&#40;&#41;&#91; nI &#93; Next EndIf For nI &#58;= &#58;&#58;nColPos To nCell - 1 nStartX += &#58;&#58;GetColSizes&#40;&#41;&#91; nI &#93; Next nClrFore &#58;= If&#40; ValType&#40; nClrFore &#41; == "B", ; Eval&#40; nClrFore, &#58;&#58;nAt, nCell, Self &#41;, nClrFore &#41; nClrBack &#58;= If&#40; ValType&#40; nClrBack &#41; == "B", ; Eval&#40; nClrBack, &#58;&#58;nAt, nCell, Self &#41;, nClrBack &#41; nRow &#58;= &#58;&#58;nRowPos - 1 nRow &#58;= &#40; nRow * &#58;&#58;nHeightCell &#41; + &#58;&#58;nHeightHead + ; &#58;&#58;nHeightSuper + If&#40; oCol&#58;l3DLook, 2, 0 &#41; nCol &#58;= nStartX + If&#40; oCol&#58;l3DLook, 2, 0 &#41; nWidth &#58;= &#58;&#58;GetColSizes&#40;&#41;&#91; nCell &#93; - If&#40; oCol&#58;l3DLook, 4, 2 &#41; nHeight &#58;= &#58;&#58;nHeightCell - If&#40; oCol&#58;l3DLook, 3, 1 &#41; If oCol&#58;cResName != Nil oCol&#58;oEdit &#58;= TSBtnGet&#40;&#41;&#58;New&#40; 0, 0, bSETGET&#40; uValue &#41;, Self, 0, 0, ; cPicture,, nClrFore, nClrBack, oFont,,,, ; cMsg,,,,, bChange,,, &#46;T&#46;,, ; oCol&#58;cResName, oCol&#58;bAction, ; lSpinner &#46;and&#46; cType $ "ND", bUp, bDown, ; bMin, bMax, oCol&#58;nBmpWidth &#41; oCol&#58;oEdit&#58;Hide&#40;&#41; oCol&#58;oEdit&#58;nFireKey &#58;= nFireKey oCol&#58;oEdit&#58;aFill &#58;= oCol&#58;aFill oCol&#58;oEdit&#58;lFixCaret &#58;= &#58;&#58;lFixCaret ElseIf &#40; cType == "C" &#46;and&#46; Chr&#40; 13 &#41; $ uValue &#41; &#46;or&#46; cType == "M" Default uValue &#58;= "" If &#58;&#58;nMemoHE == Nil If ! Empty&#40; uValue &#41; nHeight &#58;= Max&#40; 4, StrCharCount&#40; uValue, Chr&#40; 10 &#41; &#41; &#41; Else nHeight &#58;= 4 EndIf Else nHeight &#58;= &#58;&#58;nMemoHE EndIf aRct &#58;= GetClientRect&#40; &#58;&#58;hWnd &#41; If &#58;&#58;nMemoWE == Nil &#46;or&#46; Empty&#40; &#58;&#58;nMemoWE &#41; nWidth &#58;= Max&#40; nWidth, GetTextWidth&#40; 0, SubStr&#40; uValue, 1, ; At&#40; Chr&#40; 13 &#41;, uValue &#41; - 1 &#41;, ; If&#40; oFont != Nil, oFont&#58;hFont, 0 &#41; &#41; &#41; nWidth &#58;= Min&#40; nWidth, Int&#40; aRct&#91; 4 &#93; * &#46;8 &#41; &#41; Else nWidth &#58;= &#58;&#58;nMemoWE EndIf nTxtHeight &#58;= SBGetHeight&#40; &#58;&#58;hWnd, If&#40; oFont != Nil, oFont&#58;hFont, 0 &#41;, 0 &#41; While &#40; nRow + &#40; nTxtHeight * nHeight &#41; &#41; > aRct&#91; 3 &#93; nRow -= nTxtHeight EndDo nI &#58;= nCol + nWidth - aRct&#91; 4 &#93; nCol -= If&#40; nI < 0, 0, nI &#41; nCol &#58;= Max&#40; 10, nCol &#41; nHeight *= nTxtHeight If SubStr&#40; uValue, 1, 4 &#41; == GTF5 oCol&#58;oEdit &#58;= TSFGet&#40;&#41;&#58;New&#40; 0, 0, bSETGET&#40; uValue &#41;, Self, 0, 0, oFont &#41; oCol&#58;oEdit&#58;OnResize &#58;= &#123;||oCol&#58;oEdit&#58;VScrAdjust&#40;&#41;&#125; Else oCol&#58;oEdit &#58;= TSMulti&#40;&#41;&#58;New&#40; 0, 0, bSETGET&#40; uValue &#41;, Self, 0, 0, ; oFont,,nClrFore, nClrBack &#41; oCol&#58;oEdit&#58;bGotFocus &#58;= &#123; || oCol&#58;oEdit&#58;HideSel&#40;&#41;, oCol&#58;oEdit&#58;SetPos&#40; 0 &#41; &#125; EndIf lMulti &#58;= &#46;T&#46; oCol&#58;oEdit&#58;Hide&#40;&#41; SetWindowLong&#40; oCol&#58;oEdit&#58;hWnd, GWL_STYLE, nOr&#40; oCol&#58;oEdit&#58;nStyle, WS_THICKFRAME &#41; &#41; ElseIf &#40; cType == "L" &#46;and&#46; &#58;&#58;lLogicDrop &#41; &#46;or&#46; oCol&#58;lComboBox lCombo &#58;= &#46;T&#46; If oCol&#58;lComboBox aGet &#58;= oCol&#58;aItems If Empty&#40; aGet &#41; Return Nil EndIf If nKey == VK_RETURN If oCol&#58;cDataType != Nil &#46;and&#46; oCol&#58;cDataType == "N" uValue &#58;= Max&#40; 1, AScan&#40; aGet, AllTrim&#40; uValue &#41; &#41; &#41; Else uValue &#58;= aGet&#91; Max&#40; 1, AScan&#40; aGet, AllTrim&#40; uValue &#41; &#41; &#41; &#93; EndIf Else If oCol&#58;cDataType != Nil &#46;and&#46; oCol&#58;cDataType == "N" uValue &#58;= Max&#40; 1, AScan&#40; aGet, Upper&#40; Chr&#40; nKey &#41; &#41; &#41; &#41; Else uValue &#58;= aGet&#91; Max&#40; 1, AScan&#40; aGet, Upper&#40; Chr&#40; nKey &#41; &#41; &#41; &#41; &#93; EndIf EndIf nHeight &#58;= Max&#40; 10, Min&#40; 10, Len&#40; aGet &#41; &#41; &#41; * &#58;&#58;nHeightCell Else aGet &#58;= &#123; &#58;&#58;aMsg&#91; 1 &#93;, &#58;&#58;aMsg&#91; 2 &#93; &#125; If nKey == VK_RETURN uValue &#58;= If&#40; uValue, 1, 2 &#41; EndIf nHeight &#58;= &#58;&#58;nHeightCell * 2 EndIf nRow -= 4 oCol&#58;oEdit &#58;= TSCombo&#40;&#41;&#58;New&#40; 1000, 0, bSETGET&#40; uValue &#41;, aGet, ; 0, 0, Self,,bChange,, nClrFore, ; nClrBack, &#46;T&#46;, oFont, cMsg &#41; oCol&#58;oEdit&#58;bCloseUp &#58;= &#123;|o|o&#58;PostMsg&#40; WM_KEYDOWN, VK_RETURN, 0 &#41;&#125; oCol&#58;oEdit&#58;lAppend &#58;= &#58;&#58;lAppendMode oCol&#58;oEdit&#58;Hide&#40;&#41; Else oCol&#58;oEdit &#58;= TSGet&#40;&#41;&#58;New&#40; 0, 0, bSETGET&#40; uValue &#41;, Self, 0, 0, ; cPicture,, nClrFore, nClrBack, oFont,,,, ; cMsg,,,,, bChange,,, &#46;T&#46;,, ; lSpinner &#46;and&#46; cType $ "ND", bUp, bDown, ; bMin, bMax &#41; oCol&#58;oEdit&#58;Hide&#40;&#41; oCol&#58;oEdit&#58;aFill &#58;= oCol&#58;aFill oCol&#58;oEdit&#58;lFixCaret &#58;= &#58;&#58;lFixCaret EndIf oCol&#58;oEdit&#58;bLostFocus &#58;= &#123; | nKey | &#58;&#58;EditExit&#40; nCell, nKey, uValue, ; bValid, &#46;T&#46; &#41; &#125; oCol&#58;oEdit&#58;bKeyDown &#58;= &#123; | nKey, nFlags, lExit | ; If&#40; lExit != Nil &#46;and&#46; lExit, ; &#58;&#58;EditExit&#40; nCell, nKey, uValue, bValid &#41;, ; Nil &#41; &#125; oCol&#58;oEdit&#58;oJump &#58;= Self oCol&#58;oEdit&#58;Move&#40; nRow, nCol, nWidth, nHeight, ! lCombo &#41; If oCol&#58;cResName != Nil oCol&#58;oEdit&#58;Default&#40;&#41; EndIf oCol&#58;oEdit&#58;SetFocus&#40;&#41; if oCol&#58;oEdit=NIL return NIL endif If nKey != Nil &#46;and&#46; nKey > 31 If ! lCombo &#46;and&#46; ! lMulti oCol&#58;oEdit&#58;lRightLeftExit &#58;= &#46;T&#46; oCol&#58;oEdit&#58;KeyChar&#40; nKey, nKeyFlags &#41; EndIf Endif oCol&#58;oEdit&#58;Show&#40;&#41; &#58;&#58;SetMsg&#40; oCol&#58;cMsgEdit &#41; If oCol&#58;bEditing != Nil Eval&#40; oCol&#58;bEditing, uVar, Self &#41; EndIf Return Nil[/code:1tndmye3] [code:1tndmye3]#ifdef __OLE__ METHOD ExcelOle&#40; cXlsFile, lActivate, oMeter, cTitle, ; oFont, lSave &#41; CLASS TSBrowse Local oExcel, oBook, oSheet, nRow, nCol, uData, nEvery, oRange, cRange, cCell, ; bError, cText, oClip, nStart, ; nLine &#58;= 1, ; nCount &#58;= 0, ; nRecNo &#58;= &#40; &#58;&#58;cAlias &#41;->&#40; RecNo&#40;&#41; &#41;, ; nAt &#58;= &#58;&#58;nAt Default lActivate &#58;= Empty&#40; cXlsFile &#41;, ; cTitle &#58;= "", ; lSave &#58;= &#46;F&#46; CursorWait&#40;&#41; &#58;&#58;lNoPaint &#58;= &#46;F&#46; If oMeter != Nil oMeter&#58;nTotal &#58;= &#40; &#58;&#58;nLen + 1 &#41; * Len&#40; &#58;&#58;aColumns &#41; + 30 oMeter&#58;Set&#40; 0 &#41; oMeter&#58;Refresh&#40;&#41; nEvery &#58;= Max&#40; 1, Int&#40; oMeter&#58;nTotal * &#46;02 &#41; &#41; // refresh ometer every 2 % EndIf cXlsFile &#58;= AllTrim&#40; StrTran&#40; Upper&#40; cXlsFile &#41;, "&#46;XLS" &#41; &#41; cTitle &#58;= AllTrim&#40; cTitle &#41; bError &#58;= ErrorBlock&#40; &#123; | x | Break&#40; x &#41; &#125; &#41; Begin Sequence oExcel &#58;= TOleAuto&#40;&#41;&#58;New&#40;"Excel&#46;Application"&#41; Recover ErrorBlock&#40; bError &#41; CursorArrow&#40;&#41; MsgStop&#40; "No Ole&#46;lib searched", "Error" &#41; Return Nil End Sequence ErrorBlock&#40; bError &#41; If oMeter != Nil nCount -= 15 oMeter&#58;Set&#40; nCount &#41; EndIf oExcel&#58;WorkBooks&#58;Add&#40;&#41; oBook &#58;= oExcel&#58;Get&#40; "ActiveWorkBook"&#41; oSheet &#58;= oExcel&#58;Get&#40; "ActiveSheet" &#41; If oMeter != Nil nCount -= 15 oMeter&#58;Set&#40; nCount &#41; EndIf &#40; &#58;&#58;cAlias &#41;->&#40; Eval&#40; &#58;&#58;bGoTop &#41; &#41; cText &#58;= "" For nRow &#58;= 1 To &#58;&#58;nLen If nRow == 1 If ! Empty&#40; cTitle &#41; oSheet&#58;Cells&#40; nLine++, 1 &#41;&#58;Value &#58;= AllTrim&#40; cTitle &#41; oSheet&#58;Range&#40; "A1&#58;" + Chr&#40; 64 + Len&#40; &#58;&#58;aColumns &#41; &#41; + ; "1" &#41;&#58;Set&#40; "HorizontalAlignment", 7 &#41; ++nLine nStart &#58;= nLine Else nStart &#58;= 1 EndIf For nCol &#58;= 1 To Len&#40; &#58;&#58;aColumns &#41; If &#58;&#58;aColumns&#91; nCol &#93;&#58;lBitMap &#46;or&#46; &#40;nCol=1 &#46;and&#46; !Empty&#40;&#58;&#58;hBmpCursor&#41;&#41; Loop EndIf uData &#58;= If&#40; ValType&#40; &#58;&#58;aColumns&#91; nCol &#93;&#58;cHeading &#41; == "B", ; Eval&#40; &#58;&#58;aColumns&#91; nCol &#93;&#58;cHeading &#41;, ; &#58;&#58;aColumns&#91; nCol &#93;&#58;cHeading &#41; If ValType&#40; uData &#41; != "C" Loop EndIf uData &#58;= StrTran&#40; uData, CRLF, ' ' &#41; // fgondi&#46; Cambio chr&#40;10&#41; por ' ' cText += uData + Chr&#40; 9 &#41; If oMeter != Nil If nCount % nEvery == 0 oMeter&#58;Set&#40; nCount &#41; EndIf nCount ++ EndIf Next cText += Chr&#40; 13 &#41; EndIf For nCol &#58;= 1 To Len&#40; &#58;&#58;aColumns &#41; If &#58;&#58;aColumns&#91; nCol &#93;&#58;lBitMap &#46;or&#46; &#40;nCol=1 &#46;and&#46; !Empty&#40;&#58;&#58;hBmpCursor&#41;&#41; Loop EndIf uData &#58;= Eval&#40; &#58;&#58;aColumns&#91; nCol &#93;&#58;bData &#41; If ValType&#40; uData &#41; == "C" uData &#58;= StrTran&#40; uData, CRLF, ' ' &#41; // fgondi&#46; Cambio chr&#40;10&#41; por ' ' EndIf If &#58;&#58;aColumns&#91; nCol &#93;&#58;cPicture != Nil uData &#58;= Transform&#40; uData, &#58;&#58;aColumns&#91; nCol &#93;&#58;cPicture &#41; EndIf if nRow == 1 &#46;and&#46; ValType&#40; uData &#41;=="C" // fgondi&#46; Formatear las columnas con texto para poder ver textos como '192492456' oRange &#58;= cMakeRange&#40; 2, nCol, 65536, nCol &#41; oRange &#58;= oSheet&#58;Range&#40; oRange &#41; oRange&#58;Set&#40;"NumberFormat", '@' &#41; endif uData &#58;= IIF&#40; ValType&#40; uData &#41;=="D", DtoC&#40; uData &#41;, ; IIF&#40; ValType&#40; uData &#41;=="N", Str&#40; uData &#41; , ; IIF&#40; ValType&#40; uData &#41;=="L", IIF&#40; uData ,"&#46;T&#46;" ,"&#46;F&#46;" &#41;, uData &#41; &#41; &#41; cText+=alltrim&#40; uData &#41; + Chr&#40; 9 &#41; If oMeter != Nil If nCount % nEvery == 0 oMeter&#58;Set&#40; nCount &#41; EndIf nCount ++ EndIf Next &#58;&#58;Skip&#40; 1 &#41; cText += Chr&#40; 13 &#41; ++nLine /* Cada 20k volcamos el texto a la hoja de Excel , usando el portapapeles , algo muy rapido y facil ;-&#41; Every 20k set text into excel sheet , using Clipboard , very easy and faster&#46; */ IF Len&#40; cText &#41; > 20000 oClip &#58;= TClipBoard&#40;&#41;&#58;New&#40;&#41; oClip&#58;Clear&#40;&#41; oClip&#58;SetText&#40; cText &#41; cCell &#58;= "A" + Alltrim&#40; Str&#40; nStart &#41; &#41; oRange &#58;= oSheet&#58;Range&#40; cCell &#41; oRange&#58;Select&#40;&#41; oSheet&#58;Paste&#40;&#41; oClip&#58;End&#40;&#41; cText &#58;= "" nStart &#58;= nLine + 1 EndIf Next If &#58;&#58;lIsDbf &#40; &#58;&#58;cAlias &#41;->&#40; DbGoTo&#40; nRecNo &#41; &#41; EndIf &#58;&#58;nAt &#58;= nAt If Len&#40; cText &#41; > 0 oClip &#58;= TClipBoard&#40;&#41;&#58;New&#40;&#41; oClip&#58;Clear&#40;&#41; oClip&#58;SetText&#40; cText &#41; cCell &#58;= "A" + Alltrim&#40; Str&#40; nStart &#41; &#41; oRange &#58;= oSheet&#58;Range&#40; cCell &#41; oRange&#58;Select&#40;&#41; oSheet&#58;Paste&#40;&#41; oClip&#58;End&#40;&#41; cText &#58;= "" EndIf cRange &#58;= "A3&#58;" + Chr&#40; 64 + Len&#40; &#58;&#58;aColumns &#41; &#41; + ; Alltrim&#40; Str&#40; oSheet&#58;UsedRange&#58;Rows&#58;Count&#40;&#41; &#41; &#41; oRange &#58;= oSheet&#58;Range&#40; cRange &#41; If oFont != Nil // let the programmer to decide the font he wants, otherwise use Excel's default oRange&#58;Font&#58;Name &#58;= oFont&#58;cFaceName oRange&#58;Font&#58;Size &#58;= oFont&#58;nSize&#40;&#41; oRange&#58;Font&#58;Bold &#58;= oFont&#58;lBold EndIf oRange&#58;Borders&#40;&#41;&#58;LineStyle &#58;= 1 oRange&#58;Columns&#58;AutoFit&#40;&#41; If oMeter != Nil oMeter&#58;Set&#40; oMeter&#58;nTotal &#41; EndIf If cXlsFile != Nil &#46;and&#46; lSave oBook&#58;SaveAs&#40; cXlsFile, -4143 &#41; // -4143 = Normal EndIf oSheet&#58;Range&#40; "A1" &#41;&#58;Select&#40;&#41; CursorArrow&#40;&#41; If lActivate oExcel&#58;Visible &#58;= &#46;T&#46; EndIf OleUninitialize&#40;&#41; Return Nil #endif // __OLE__[/code:1tndmye3] [code:1tndmye3]METHOD GoLeft&#40;&#41; CLASS TSBrowse Local nCell, nSkip, ; lLock &#58;= &#58;&#58;nFreeze > 0 &#46;and&#46; &#58;&#58;lLockFreeze, ; lDraw &#58;= &#46;F&#46; &#58;&#58;nOldCell &#58;= &#58;&#58;nCell If &#58;&#58;lIsTxt If &#58;&#58;nOffset > 5 &#58;&#58;nOffset -= 5 Else &#58;&#58;nOffset &#58;= 1 EndIf &#58;&#58;Refresh&#40; &#46;F&#46; &#41; If &#58;&#58;oHScroll != Nil &#58;&#58;oHScroll&#58;SetPos&#40; &#58;&#58;nOffset &#41; EndIf Return Self EndIf &#58;&#58;ResetSeek&#40;&#41; If &#58;&#58;lCellBrw nCell &#58;= &#58;&#58;nCell nSkip &#58;= 0 While nCell > &#40; If&#40; lLock, &#58;&#58;nFreeze + 1, 1 &#41; &#41; nCell -- nSkip ++ If ! &#58;&#58;aColumns&#91; nCell &#93;&#58;lNoHilite Exit EndIf EndDo If nSkip == 0 Return Self EndIf While &#58;&#58;nColPos > &#40; &#58;&#58;nFreeze + 1 &#41; &#46;and&#46; ! &#58;&#58;IsColVisible&#40; nCell &#41; lDraw &#58;= &#46;T&#46; &#58;&#58;nColPos -- EndDo &#58;&#58;nCell &#58;= nCell If lDraw &#58;&#58;Refresh&#40; &#46;F&#46; &#41; EndIf // fgondi&#46; Añadido comprobación &#58;&#58;nCell<=len&#40;&#58;&#58;aColumns&#41; If &#58;&#58;nCell<=len&#40;&#58;&#58;aColumns&#41; &#46;and&#46; &#58;&#58;aColumns&#91; &#58;&#58;nCell &#93;&#58;bGotFocus != Nil &#46;and&#46; &#58;&#58;nOldCell != &#58;&#58;nCell Eval&#40; &#58;&#58;aColumns&#91; &#58;&#58;nCell &#93;&#58;bGotFocus, &#58;&#58;nOldCell, &#58;&#58;nCell, Self &#41; EndIf // fgondi&#46; Añadido comprobación &#58;&#58;nOldCell<=len&#40;&#58;&#58;aColumns&#41; If &#58;&#58;nOldCell<=len&#40;&#58;&#58;aColumns&#41; &#46;and&#46; &#58;&#58;aColumns&#91; &#58;&#58;nOldCell &#93;&#58;bLostFocus != Nil &#46;and&#46;; &#58;&#58;nOldCell != &#58;&#58;nCell Eval&#40; &#58;&#58;aColumns&#91; &#58;&#58;nOldCell &#93;&#58;bLostFocus, &#58;&#58;nCell, &#58;&#58;nOldCell, Self &#41; EndIf If&#40; &#58;&#58;oHScroll != Nil, &#58;&#58;oHScroll&#58;SetPos&#40; &#58;&#58;nCell &#41;, Nil &#41; &#58;&#58;nOldCell &#58;= &#58;&#58;nCell &#58;&#58;HiliteCell&#40; &#58;&#58;nCell &#41; &#58;&#58;DrawSelect&#40;&#41; Else If &#58;&#58;nCell > &#40; &#58;&#58;nFreeze + 1 &#41; &#58;&#58;nColPos &#58;= &#58;&#58;nCell &#58;= &#58;&#58;nFreeze + 1 &#58;&#58;Refresh&#40; &#46;F&#46; &#41; If &#58;&#58;oHScroll != Nil &#58;&#58;oHScroll&#58;GoTop&#40;&#41; EndIf EndIf EndIf Return Self[/code:1tndmye3] [code:1tndmye3]METHOD LDblClick&#40; nRowPix, nColPix, nKeyFlags &#41; CLASS TSBrowse Local uTemp, uVal, nBParam, ; nLines &#58;= &#58;&#58;nRowCount&#40;&#41;, ; nClickRow &#58;= &#58;&#58;GetTxtRow&#40; nRowPix &#41;, ; nCol &#58;= &#58;&#58;nAtCol&#40; nColPix &#41;, ; uPar1 &#58;= nRowPix, ; uPar2 &#58;= nColPix, ; aMoveCell &#58;= &#123; &#123;|| &#58;&#58;GoRight&#40;&#41; &#125;, &#123;|| &#58;&#58;GoDown&#40;&#41; &#125;, ; &#123;|| &#58;&#58;goLeft&#40;&#41; &#125;, &#123;|| &#58;&#58;GoUp&#40;&#41; &#125;, ; &#123;|| &#58;&#58;GoNext&#40;&#41; &#125; &#125;, ; bRecLock &#58;= If&#40; ! Empty&#40; &#58;&#58;bRecLock &#41;, &#58;&#58;bRecLock, ; &#123;|| &#40; &#58;&#58;cAlias &#41;->&#40; RLock&#40;&#41; &#41; &#125; &#41;, ; bAddRec &#58;= If&#40; ! Empty&#40; &#58;&#58;bAddRec &#41;, &#58;&#58;bAddRec, ; &#123;|| &#40; &#58;&#58;cAlias &#41;->&#40; dbAppend&#40;&#41; &#41;, ! NetErr&#40;&#41; &#125; &#41; If &#58;&#58;lDrag Return Super&#58;LDblClick&#40; nRowPix, nColPix, nKeyFlags &#41; EndIf nBParam &#58;= &#58;&#58;aColumns&#91; nCol &#93;&#58;nBParam &#58;&#58;oWnd&#58;nLastKey &#58;= 0 uPar1 &#58;= If&#40; nBParam == 2, TSPoint&#40;&#41;&#58;New&#40; uPar1, uPar2 &#41;, ; If&#40; nBParam == 1, nClickRow, uPar1 &#41; &#41; uPar2 &#58;= If&#40; nBParam == 2, TSPoint&#40;&#41;&#58;New&#40; nClickRow, nCol &#41;, ; If&#40; nBParam == 1, nCol, uPar2 &#41; &#41; If &#40; nClickRow == &#58;&#58;nRowPos &#46;and&#46; nClickRow > 0 &#41; &#46;or&#46; ; &#40; nClickRow == &#58;&#58;nRowPos &#46;and&#46; ! &#58;&#58;lDrawHeaders &#41; If &#58;&#58;lCellBrw &#46;and&#46; &#58;&#58;IsEditable&#40; nCol &#41; If ValType&#40; Eval&#40; &#58;&#58;aColumns&#91; nCol &#93;&#58;bData &#41; &#41; == "L" &#46;and&#46; ; &#58;&#58;aColumns&#91; nCol &#93;&#58;lCheckBox // virtual checkbox &#58;&#58;PostMsg&#40; WM_CHAR, VK_SPACE, 0 &#41; Else &#58;&#58;PostMsg&#40; WM_KEYDOWN, VK_RETURN, 0 &#41; EndIf Return 0 ElseIf &#58;&#58;lCanSelect uVal &#58;= If&#40; &#58;&#58;lIsDbf, &#40; &#58;&#58;cAlias &#41;->&#40; RecNo&#40;&#41; &#41;, &#58;&#58;nAt &#41; If &#40; uTemp &#58;= AScan&#40; &#58;&#58;aSelected, uVal &#41; &#41; > 0 ADel&#40; &#58;&#58;aSelected, uTemp &#41; ASize&#40; &#58;&#58;aSelected, &#40; Len&#40; &#58;&#58;aSelected &#41; - 1 &#41; &#41; &#58;&#58;DrawSelect&#40;&#41; If &#58;&#58;bSelected != Nil Eval&#40; &#58;&#58;bSelected, Self, uVal, &#46;F&#46; &#41; EndIf Else AAdd&#40; &#58;&#58;aSelected, uVal &#41; &#58;&#58;DrawSelect&#40;&#41; If &#58;&#58;bSelected != Nil Eval&#40; &#58;&#58;bSelected, Self, uVal, &#46;T&#46; &#41; EndIf EndIf If &#58;&#58;bLDblClick != Nil Eval&#40; &#58;&#58;bLDblClick, uPar1, uPar2, nKeyFlags &#41; EndIf ElseIf &#58;&#58;bLDblClick != nil Eval&#40; &#58;&#58;bLDblClick, uPar1, uPar2, nKeyFlags &#41; EndIf ElseIf nClickRow == 0 &#46;and&#46; &#58;&#58;lDrawHeaders &#58;&#58;SetOrder&#40; nCol &#41; // fgondi&#46; &#58;&#58;SetOrder&#40; &#58;&#58;nAtCol&#40; nColPix, &#46;T&#46; &#41; &#41; EndIf Return Self[/code:1tndmye3]
tsbrowse 7.1
Hola grupo, Mas cambios en la tsbrowse 7.1 En mis browse's muestro datos mezclados de varias tablas y bChange siempre me ha dado problemas. He incluido 2 datas nuevos para ello, bDrawIni y bDrawFin. [code:2vc6ac00]METHOD DrawLine&#40; xRow &#41; CLASS TSBrowse local&#46;&#46;&#46; //definición de las variables if &#58;&#58;bDrawIni<>NIL Eval&#40; &#58;&#58;bDrawIni, Self &#41; endif &#46;&#46;&#46; if &#58;&#58;bDrawFin<>NIL Eval&#40; &#58;&#58;bDrawFin, Self &#41; endif return self[/code:2vc6ac00] [code:2vc6ac00]METHOD DrawSelect&#40;&#41; CLASS TSBrowse local&#46;&#46;&#46; //definición de las variables if &#58;&#58;bDrawIni<>NIL Eval&#40; &#58;&#58;bDrawIni, Self &#41; endif &#46;&#46;&#46; if &#58;&#58;bDrawFin<>NIL Eval&#40; &#58;&#58;bDrawFin, Self &#41; endif return Self[/code:2vc6ac00] [code:2vc6ac00]METHOD Edit&#40; uVar, nCell, nKey, nKeyFlags, cPicture, bValid, nClrFore, nClrBack &#41; CLASS TSBrowse local&#46;&#46;&#46; //definición de las variables if &#58;&#58;bDrawIni<>NIL Eval&#40; &#58;&#58;bDrawIni, Self &#41; endif &#46;&#46;&#46; if &#58;&#58;bDrawFin<>NIL Eval&#40; &#58;&#58;bDrawFin, Self &#41; endif return 0[/code:2vc6ac00] [code:2vc6ac00]METHOD ExcelOle&#40; cXlsFile, lActivate, oMeter, cTitle, oFont, lSave &#41; CLASS TSBrowse &#46;&#46;&#46; if &#58;&#58;bDrawIni<>NIL Eval&#40; &#58;&#58;bDrawIni, Self &#41; endif uData &#58;= Eval&#40; &#58;&#58;aColumns&#91; nCol &#93;&#58;bData &#41; if &#58;&#58;bDrawFin<>NIL Eval&#40; &#58;&#58;bDrawFin, Self &#41; endif &#46;&#46;&#46;&#46; return nil[/code:2vc6ac00]
tsbrowse 7.1
Hola, serias tan amable de poner el archivo fuente, no pude hacerlo funcionar Gracias por tu acto de buena fe
tsbrowse 7.1
Hola, Aqui tienes toda la tsbrowse 7.1 con los cambios que he realizado. [url:2cl7ucqu]http&#58;//www&#46;ghe-soft&#46;com/fivewin/tsbrowse&#46;rar[/url:2cl7ucqu]
tsbrowse 7.1
Gracias, sabes esta EXCELENTE <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
tsbrowse 7.1
Hola Daniel. de nada y gracias a ti por usarlo.
tsbrowse 7.1
A proposito de tsbrowse. Habeis observado que si se muestra un browse que no está lleno de datos (es decir que todos los registros que hay se muestran en pantalla) al hacer Ctrl+AvPag para ir al final del browse, este se vuelve tarumba? En cambio si hay más registros de los que caben en pantalla, realiza el proceso perfectamente? Habeis encontrado solución para eso? Yo probe a poner : Case GetKeyState( VK_CONTROL ) If nKey == VK_HOME // Ctrl+Home ::GoTop() ::PanHome() ElseIf nKey == VK_END // Ctrl+End If ::lHitBottom ::PanEnd() Else ::GoBottom() ::Reset() EndIf ElseIf nKey == VK_PRIOR // Ctrl+PgUp ::GoTop() ElseIf nKey == VK_NEXT // Ctrl+PgDn ::GoBottom() ::Reset() // Sigev ElseIf nKey == VK_LEFT // Ctrl+Left ::PanLeft() ElseIf nKey == VK_RIGHT // Ctrl+Right ::PanRight() Else Super:KeyDown( nKey, nFlags ) EndIf ... un reset() despues del gobottom y entonces si que pinta, pero el efecto pierde mucho ya que solo muestra en pantalla la última línea. Gracias.
tsbrowse 7.1
Hola Angel, El problema viene porque no dectecta correctamente el final de browse si este no cubre toda la presentación. Tambien se soluciona en la definición de los codeblock ::bGoTop y ::bGoBottom. Que si son definidos si usas oDbf, aArray, TxtFile Yo las asigno valor en el método ResetBarPos() [code:2svk4xtd]&#58;&#58;bGoTop &#58;= &#123;|| &#40; &#58;&#58;cAlias &#41;->&#40; DbGoTop&#40;&#41; &#41; &#125; &#58;&#58;bGoBottom &#58;= &#123;|| &#40; &#58;&#58;cAlias &#41;->&#40; DbGoBottom&#40;&#41; &#41; &#125; [/code:2svk4xtd]
tsbrowse 7.1
Me he bajado la version que tan amablemente posteaste, pero continúa el problema de refresco cuando no hay suficientes registros. Alguien ha resuleto el problema? Saludos.
tsbrowse 7.1
Hola, El refresco en la versión 7.1 cambia a las versiones anteriores Ahora hay que realizar lo siguiente: [code:1aiau5si] oBrw&#58;ResetBarPos&#40;&#41; // Actualiza cuantos registros tienen que mostrar para scroll, ctrl-Inicio, etc oBrw&#58;UpStable&#40;&#41; // Posiciona el puntero al principio y estabiliza el browse con los nuevos datos oBrw&#58;Reset&#40;&#41; // Quita los posibles filtros aplicados y si no tienes inicializa los valores con los nuevos datos oBrw&#58;Refresh&#40;&#41; // Repinta los datos correctamente, porque conoce ya los límites que tienen que alcanzar[/code:1aiau5si]
tsbrowse 7.1
Después de mucho probar y rodar al final he descubierto que cuando el tsbrowse trabaja mal en los repintados es cuando de pocos registros es cuando la base de datos tiene registros borrados (no físicamente, sino marcados). Por lo visto tiene en cuenta estos registros para el cálculo de la posición seleccionada y es cuando se vuelve tarumba. He probado con una base de datos recíén compactada y va perfecto. Alguien sabe como se puede arreglar esto? graciasss
tsbrowse 7.1
Hola FGONDI , he generado el tsbrowse un excelenete trabajo apliado por ti pero al ligar mi aplicacion me marca este error y no le entrado la funcion por ningun rango. saludos. fernando sandoval ruiz
tsbrowse 7.1
Hola tocayo, Esa función aparace en la clase TExcelScript del maestro Vikthor [code:20cebw6v]FUNCTION cMakeRange&#40; nRowIni, nColIni, nRowFin, nColFin &#41; local cRange &#58;= cColumn2Letter&#40;nColIni&#41; + AllTrim&#40;Str&#40;Int&#40;nRowIni&#41;&#41;&#41; if nRowFin != NIL &#46;and&#46; nColFin != NIL cRange += "&#58;" + cColumn2Letter&#40;nColFin&#41; + AllTrim&#40;Str&#40;Int&#40;nRowFin&#41;&#41;&#41; endif RETURN cRange FUNCTION cColumn2Letter&#40; n &#41; local r &#58;= "" if n > 26 r &#58;= Chr&#40; 64 + Int&#40; n / 26 &#41; &#41; n &#58;= n % 26 endif r += Chr&#40; 64 + n &#41; RETURN r[/code:20cebw6v]
tsbrowse 7.1
Gracias, Tocayo, la verdad nunca pense que estubieras en linea, puedo agregar esta funcion al tsbrowse o bien , ligo la aplicacion con TSXLS de victor. gracias.
tsbrowse 7.1
Tengo el siguenete problema en la captura de un renglon de un documento factura, remision, valido si existe el articulo pero el foco no me regresa al tsbrw sino a los controles del dialogo. ADD COLUMN TO BROWSE oHojeador DATA oDbDetCom:NumArt ; HEADER "Artículo" ; PICTURE "@K!" ; WIDTH 100 ; 3DLOOK TRUE ; EDITABLE ; ALIGN DT_LEFT ; MOVE DT_MOVE_NEXT ; VALID { | NumArt | ValArtCap( NumArt , oDbArti , oDbDetCom ) } ; COLORS CLR_HBLUE,CLR_HGRAY y esta es la funcion donde valido el arituculo. *--------------------------------- Static Function ValArtCap(cNumArt , oDbArti , oDbDetCom ) IF ! oDbArti:Seek( cNumArt , .t.) MsgBeep() MsgAlert("El Articulo no Existe "+ cNumArt +" No Exiete en el Catalogo de Articulo") // oHojeador:HiliteCell(1) oHojeador:SetFocus() oHojeador:Refresh() Return(.t.) ENDIF oDbArti:Load() oDbDetCom:NumArt := oDbArti:NumArt oDbDetCom:Nombre := oDbArti:Nombre oDbDetCom:Precio := oDbArti:PreVta oDbDetCom:TASAIVA := oDbArti:TASAIVA oDbDetCom:TASAIEPS := oDbArti:TASAIEPS oDbDetCom:TASACERO := oDbArti:TASACERO oDbDetCom:EXENTO := oDbArti:EXENTO oDbDetCom:Clase := oDbArti:Clase if oDbDetCom:TASAIVA > 0 oDbDetCom:PreBruto := oDbArti:PreVta oDBDetCom:PreBruto := ( oDbArti:PreVta / ( 1 +( oDbDetCom:TasaIva / 100)) ) endif oDbDetCom:Importe := (oDbDetCom:Cantidad * oDbDetCom:Precio) if oDbDetCom:TasaIva > 0 oDbDetCom:ImpIva := ( ( oDbDetCom:PreBruto * oDbDetCom:Cantidad) * ( oDbDetCom:TasaIva / 100)) endif oDbDetCom:Save() RecalComa( oDbDetCom) /*if nPartida > 9 oDbDetCom:gobottom() endif */ oHojeador:SetFocus() oHojeador:Refresh() return(.T.) pero como comento no me regresa el foco al browse sino a los controles del dialogo. gracias y un saludo a todos. fernando sandoval ruiz
tsbrowse 7.1
Hola, En cuanto a agregar la función o toda la clase. Yo tengo toda la clase pero porque uso la clase tExcelScript que es muy buena, pero como mas te guste. En cuanto al posicionameto tras la edición varias preguntas: 1.- Lo has provado sin el valid. No se si el problema de cambio de foco esta en el valid? 2.- Usas Auto-edición? 3.- Has provado con otro "DT_MOVE_" por ejemplo DT_MOVE_RIGHT? 4.- Puedes poner algo de la deficinición del browse y los demas objetos de la ventana?. Enviamelo si quieres por correo o por msn
tsbrowse 7.1
Hola Fernando, Ya he estado echando un vistazo a lo que me mandaste por el msn. El problema es que no tengo mysql. De todas formas prueba lo siguiente: En el recurso define tsbrowse como el primer objeto del tabindex. Ejemplo: si tienes varios get's y el browse. El Browse que tenga el tabindex 1 y los get's a partir del 2 Si tienes varios get's, el browse y botones. El browse que tenga el tabindex 1, los botones a partir del 2 y los get's despues de los botones (así se sigue manteniendo el orden del tabulador "get, get, get, browse, boton) Para que al entrar en al ventana se posicione en el primer get, definelo en el ON INIT del dialgo ( ON INIT oGet:SetFocus() ) Ya hablaremos por el msn
tsbrowse 7.1
Gracias Fer. lo checo y te comento.
tsbrowse 8
De dónde puedo bajarlo y ¿es compatible con fwh7.12? Gracias
tsbrowse 8
Hola Luis: [quote="surGom":2bds91l2]De dónde puedo bajarlo y ¿es compatible con fwh7.12?[/quote:2bds91l2]Mándame un correo para enviarte TSBrowse V.9.0 Beta. Un abrazo.
tsbrowse 8
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> gracias totales
tsbrowse 8
can you send me this beta please silvio dot falconi at gmail dot com thanks
tsbrowse 8
Ola amigos Maestro MMercado poderias enivar ami correo miragerr AT osite DOT com DOT br Salu2
tsbrowse 8
Hallo Manuel, can you it to me also, please sthaupt at uni-kassel dot de
tsbrowse 8
David, Silvio, Jackson, Stefan: Enviado (sent). Un abrazo. Manuel Mercado Gómez.
tsbrowse 8
thanks
tsbrowse 8 y excelole() con numeros decimales
hola: al traspasar una tabla DBF utilizando oBrw:ExcelOle(), la columna que contiene un campo numerico con decimales (con formato 9999.99), queda cargada a la izquierda y no es procesada como campo numerico, hay que cambiar manualmente a 9999,9 para que excel la considere com numerica y puedan hacerse operaciones matematicas con esta columna. la pregunta es ¿ Cómo puedo cambiar el "." por la "," en el METHOD ExcelOle() para que cuando realize el traspaso a una planilla excel quede automaticamente como Numero y sus respectivos decimales?.. pd. los numeros sin decimales actuan en forma normal. desde ya gracias.
tsbrowse 8 y excelole() con numeros decimales
disculpa que browse estas usando ? yo uso xbrowse y el method se llama oBrw:ToExcel()
tsbrowse 8 y excelole() con numeros decimales
perdon Armando, ya mire que usas TSBRW sorry. a mi me paso algo similar, pero con la txbrw y tuve que modificar las class para evitar que suprimiera los decimales.. saludos...
tsbrowse 8 y excelole() con numeros decimales
la idea es modificar algo en el metodo que maneja la sbrowse version 8. creo que esta aqui, lina 3843 de la clase, pero no estoy seguro. If ::aColumns[ nCol ]:cPicture != Nil uData := Transform( uData, ::aColumns[ nCol ]:cPicture ) EndIf uData := IIF( ValType( uData )=="D", DtoC( uData ), ; <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> aqui--> IIF( ValType( uData )=="N", Str( uData ) , ; <-- <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> IIF( ValType( uData )=="L", IIF( uData ,".T." ,".F." ), cValToChar( uData ))) cText += Trim( uData ) + Chr( 9 ) pero no se como realizar el cambio correcto... espero que me ayuden...
tsbrowse 8 y excelole() con numeros decimales
Hola Armando: [quote="armando.lagunas":2dqzdswg]la idea es modificar algo en el metodo que maneja la sbrowse version 8. creo que esta aqui, lina 3843 de la clase, pero no estoy seguro.[/quote:2dqzdswg] No es necesaria ninguna modificación a la Clase, el método ExcelOle admite un parámetro (séptimo) con el que puedes manipular la hoja de excel a tu antojo, dicho parametro es un bloque de código que se evaluará al momento de la creación de la hoja. Aquí te muestro un ejemplo:[code=fw:2dqzdswg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   bExtern := <span style="color: #000000;">&#123;</span>|oSheet| oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NumberFormat"</span>, <span style="color: #ff0000;">"#,##0.00"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Excel"</span> ;<br />          <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">ExcelOle</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, cTitle,,, bExtern <span style="color: #000000;">&#41;</span> ;<br />          ToolTip <span style="color: #ff0000;">"Export Browse to Excel"</span><br /> </div>[/code:2dqzdswg] En el bloque del ejemplo se está asignando el formato numérico que se indica a todas las celdas de la columna 10. Un abrazo.
tsbrowse 8 y excelole() con numeros decimales
Estimado Manuel utilice su sugerencia y resultó bien, pero para una sola columna, la tabla que llevo a excel tiene varias columnas con campos decimales y en diferentes posiciones, dependiendo del resultado obtenido de cálculos matemáticos, que determinan la demanda de un producto "x". solucione el problema insertando una nueva instrucción en la linea 3844 de la clase original del método ExcelOle() en donde reemplazo el "punto" decimal por la "coma" del formato de salida de la columna utilizando la función STRTRAN(). 3842 If ::aColumns[ nCol ]:cPicture != Nil 3843 uData := Transform( uData, ::aColumns[ nCol ]:cPicture ) 3844 uData := Strtran ( uData,".",",") // decimales en excel by Armando Lagunas 3845 EndIf con este cambio, todo funciona muy bien y el formato de salida es el correcto para las columnas que contengan números. gracias a sus comentarios saludos desde Chile.
tsbrowse for xHarbour
Can anyone plz send me TSBROWSE libs for xHarbour ? i think the libs are sbrowse, sbutton.
tsbrowse for xHarbour
Which Version Do you Need You can find Version 6.0 at <!-- w --><a class="postlink" href="http://www.Fivewin.Info">www.Fivewin.Info</a><!-- w --> From there Down Area that has been Compiled to work with xHarbour and the Fivewin Library. There is also a Version 7.0 Version There too. That is set to run with Harbour. Will have to be recomplied to work with xHarbour You made have to recompile the Tsbrowse Library to work with your Version of xHarbour! I don't Know which version you are working with. Thank you Jim Bohanan
tsbrowse metod toExcel (SOLUCIONADO)
[url:3vhhfvy9]https&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=TSBrowse&#46;zip&can=2&q=[/url:3vhhfvy9]
tsbrowse metod toExcel (SOLUCIONADO)
Estimados Alguien tiene la clase tsbrowse en el metodo toexcel sin toleauto, ya que con harbour 3.2 genera error aletorio he pasodo a oExcel := CREATEOBJECT( "Excel.Application" ) pero igual sale error Error description: (DOS Error -2147352562) WINOLE/1007 Error de argumento: SET Args: [ 1] = C HorizontalAlignment [ 2] = N 7 Stack Calls =========== Called from: => TOLEAUTO:SET( 0 ) Called from: ..\Source\Classes\tsbrowse.prg => TSBROWSE:EXCELOLE( 3982 )
tsbrowse metod toExcel (SOLUCIONADO)
gracias, pero utiliza toleauto
tsbrowse metod toExcel (SOLUCIONADO)
Mira se ayuda: [url:wiidyzpa]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=6&t=17247&start=0[/url:wiidyzpa] [url:wiidyzpa]http&#58;//sistemasies&#46;blogspot&#46;com&#46;br/2010/11/novos-metodos-do-tsbrowse&#46;html[/url:wiidyzpa] Salu2
tsbrowse metod toExcel (SOLUCIONADO)
Ejiste un sbexcel.prg en el \samples de TsBrowse?
tsbrowse metod toExcel (SOLUCIONADO)
[code=fw:3rjuemuy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />* TSBrowse testing Excel conections - c:\tsbrowse\samples\TESTXLS.PRG<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"<span style="color: #000000;">\T</span>SBrowse<span style="color: #000000;">\I</span>nclude<span style="color: #000000;">\T</span>SBrowse.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CLR_PINK &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_NBLUE &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">192</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Static</span> oWnd, oBrw<br /><br />Request DBFCDX<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</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;<span style="color: #00C800;">Local</span> oBmp, oBar, oFont, oFont1, oBrush, oCol, cTitle, lGrid<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Employee.cdx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Employee.cdx"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;Use Employee Shared <span style="color: #00C800;">New</span> Via <span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">On</span> First+Last Tag <span style="color: #0000ff;">Name</span><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;">"Arial"</span> <span style="color: #0000ff;">Size</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-13</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Font</span> oFont1 <span style="color: #0000ff;">Name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">Size</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-13</span> NESCAPEMENT <span style="color: #000000;">900</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Brush</span> oBrush <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"CoverBack"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> BitMap oBmp <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Selector"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TSBrowse/Excel conectivity. &nbsp; &nbsp;One Click From TSBrowse To Excel &nbsp; And more..."</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Brush</span> oBrush ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> >= <span style="color: #ff0000;">"7.12"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">ButtonBar</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">Size</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> 3D <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">ButtonBar</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">Size</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> 3D<br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">"Database: "</span> + Trim<span style="color: #000000;">&#40;</span> StrCapFirst<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">".dbf"</span><br /><br />&nbsp; &nbsp;bExtern := <span style="color: #000000;">&#123;</span>|oSheet| oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NumberFormat"</span>, <span style="color: #ff0000;">"#,##0.00"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Excel"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">ExcelOle</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, cTitle,,, bExtern <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Export Browse to Excel"</span><br /><br />&nbsp; &nbsp;lGrid &nbsp; := .T.<br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Print"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span> cTitle,,,,,,,, lGrid <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Export Browse to Excel"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Exit"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Exit"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">0</span> Browse oBrw <span style="color: #0000ff;">Alias</span> <span style="color: #ff0000;">"Employee"</span> <span style="color: #0000ff;">Of</span> oWnd <span style="color: #0000ff;">Size</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> <span style="color: #0000ff;">Pixel</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Font</span> oFont <span style="color: #0000ff;">AutoCols</span> Transparent Selector oBmp Editable<br /><br />&nbsp; &nbsp;Add <span style="color: #00C800;">Super</span> Header <span style="color: #0000ff;">To</span> oBrw <span style="color: #0000ff;">From</span> Column <span style="color: #000000;">2</span> <span style="color: #0000ff;">To</span> Column <span style="color: #000000;">3</span> <span style="color: #0000ff;">Color</span> CLR_BLUE, <span style="color: #000000;">&#123;</span> CLR_NBLUE, CLR_WHITE <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Name"</span> 3DLook<br /><br />&nbsp; &nbsp;Add <span style="color: #00C800;">Super</span> Header <span style="color: #0000ff;">To</span> oBrw <span style="color: #0000ff;">FROM</span> Column <span style="color: #000000;">4</span> <span style="color: #0000ff;">TO</span> Column <span style="color: #000000;">6</span> <span style="color: #0000ff;">Color</span> CLR_BLUE, <span style="color: #000000;">&#123;</span> CLR_NBLUE, CLR_WHITE <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Address"</span> 3DLook<br /><br />&nbsp; &nbsp;With Object oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeightCell</span> += <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeightHead</span> += <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeightSuper</span> += <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> CLR_HEADF, CLR_HEADB, CLR_FOCUSF, CLR_FOCUSB <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> CLR_BLUE, <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_NBLUE, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CLR_BLACK, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">ChangeFont</span><span style="color: #000000;">&#40;</span> oFont1, <span style="color: #000000;">9</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHAlign</span> := DT_VERT<br />&nbsp; &nbsp;End With<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> >= <span style="color: #ff0000;">"7.12"</span><br />&nbsp; &nbsp; &nbsp; Set <span style="color: #0000ff;">Message</span> <span style="color: #0000ff;">Of</span> oWnd Clock Date Keyboard Noinset <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; SET <span style="color: #0000ff;">Message</span> <span style="color: #0000ff;">Of</span> oWnd Clock Date Keyboard Noinset<br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Window</span> oWnd <span style="color: #0000ff;">Maximized</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DbCloseAll<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 /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> >= <span style="color: #ff0000;">"7.12"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> oMenu<br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> oMenu<br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"TSBrowse"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Excel"</span> <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Excel16"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">ExcelOle</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, <span style="color: #ff0000;">"Here you are"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Exit16"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Action</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Exit"</span> <span style="color: #0000ff;">Action</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Help"</span> <span style="color: #0000ff;">Action</span> WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Start ..<span style="color: #000000;">\d</span>oc<span style="color: #000000;">\H</span>elp.htm"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">Return</span> oMenu<br />&nbsp;</div>[/code:3rjuemuy]
tsbrowse metod toExcel (SOLUCIONADO)
Estimados muchas gracias por sus comentarios el problema que a mi me funciona bien pero en mis clientes casca, bueno echando un vistacito la foro encontre la solucion 1.-cambiar toleauto por createobject oExcel := CREATEOBJECT( "Excel.Application" ) 2.- cambiar esta lineas oSheet:Range( "A1:" + cLet + "1" ):Set( "HorizontalAlignment", xlHAlignCenterAcrossSelection ) por oSheet:Range( "A1:" + cLet + "1" ):HorizontalAlignment := xlHAlignCenterAcrossSelection hasta ahora no ha habido quejas,, gracias
tsbrowse para fhw 2304
Buenas tardes Por favor si me pueden ayudar con la lib de tsbrowse para harbour de fhw 2304 me he descarado del github de fivetech pero me da los siguientes errores. Error: Unresolved external '_hb_vmProcessSymbolsEx' referenced from C:\FWH2304\LIB\SBROWSEH.LIB|TSBROWSE Error: Unresolved external '_HB_FUN_OLEUNINITIALIZE' referenced from C:\FWH2304\LIB\SBROWSEH.LIB|TSBROWSE Error: Unresolved external '_HB_FUN_CALLDLL' referenced from C:\FWH2304\LIB\SBROWSEH.LIB|TSBROWSE Muchas gracias.
tsbrowse para fhw 2304
Buenos días. Las Libs son para harbour quiza alguna guia de que debo hacer Gracias
tsbrowse para fhw 2304
indicame donde te envío la tsbrowse compilada por fa.
tsbrowse para fhw 2304
Carlos muchas gracias Por favor enviame a <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Saludos
tsbrowse reciente
Hola buenas tardes, podríais facilitarme el acceso al nuevo Tsbrowse de Manuel Mercado, tengo el fwh 9.11. Gracias. Un saludo. Roberto S.
tsbrowse reciente
Roberto, Aqui está: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=17206&p=89953&hilit=tsbrowse+manuel#p89389">viewtopic.php?f=6&t=17206&p=89953&hilit=tsbrowse+manuel#p89389</a><!-- l -->
tsbrowse y arrays
Estoy utilizando esta clase en un programa con motor MySql. He creado una rutina para que el usuario digite una sentecia sql y obtenga el resultado en este browse. El resultado del recordset lo levanto en un array. El problema que me surge es que no conozco de antemano la cantidad de columnas que tendrá. Es decir no puedo usar el comando "Add column browse array element ....". Alguien conoce la manera de mostrar un array de columnas variables en esta clase. Desde ya muchas gracias.
tsbrowse y arrays
Hola Horacio: [quote="horacio":1z4lh82q]Estoy utilizando esta clase en un programa con motor MySql. He creado una rutina para que el usuario digite una sentecia sql y obtenga el resultado en este browse. El resultado del recordset lo levanto en un array. El problema que me surge es que no conozco de antemano la cantidad de columnas que tendrá. Es decir no puedo usar el comando "Add column browse array element ....". Alguien conoce la manera de mostrar un array de columnas variables en esta clase. Desde ya muchas gracias.[/quote:1z4lh82q]Dime tu email o mándame un correo para enviarte TSBrowse V.0.9 Beta que ya procesa recordsets directamente y también crea las columnas automáticamente para arrays, recordsets y bases de datos. Un abrazo.
tsbrowse y arrays
Mestro Manuel, Abusando de tu gran bondad puedo pedirte me envíes la última versión de tus maravillas Clases TSBrowse y TSButton ? Gracias por tu generosidad. Un abrazo, Carlos Gallego <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
tsbrowse y arrays
Gracias manuel por responder, mi mail es <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->.
tsbrowse y arrays
Gracias manuel, estuve probando y me encuentro con el inconveniente que el método bitmap : LoadFromString no lo tengo en la versión que trabajo, fwh 7.12. Hay alguna manera de suplir este método. De todas maneras comentariando el mismo funciona. Pero me gustaría poder usar el selector por defecto.
tsbrowse y arrays
Hola Horacio: [quote="horacio":1p4iuaec]Gracias manuel, estuve probando y me encuentro con el inconveniente que el método bitmap : LoadFromString no lo tengo en la versión que trabajo, fwh 7.12. Hay alguna manera de suplir este método. De todas maneras comentariando el mismo funciona. Pero me gustaría poder usar el selector por defecto.[/quote:1p4iuaec] Revisa tu correo. Un abrazo.
tsbrowse y arrays
Manuel, muchísimas gracias. Funciona perfectamente