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://forums.fivetechsupport.com/viewtopic.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;">(</span> HDC, LPRECT, HPEN, HPEN, int, BOOL <span style="color: #000000;">)</span> ;<br />void cDrawCursor<span style="color: #000000;">(</span> HWND, LPRECT, long, COLORREF <span style="color: #000000;">)</span> ;<br />void DrawCheck<span style="color: #000000;">(</span> HDC, LPRECT, HPEN, int, BOOL <span style="color: #000000;">)</span> ;<br />DWORD GetTextExtent<span style="color: #000000;">(</span> HDC, LPCSTR, int <span style="color: #000000;">)</span> ;<br />extern void DrawBitmap<span style="color: #000000;">(</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth, WORD wHeight, DWORD dwRaster <span style="color: #000000;">)</span> ;<br />extern void DrawMasked<span style="color: #000000;">(</span> HDC hdc, HBITMAP hbm, WORD y, WORD x <span style="color: #000000;">)</span> ;<br />extern void MaskRegion<span style="color: #000000;">(</span> HDC hDC, RECT * rct, COLORREF cTransparent, COLORREF cBackground <span style="color: #000000;">)</span> ;<br /><span style="color: #00C800;">static</span> void GoToPoint<span style="color: #000000;">(</span> HDC, int, int <span style="color: #000000;">)</span> ;<br /><span style="color: #00C800;">static</span> void DegradColor<span style="color: #000000;">(</span> HDC, RECT *, COLORREF, signed long <span style="color: #000000;">)</span> ;<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br />CLIPPER TSDrawCell<span style="color: #000000;">(</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span>HWND<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> HDC hDC = <span style="color: #000000;">(</span>HDC<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> int nRow = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /> int nColumn = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> ;<br /> int nWidth = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> ;<br /> LPSTR cData = <span style="color: #000000;">(</span>LPSTR<span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ;<br /> int nLen = hb_parclen<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ;<br /> DWORD nAlign = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span> ;<br /> COLORREF clrFore = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> ;<br /> COLORREF clrBack = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> ;<br /> HFONT hFont = <span style="color: #000000;">(</span>HFONT<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> ;<br /> HBITMAP hBitMap = <span style="color: #000000;">(</span>HBITMAP<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">11</span> <span style="color: #000000;">)</span> ;<br /> int nHeightCell = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">12</span> <span style="color: #000000;">)</span> ;<br /> BOOL b3DLook = hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">13</span> <span style="color: #000000;">)</span> ;<br /> int nLineStyle = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">14</span> <span style="color: #000000;">)</span> ;<br /> COLORREF clrLine = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span> ;<br /> int nHeadFoot = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">16</span> <span style="color: #000000;">)</span> ;<br /> int nHeightHead = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">17</span> <span style="color: #000000;">)</span> ;<br /> int nHeightFoot = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">18</span> <span style="color: #000000;">)</span> ;<br /> int nHeightSuper = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">19</span> <span style="color: #000000;">)</span> ;<br /> BOOL bAdjBmp = hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> ;<br /> BOOL bMultiLine = hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">21</span> <span style="color: #000000;">)</span> ;<br /> int nVAlign = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">22</span> <span style="color: #000000;">)</span> ;<br /> int nVertText = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">23</span> <span style="color: #000000;">)</span> ;<br /> COLORREF clrTo = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">24</span> <span style="color: #000000;">)</span> ;<br /> BOOL bOpaque = hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">25</span> <span style="color: #000000;">)</span> ;<br /> HBRUSH wBrush = <span style="color: #000000;">(</span>HBRUSH<span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">26</span> <span style="color: #000000;">)</span> ;<br /> BOOL b3DInv = <span style="color: #000000;">(</span> HB_ISLOG<span style="color: #000000;">(</span> <span style="color: #000000;">27</span> <span style="color: #000000;">)</span> ? ! hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">27</span> <span style="color: #000000;">)</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL b3D = <span style="color: #000000;">(</span> HB_ISLOG<span style="color: #000000;">(</span> <span style="color: #000000;">27</span> <span style="color: #000000;">)</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> COLORREF nClr3DL = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">28</span> <span style="color: #000000;">)</span> ;<br /> COLORREF nClr3DS = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">29</span> <span style="color: #000000;">)</span> ;<br /> long lCursor = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">30</span> <span style="color: #000000;">)</span> ;<br /><br /> int ixLayOut = HIWORD<span style="color: #000000;">(</span> nAlign <span style="color: #000000;">)</span> ;<br /> int iAlign = LOWORD<span style="color: #000000;">(</span> nAlign <span style="color: #000000;">)</span> ;<br /> int iTxtW = LOWORD<span style="color: #000000;">(</span> GetTextExtent<span style="color: #000000;">(</span> hDC, cData, nLen <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> BOOL bGrid = <span style="color: #000000;">(</span> nLineStyle > <span style="color: #000000;">0</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bHeader = <span style="color: #000000;">(</span> nHeadFoot == <span style="color: #000000;">1</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bFooter = <span style="color: #000000;">(</span> nHeadFoot == <span style="color: #000000;">2</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bSuper = <span style="color: #000000;">(</span> nHeadFoot == <span style="color: #000000;">3</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bChecked = <span style="color: #000000;">(</span> nVertText == <span style="color: #000000;">3</span> ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bBrush = <span style="color: #000000;">(</span> wBrush ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> BOOL bDegrad = <span style="color: #000000;">(</span> bBrush || clrTo == clrBack ? <span style="color: #00C800;">FALSE</span> : <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">)</span> ;<br /> HFONT hOldFont ;<br /> BOOL bDestroyDC = <span style="color: #00C800;">FALSE</span> ;<br /> HPEN hGrayPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, clrLine <span style="color: #000000;">)</span>;<br /> HPEN hWhitePen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">(</span> ! hDC <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> bDestroyDC = <span style="color: #00C800;">TRUE</span> ;<br /> hDC = GetDC<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> hOldFont = SelectObject<span style="color: #000000;">(</span> hDC, hFont <span style="color: #000000;">)</span> ;<br /><br /> GetClientRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</span> ;<br /> SetTextColor<span style="color: #000000;">(</span> hDC, clrFore <span style="color: #000000;">)</span> ;<br /> SetBkColor<span style="color: #000000;">(</span> hDC, clrBack <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> nRow == <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> rct.top = <span style="color: #000000;">(</span> bHeader ? nHeightSuper - <span style="color: #000000;">(</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">else</span><br /> rct.top = <span style="color: #000000;">(</span> bFooter ? rct.bottom - nHeightFoot + <span style="color: #000000;">1</span> : <span style="color: #000000;">nHeightHead</span> + nHeightSuper - <span style="color: #000000;">(</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> +<br /> <span style="color: #000000;">(</span> nHeightCell * <span style="color: #000000;">(</span> nRow - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> rct.bottom = rct.top + <span style="color: #000000;">(</span> bHeader ? nHeightHead :<span style="color: #000000;"><span style="color: #000000;">(</span></span> bSuper ? nHeightSuper : <span style="color: #000000;">nHeightCell</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> nColumn - <span style="color: #000000;">(</span> rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span> <span style="color: #000000;">)</span> <= <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</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;">(</span> <span style="color: #000000;">(</span> nWidth >= <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> && <span style="color: #000000;">(</span><span style="color: #000000;">(</span>rct.<span style="color: #0000ff;">left</span> + nWidth - rct.<span style="color: #0000ff;">right</span><span style="color: #000000;">)</span> <= <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">(</span> ! bDegrad <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> rct.bottom += <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">0</span> : <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> ! bBrush <span style="color: #000000;">)</span><br /> ExtTextOut<span style="color: #000000;">(</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;">)</span> ;<br /> <span style="color: #00C800;">else</span><br /> FillRect<span style="color: #000000;">(</span> hDC, &rct, wBrush <span style="color: #000000;">)</span> ;<br /><br /> rct.bottom -= <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">0</span> : <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">1</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> DegradColor<span style="color: #000000;">(</span> hDC, &rct, clrBack, clrTo <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hBitMap <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! bAdjBmp <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> GetObject<span style="color: #000000;">(</span> hBitMap, sizeof<span style="color: #000000;">(</span> BITMAP <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> &bm <span style="color: #000000;">)</span> ;<br /> nTop = rct.top + <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> rct.bottom - rct.top + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">(</span> bm.bmHeight / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">switch</span><span style="color: #000000;">(</span> ixLayOut <span style="color: #000000;">)</span> <span style="color: #B900B9;">// bitmap layout x coordinate</span><br /> <span style="color: #000000;">{</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;">(</span> <span style="color: #000000;">(</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;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> -<br /> <span style="color: #000000;">(</span> bm.bmWidth / <span style="color: #000000;">2</span> <span style="color: #000000;">)</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;">(</span> bm.bmWidth + <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> rct.<span style="color: #0000ff;">left</span>, rct.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">(</span> <span style="color: #000000;">(</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;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> -<br /> <span style="color: #000000;">(</span> iTxtW / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - bm.bmWidth - <span style="color: #000000;">2</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">(</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;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">(</span> iTxtW / <span style="color: #000000;">2</span> <span style="color: #000000;">)</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;">}</span><br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> nTop = rct.top ;<br /> nLeft = rct.<span style="color: #0000ff;">left</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> b3DLook <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bAdjBmp <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> nTop = rct.top + <span style="color: #000000;">1</span> ;<br /> DrawBitmap<span style="color: #000000;">(</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;">)</span> ;<br /> hBitMap = <span style="color: #000000;">0</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! bOpaque <span style="color: #000000;">)</span><br /> MaskRegion<span style="color: #000000;">(</span> hDC, &rct, GetPixel<span style="color: #000000;">(</span> hDC, nLeft, nTop <span style="color: #000000;">)</span>, GetBkColor<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bOpaque <span style="color: #000000;">)</span><br /> DrawBitmap<span style="color: #000000;">(</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;">)</span> ;<br /> <span style="color: #00C800;">else</span><br /> DrawMasked<span style="color: #000000;">(</span> hDC, hBitMap, nTop, nLeft <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bAdjBmp<span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> DrawBitmap<span style="color: #000000;">(</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;">)</span> ;<br /> hBitMap = <span style="color: #000000;">0</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! bOpaque <span style="color: #000000;">)</span><br /> MaskRegion<span style="color: #000000;">(</span> hDC, &rct, GetPixel<span style="color: #000000;">(</span> hDC, nLeft, nTop <span style="color: #000000;">)</span>, GetBkColor<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bOpaque <span style="color: #000000;">)</span><br /> DrawBitmap<span style="color: #000000;">(</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;">)</span> ;<br /> <span style="color: #00C800;">else</span><br /> DrawMasked<span style="color: #000000;">(</span> hDC, hBitMap, nTop, nLeft <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> nLen <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iAlign == DT_LEFT <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">(</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">(</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;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iAlign == DT_RIGHT <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">(</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">(</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;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> nVertText == <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> rct.<span style="color: #0000ff;">right</span> += <span style="color: #000000;">(</span> <span style="color: #000000;">4</span> * nLen <span style="color: #000000;">)</span> ;<br /> rct.bottom += <span style="color: #000000;">10</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> iFlags = iAlign | DT_NOPREFIX | nVAlign * <span style="color: #000000;">4</span> | <span style="color: #000000;">(</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;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nVertText == <span style="color: #000000;">3</span> || nVertText == <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DrawCheck<span style="color: #000000;">(</span> hDC, &rct, hWhitePen, iAlign, bChecked <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> nBkOld = SetBkMode<span style="color: #000000;">(</span> hDC, TRANSPARENT <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> b3D <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</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;">(</span> hDC, b3DInv ? nClr3DS : <span style="color: #000000;">nClr3DL</span> <span style="color: #000000;">)</span> ;<br /> DrawTextEx<span style="color: #000000;">(</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</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;">(</span> hDC, b3DInv ? nClr3DL : <span style="color: #000000;">nClr3DS</span> <span style="color: #000000;">)</span> ;<br /> DrawTextEx<span style="color: #000000;">(</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</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;">(</span> hDC, clrFore <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> DrawTextEx<span style="color: #000000;">(</span> hDC, cData, nLen, &rct, iFlags, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span> ;<br /> SetBkMode<span style="color: #000000;">(</span> hDC, nBkOld <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iAlign == DT_LEFT <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">(</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">(</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;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iAlign == DT_RIGHT <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">right</span> += <span style="color: #000000;">(</span> <span style="color: #000000;">2</span> + <span style="color: #000000;">(</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;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> nVertText == <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> rct.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">(</span> <span style="color: #000000;">4</span> * nLen <span style="color: #000000;">)</span> ;<br /> rct.bottom -= <span style="color: #000000;">10</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> b3DLook <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> bHeader = <span style="color: #000000;">(</span> bSuper ? bSuper : <span style="color: #000000;">bHeader</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nWidth != <span style="color: #000000;">-2</span> <span style="color: #000000;">)</span> && bGrid <span style="color: #000000;">)</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;">(</span> hDC, &rct, hWhitePen, hGrayPen, b3DLook ? <span style="color: #000000;">4</span> : <span style="color: #000000;">nLineStyle</span>, bHeader <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lCursor <span style="color: #000000;">)</span><br /> cDrawCursor<span style="color: #000000;">(</span> hWnd, &rct, lCursor, clrFore <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> bHeader = <span style="color: #000000;">(</span> bFooter ? bFooter : <span style="color: #000000;"><span style="color: #000000;">(</span></span> bHeader || bSuper <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nWidth != <span style="color: #000000;">-2</span> <span style="color: #000000;">)</span> && bGrid <span style="color: #000000;">)</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;">(</span> hDC, &rct, hGrayPen, hGrayPen, nLineStyle, bHeader <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lCursor <span style="color: #000000;">)</span><br /> cDrawCursor<span style="color: #000000;">(</span> hWnd, &rct, lCursor, clrFore <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> <span style="color: #000000;">}</span><br /><br /> DeleteObject<span style="color: #000000;">(</span> hGrayPen <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hWhitePen <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldFont <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bDestroyDC <span style="color: #000000;">)</span><br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</span><br /><br />void WndBoxDraw<span style="color: #000000;">(</span> HDC hDC, RECT * rct, HPEN hPUpLeft, HPEN hPBotRit, int nLineStyle, \<br /> BOOL bHeader <span style="color: #000000;">)</span><br /><br /><span style="color: #000000;">{</span><br /> HPEN hOldPen = SelectObject<span style="color: #000000;">(</span> hDC, hPUpLeft <span style="color: #000000;">)</span> ;<br /> HPEN hBlack = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">switch</span><span style="color: #000000;">(</span> nLineStyle <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</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;">(</span> hDC, hPBotRit <span style="color: #000000;">)</span> ;<br /> GoToPoint<span style="color: #000000;">(</span> hDC, rct->left, rct->bottom - <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom - <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bHeader <span style="color: #000000;">)</span><br /> LineTo<span style="color: #000000;">(</span> hDC, rct->left - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> hDC, hPBotRit <span style="color: #000000;">)</span> ;<br /> GoToPoint<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> hDC, hPBotRit <span style="color: #000000;">)</span> ;<br /> GoToPoint<span style="color: #000000;">(</span> hDC, rct->left, rct->bottom <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right, rct->bottom <span style="color: #000000;">)</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;">(</span> hDC, hPUpLeft <span style="color: #000000;">)</span> ;<br /> GoToPoint<span style="color: #000000;">(</span> hDC, rct->left, rct->bottom <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->left, rct->top <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right , rct->top <span style="color: #000000;">)</span> ;<br /> SelectObject<span style="color: #000000;">(</span> hDC, hPBotRit <span style="color: #000000;">)</span> ;<br /> GoToPoint<span style="color: #000000;">(</span> hDC, rct->left, rct->bottom - <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->bottom - <span style="color: #000000;">(</span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</span> hDC, rct->right - <span style="color: #000000;">1</span>, rct->top - <span style="color: #000000;">1</span> <span style="color: #000000;">)</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;">(</span> hDC, rct <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">break</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldPen <span style="color: #000000;">)</span>;<br /> DeleteObject<span style="color: #000000;">(</span> hBlack <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER TSBrwScrol<span style="color: #000000;">(</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span>HWND<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> int iRows = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> HFONT hFont = <span style="color: #000000;">(</span>HFONT<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /> int nHeightCell = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> ;<br /> int nHeightHead = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> ;<br /> int nHeightFoot = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ;<br /> int nHeightSuper = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span> ;<br /><br /> HFONT hOldFont ;<br /> HDC hDC = GetDC<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span> ;<br /> RECT rct;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> hOldFont = SelectObject<span style="color: #000000;">(</span> hDC, hFont <span style="color: #000000;">)</span> ;<br /><br /> GetClientRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</span> ;<br /><br /> rct.top += <span style="color: #000000;">(</span> nHeightHead + nHeightSuper - <span style="color: #000000;">(</span> nHeightSuper ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">(</span> rct.bottom - rct.top + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> % nHeightCell <span style="color: #000000;">)</span>; <span style="color: #B900B9;">// exclude unused portion at bottom</span><br /> ScrollWindowEx<span style="color: #000000;">(</span> hWnd, <span style="color: #000000;">0</span>, <span style="color: #000000;">(</span>int<span style="color: #000000;">)</span> -<span style="color: #000000;">(</span> nHeightCell * iRows <span style="color: #000000;">)</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;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldFont <span style="color: #000000;">)</span>;<br /><br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER TSBrwHScro<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ll( hWnd, nCols, nLeft, nRight )</span><br />#else<br /> HARBOUR HB_FUN_TSBRWHSCROLL<span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span>HWND<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> WORD wCols = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> int nLeft = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /> int nRight = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> ;<br /><br /> HDC hDC = GetDC<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span> ;<br /> RECT rct;<br /><br /> GetClientRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nLeft <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">left</span> = nLeft ;<br /><br /> <span style="color: #00C800;">if</span> <span style="color: #000000;">(</span> nRight <span style="color: #000000;">)</span><br /> rct.<span style="color: #0000ff;">right</span> = nRight ;<br /><br /> ScrollWindowEx<span style="color: #000000;">(</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;">)</span> ;<br /><br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER RowFromPix<span style="color: #000000;">(</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> int iPixR = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> int iCell = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /> int iHead = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> ;<br /> int iFoot = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> ;<br /> int iSupH = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ;<br /><br /> RECT rct ;<br /> int iRow ;<br /><br /> GetClientRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iPixR <= <span style="color: #000000;">(</span> rct.top + iHead + iSupH <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">(</span> iPixR >= <span style="color: #000000;">(</span> rct.bottom - iFoot <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> iRow = <span style="color: #000000;">-1</span> ;<br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> rct.top += <span style="color: #000000;">(</span> iHead + iSupH <span style="color: #000000;">)</span> ;<br /> iRow = <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> iPixR - rct.top <span style="color: #000000;">)</span> / iCell <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> hb_retni<span style="color: #000000;">(</span> iRow <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER SBGetHeigh<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// t( hWnd, hFont, nTotal )</span><br />#else<br /> HARBOUR HB_FUN_SBGETHEIGHT<span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span>HWND<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> HFONT hFont = <span style="color: #000000;">(</span>HFONT<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> int iTotal = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /><br /> TEXTMETRIC tm ;<br /><br /> RECT rct ;<br /> HDC hDC = GetDC<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span> ;<br /> HFONT hOldFont ;<br /> LONG lTotHeight, lReturn ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> iTotal < <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> hOldFont = SelectObject<span style="color: #000000;">(</span> hDC, hFont <span style="color: #000000;">)</span> ;<br /> GetTextMetrics<span style="color: #000000;">(</span> hDC, &tm <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldFont <span style="color: #000000;">)</span> ;<br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span> ;<br /> lReturn = <span style="color: #000000;">(</span> iTotal == <span style="color: #000000;">1</span> ? tm.tmAveCharWidth : <span style="color: #000000;">tm</span>.tmHeight <span style="color: #000000;">)</span> ;<br /> hb_retnl<span style="color: #000000;">(</span> lReturn <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> GetWindowRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</span> ;<br /> lTotHeight = rct.bottom - rct.top + <span style="color: #000000;">1</span> ;<br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span> ;<br /> hb_retnl<span style="color: #000000;">(</span> lTotHeight <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER CountRows<span style="color: #000000;">(</span> <span style="color: #000000;">)</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;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> int iCell = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> ;<br /> int iHead = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> ;<br /> int iFoot = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> ;<br /> int iSupH = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> ;<br /><br /> RECT rct ;<br /> int iRows, iFree ;<br /><br /> GetClientRect<span style="color: #000000;">(</span> hWnd, &rct <span style="color: #000000;">)</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;">(</span> iRows <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER SBmpHeight<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#else<br /> HARBOUR HB_FUN_SBMPHEIGHT<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HBITMAP hBmp = <span style="color: #000000;">(</span>HBITMAP<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> BITMAP bm ;<br /><br /> GetObject<span style="color: #000000;">(</span> hBmp, sizeof<span style="color: #000000;">(</span> BITMAP <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> &bm <span style="color: #000000;">)</span> ;<br /><br /> hb_retni<span style="color: #000000;">(</span> bm.bmHeight <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER SBmpWidth<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ( hBmp )</span><br />#else<br /> HARBOUR HB_FUN_SBMPWIDTH<span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> HBITMAP hBmp = <span style="color: #000000;">(</span>HBITMAP<span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> BITMAP bm ;<br /><br /> GetObject<span style="color: #000000;">(</span> hBmp, sizeof<span style="color: #000000;">(</span> BITMAP <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> &bm <span style="color: #000000;">)</span> ;<br /><br /> hb_retni<span style="color: #000000;">(</span> bm.bmWidth <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />void DrawCheck<span style="color: #000000;">(</span> HDC hDC, LPRECT rct, HPEN hWhitePen, int nAlign, BOOL bChecked <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> RECT lrct ;<br /> HPEN hOldPen ;<br /> HBRUSH hOldBrush ;<br /><br /> HBRUSH hGrayBrush = CreateSolidBrush<span style="color: #000000;">(</span> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> HBRUSH hWhiteBrush = CreateSolidBrush<span style="color: #000000;">(</span> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> HPEN hBlackPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> HPEN hLGrayPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> HPEN hGrayPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><br /> hOldBrush = SelectObject<span style="color: #000000;">(</span> hDC, hGrayBrush <span style="color: #000000;">)</span> ;<br /><br /> lrct.top = rct->top + <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> rct->bottom - rct->top + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">8</span> <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">switch</span><span style="color: #000000;">(</span> nAlign <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</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;">(</span> <span style="color: #000000;">(</span> rct->right - rct->left + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</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;">}</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;">(</span> hDC, hBlackPen <span style="color: #000000;">)</span> ;<br /> Rectangle<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">)</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;">(</span> hDC, &lrct, hGrayBrush <span style="color: #000000;">)</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;">(</span> hDC, &lrct, hWhiteBrush <span style="color: #000000;">)</span> ;<br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldBrush <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hGrayBrush <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hWhiteBrush <span style="color: #000000;">)</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;">(</span> hDC, hGrayPen <span style="color: #000000;">)</span> ;<br /> Rectangle<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">)</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;">(</span> hDC, hBlackPen <span style="color: #000000;">)</span> ;<br /> Rectangle<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">)</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;">(</span> hDC, hWhitePen <span style="color: #000000;">)</span> ;<br /> Rectangle<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">left</span>, lrct.top, lrct.<span style="color: #0000ff;">right</span>, lrct.bottom <span style="color: #000000;">)</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;">(</span> bChecked <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> GoToPoint<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top <span style="color: #000000;">)</span> ;<br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hBlackPen <span style="color: #000000;">)</span> ;<br /><br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /><br /> GoToPoint<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top + <span style="color: #000000;">1</span><span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /><br /> GoToPoint<span style="color: #000000;">(</span> hDC, lrct.<span style="color: #0000ff;">right</span>, lrct.top + <span style="color: #000000;">2</span><span style="color: #000000;">)</span> ;<br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /> LineTo<span style="color: #000000;">(</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;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldPen <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hGrayPen <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hLGrayPen <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hBlackPen <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void GoToPoint<span style="color: #000000;">(</span> HDC hDC, int ix, int iy <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> POINT <span style="color: #0000ff;">pt</span>;<br /><br /> #ifdef __FLAT__<br /> MoveToEx<span style="color: #000000;">(</span> hDC, ix, iy, &pt <span style="color: #000000;">)</span> ;<br /> #else<br /> MoveTo<span style="color: #000000;">(</span> hDC, ix, iy <span style="color: #000000;">)</span>;<br /> #endif<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void DegradColor<span style="color: #000000;">(</span> HDC hDC, RECT * rori, COLORREF cFrom, signed long cTo <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</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;">(</span> ! bHoriz ? <span style="color: #000000;">(</span> rori->bottom + <span style="color: #000000;">2</span> - rori->top <span style="color: #000000;">)</span> : <span style="color: #000000;"><span style="color: #000000;">(</span></span> rori->right + <span style="color: #000000;">2</span> - rori->left <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">(</span> cFrom <span style="color: #000000;">)</span> ;<br /> clr1g = GetGValue<span style="color: #000000;">(</span> cFrom <span style="color: #000000;">)</span> ;<br /> clr1b = GetBValue<span style="color: #000000;">(</span> cFrom <span style="color: #000000;">)</span> ;<br /><br /> cTo = <span style="color: #000000;">(</span> cTo < <span style="color: #000000;">0</span> ? -cTo : <span style="color: #000000;">cTo</span> <span style="color: #000000;">)</span> ;<br /> clr2r = GetRValue<span style="color: #000000;">(</span> cTo <span style="color: #000000;">)</span> ;<br /> clr2g = GetGValue<span style="color: #000000;">(</span> cTo <span style="color: #000000;">)</span> ;<br /> clr2b = GetBValue<span style="color: #000000;">(</span> cTo <span style="color: #000000;">)</span> ;<br /><br /> iRed = clr2r - clr1r ;<br /> iGreen = clr2g - clr1g ;<br /> iBlue = clr2b - clr1b ;<br /><br /> iRed = <span style="color: #000000;">(</span> iRed / iTot <span style="color: #000000;">)</span> ;<br /> iGreen = <span style="color: #000000;">(</span> iGreen / iTot <span style="color: #000000;">)</span> ;<br /> iBlue = <span style="color: #000000;">(</span> iBlue / iTot <span style="color: #000000;">)</span> ;<br /><br /> iRed = <span style="color: #000000;">(</span> iRed < <span style="color: #000000;">0</span> ? -iRed : <span style="color: #000000;">iRed</span> <span style="color: #000000;">)</span> ;<br /> iGreen = <span style="color: #000000;">(</span> iGreen < <span style="color: #000000;">0</span> ? -iGreen : <span style="color: #000000;">iGreen</span> <span style="color: #000000;">)</span> ;<br /> iBlue = <span style="color: #000000;">(</span> iBlue < <span style="color: #000000;">0</span> ? -iBlue : <span style="color: #000000;">iBlue</span> <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! bHoriz <span style="color: #000000;">)</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;">(</span> RGB<span style="color: #000000;">(</span> clr1r, clr1g, clr1b <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> hOldBrush = SelectObject<span style="color: #000000;">(</span> hDC, hBrush <span style="color: #000000;">)</span> ;<br /> FillRect<span style="color: #000000;">(</span> hDC, &rct, hBrush <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">for</span><span style="color: #000000;">(</span> iEle = <span style="color: #000000;">1</span>; iEle < iTot; iEle++ <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> bDir = <span style="color: #000000;">(</span> clr2r >= clr1r ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bDir <span style="color: #000000;">)</span><br /> clr1r += iRed ;<br /> <span style="color: #00C800;">else</span><br /> clr1r -= iRed ;<br /><br /> clr1r = <span style="color: #000000;">(</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;">)</span> ;<br /><br /> bDir = <span style="color: #000000;">(</span> clr2g >= clr1g ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bDir <span style="color: #000000;">)</span><br /> clr1g += iGreen ;<br /> <span style="color: #00C800;">else</span><br /> clr1g -= iGreen ;<br /> clr1g = <span style="color: #000000;">(</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;">)</span> ;<br /><br /> bDir = <span style="color: #000000;">(</span> clr2b >= clr1b ? <span style="color: #00C800;">TRUE</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bDir <span style="color: #000000;">)</span><br /> clr1b += iBlue ;<br /> <span style="color: #00C800;">else</span><br /> clr1b -= iBlue ;<br /> clr1b = <span style="color: #000000;">(</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;">)</span> ;<br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldBrush <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hBrush <span style="color: #000000;">)</span> ;<br /> hBrush = CreateSolidBrush<span style="color: #000000;">(</span> RGB<span style="color: #000000;">(</span> clr1r, clr1g, clr1b <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> SelectObject<span style="color: #000000;">(</span> hDC, hBrush <span style="color: #000000;">)</span> ;<br /> FillRect<span style="color: #000000;">(</span> hDC, &rct, hBrush <span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! bHoriz <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> rct.top++ ;<br /> rct.bottom++ ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> rct.<span style="color: #0000ff;">left</span>++ ;<br /> rct.<span style="color: #0000ff;">right</span>++ ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldBrush <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hBrush <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifndef __HARBOUR__<br /> CLIPPER CHANGESYSC<span style="color: #000000;">(</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// OLORS( nItems, aItems, aColors )</span><br />#else<br /> HARBOUR HB_FUN_CHANGESYSCOLORS<span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />#endif<br /><span style="color: #000000;">{</span><br /> int iEle, iItems = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ;<br /> int aiElemen<span style="color: #000000;">[</span> <span style="color: #000000;">28</span> <span style="color: #000000;">]</span> ;<br /> COLORREF alColors<span style="color: #000000;">[</span> <span style="color: #000000;">28</span> <span style="color: #000000;">]</span> ;<br /><br /> <span style="color: #00C800;">for</span><span style="color: #000000;">(</span> iEle = <span style="color: #000000;">0</span> ; iEle <= <span style="color: #000000;">(</span> iItems - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> ; iEle++ <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> aiElemen<span style="color: #000000;">[</span> iEle <span style="color: #000000;">]</span> = hb_parinfa<span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">(</span> iEle + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> alColors<span style="color: #000000;">[</span> iEle <span style="color: #000000;">]</span> = hb_parinfa<span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">(</span> iEle + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><br /> SetSysColors<span style="color: #000000;">(</span> iItems, aiElemen, alColors <span style="color: #000000;">)</span> ;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />void cDrawCursor<span style="color: #000000;">(</span> HWND hWnd, RECT * rctc, long lCursor, COLORREF nClr <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> HDC hDC;<br /> HRGN hReg;<br /> COLORREF lclr = <span style="color: #000000;">(</span> lCursor == <span style="color: #000000;">1</span> ? RGB<span style="color: #000000;">(</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> : <span style="color: #000000;">lCursor</span> == <span style="color: #000000;">2</span> ? nClr : <span style="color: #000000;">lCursor</span> <span style="color: #000000;">)</span>;<br /> HBRUSH hBr ;<br /> RECT rct ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lCursor != <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> hBr = CreateSolidBrush<span style="color: #000000;">(</span> lclr <span style="color: #000000;">)</span> ;<br /> hReg = CreateRectRgn<span style="color: #000000;">(</span> rctc->left, rctc->top, rctc->right - <span style="color: #000000;">1</span>, rctc->bottom <span style="color: #000000;">)</span>;<br /> hDC = GetDCEx<span style="color: #000000;">(</span> hWnd, hReg, DCX_CACHE <span style="color: #000000;">)</span>;<br /><br /> FrameRgn<span style="color: #000000;">(</span> hDC, hReg, hBr, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /><br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span>;<br /> DeleteObject<span style="color: #000000;">(</span> hReg <span style="color: #000000;">)</span> ;<br /> DeleteObject<span style="color: #000000;">(</span> hBr <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</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;">(</span> hWnd <span style="color: #000000;">)</span> ;<br /> DrawFocusRect<span style="color: #000000;">(</span> hDC, &rct <span style="color: #000000;">)</span> ;<br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">}</span><br /><span style="color: #000000;">}</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;">(</span>TSCOLUMN.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBROWSE.obj<span style="color: #000000;">)</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;">(</span>TSBTNGET.obj<span style="color: #000000;">)</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 /> </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 := LoadBitmap( GetResources(), "CheckGrant" )
Define GColumn oColumns Data '' Head 'Texto' Size 45 PIXELS 3DLOOK TRUE
oColumns:uBmpCell := {|| oBmp}
oColumns:nAlign := nMakeLong( DT_RIGHT, DT_CENTER )[/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: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: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: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( ::oWnd:hWnd )
::Create()
If oFont != Nil
::SetFont( oFont )
EndIf
::lVisible = .T.
***** ::Default()
::oWnd:AddControl( Self )
Else
::oWnd:DefControl( Self )
If oFont != Nil
::SetFont( oFont )
EndIf
::lVisible = .F.
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(...), oChildBrw:Setfocus(), oChildBrw:Refresh(), oBrw:Setfocus()[/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 := TOleAuto():New(“adodb.connection”)
oMiConexion:Open(“MicroSoft.Jet.OLEDB.4.0; Data Source=.\taller.mdb”)
oRecordSet := TOleAuto():New(“adodb.recordset”)
oRecordSet:LockType := adLockOptimistic
oRecordSet:CursorType := adOpenKeySet
oRecordSet:ActiveConnection(oMiConexion)
oRecordSet:Source := “Select * from Clientes”
oRecordSet:Open()
oRecordSet:MoveFirst()
@ 0, 0 LISTBOX oBrw FIELDS oRecordSet:Fields(“nombre”):value,;
oRecordSet:Fields(“apellido”):value,;
oRecordSet:Fields(“id”):value,;
oRecordSet:Fields(“edad”):value,;
oRecordSet:Fields(“ciudad”):value,;
oRecordSet:Fields(“estado”):value;
HEADERS "Nombre",”Apellido”,”Id”,”Edad”,”Ciudad”,”Estado”
/* esto es lo que cambia */
oBrw:bLogicLen = { || oRecordSet:RecordCount }
oBrw:bGoTop = { || oRecordSet:MoveFirst() }
oBrw:bGoBottom = { || oRecordSet:MoveLast() }
oBrw:bSkip = { | nSkip | Skipper( oRecordSet, nSkip ) }
oBrw:cAlias = "ARRAY"
STATIC FUNCTION SKIPPER( oRs, nSkip )
LOCAL nRec := oRs:AbsolutePosition
oRs:Move( nSkip )
IF oRs:EOF; oRs:MoveLast(); ENDIF
IF oRs:BOF; oRs:MoveFirst(); ENDIF
RETURN oRs: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[ 01 ] cell
oBrw: SetArray( aDatos )
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://imageshack.us:lgvzgohv][img:lgvzgohv]http://img389.imageshack.us/img389/4985/untitled10dt.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:= array( 25, 06)
LOCAL nItem
for nItem:= 1 to 06 [/code:2vohff4c]
Y en realidad es de 1 a 25
[code:2vohff4c]for nItem:= 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( hCtlFocus ) CLASS TSBrowse
Local nRecNo, uTag
Default ::aControls := {}
If ::lEditing .and. Len( ::aControls ) > 0 .and. ;
hCtlFocus == ::aControls[ 1 ]:hWnd
Return 0
EndIf
If ::lEditing
If ::aColumns[ ::nCell ]:oEdit != Nil
::aColumns[ ::nCell ]:oEdit:End()
EndIf
::lEditing := ::lPostEdit := .F.
EndIf
::lNoPaint := .F.
If ::lDrag
Return Super:LostFocus( hCtlFocus )
EndIf
::lFocused = .F.
If ! Empty( ::bLostFocus )
Eval( ::bLostFocus, hCtlFocus )
EndIf
If ::nLen > 0 .and. ! EmptyAlias( ::cAlias ) .and. ! ::lIconView
::DrawSelect()
If ::lIsDbf .and. ( ::cAlias )->( RecNo() ) != ::nLastPos
::nLastPos := ( ::cAlias )->( RecNo() )
::nLastnAt := ::nAt
If ::bTagOrder != Nil .and. ! ::lNoResetPos .and. ::bLastTag != Nil
::uLastTag := Eval( ::bLastTag )
EndIf
EndIf
EndIf
If ::oCtx != Nil
::oCtx:Save()
EndIf
::lHasFocus := .F.
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( uVar, nCell, nKey, nKeyFlags, cPicture, bValid, nClrFore, ;
nClrBack ) 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 := ::nFireKey
Default nCell := ::nCell, ;
::lPostEdit := .F., ;
::lNoPaint := .F.
oCol := ::aColumns[ nCell ]
Default ::nHeightSuper := 0, ;
nKey := VK_RETURN, ;
nKeyFlags := 0, ;
nFireKey := VK_F2, ;
uVar := Eval( oCol:bData ), ;
cPicture := oCol:cPicture, ;
bValid := oCol:bValid, ;
nClrFore := oCol:nClrEditFore, ;
nClrBack := oCol:nClrEditBack
uValue := uVar
cType := If( Empty( oCol:cDataType ), ValType( uValue ), oCol:cDataType )
cMsg := oCol:cMsgEdit
cError := oCol:cError
bChange := oCol:bChange
lSpinner := oCol:lSpinner
bUp := oCol:bUp
bDown := oCol:bDown
bMin := oCol:bMin
bMax := oCol:bMax
nStartX := 0
lCombo := lMulti := .F.
::oGet := ::oWnd:bValid
::oWnd:bValid := { || ! ::lEditing }
If oCol:bPassWord != Nil
If ! Eval( oCol:bPassWord, uValue, nCell, ::nAt, Self )
Return Nil
EndIf
EndIf
::lEditing := .T.
::lHitBottom := .F.
If ::nLen > 0
::lNoPaint := .T.
EndIf
If oCol:bPrevEdit != Nil
Eval( oCol:bPrevEdit, uValue, Self )
EndIf
cMsg := If( ValType( cMsg ) == "B", Eval( cMsg, Self, nCell ), cMsg )
If cType == "L" .and. oCol:lCheckBox
If nKey != VK_RETURN
If Upper( Chr( nKey ) ) $ "YCST1"
::lChanged := uVar == .F.
uVar := .T.
ElseIf Upper( Chr( nKey ) ) $ "FN0"
::lChanged := uVar == .T.
uVar := .F.
ElseIf nKey == VK_SPACE
uVar := ! uVar
::lChanged := .T.
Else
Return 0
EndIf
::lHasChanged := If( ::lChanged, .T., ::lHasChanged )
::oWnd:nLastKey := VK_RETURN
::PostEdit( uVar, nCell, bValid ) //... fgondi. Añadido parametro bValid
::lPostEdit := .F.
Return 0
Else
::lPostEdit := .T.
::lChanged := .F.
::oWnd:nLastKey := nKey
::PostEdit( uVar, nCell, bValid ) //... fgondi. Añadido parametro bValid
::lPostEdit := .F.
Return 0
EndIf
EndIf
If oCol:bExtEdit != Nil // external edition
::lNoPaint := ::lEditing := .F.
uVar := Eval( oCol:bExtEdit, uValue, Self )
::lChanged := ValType( uVar ) != ValType( uValue ) .or. uVar != uValue
::lPostEdit := .T.
::oWnd:nLastKey := VK_RETURN
::PostEdit( uVar, nCell, bValid )
Return Nil
EndIf
oFont := If( oCol:oFontEdit != Nil, oCol:oFontEdit, ;
If( oCol:oFont != Nil, oCol:oFont, ::oFont ) )
If oCol:oEdit != Nil
oCol:oEdit:End()
Endif
If ::nFreeze > 0
For nI := 1 To Min( ::nFreeze , nCell - 1 )
nStartX += ::GetColSizes()[ nI ]
Next
EndIf
For nI := ::nColPos To nCell - 1
nStartX += ::GetColSizes()[ nI ]
Next
nClrFore := If( ValType( nClrFore ) == "B", ;
Eval( nClrFore, ::nAt, nCell, Self ), nClrFore )
nClrBack := If( ValType( nClrBack ) == "B", ;
Eval( nClrBack, ::nAt, nCell, Self ), nClrBack )
nRow := ::nRowPos - 1
nRow := ( nRow * ::nHeightCell ) + ::nHeightHead + ;
::nHeightSuper + If( oCol:l3DLook, 2, 0 )
nCol := nStartX + If( oCol:l3DLook, 2, 0 )
nWidth := ::GetColSizes()[ nCell ] - If( oCol:l3DLook, 4, 2 )
nHeight := ::nHeightCell - If( oCol:l3DLook, 3, 1 )
If oCol:cResName != Nil
oCol:oEdit := TSBtnGet():New( 0, 0, bSETGET( uValue ), Self, 0, 0, ;
cPicture,, nClrFore, nClrBack, oFont,,,, ;
cMsg,,,,, bChange,,, .T.,, ;
oCol:cResName, oCol:bAction, ;
lSpinner .and. cType $ "ND", bUp, bDown, ;
bMin, bMax, oCol:nBmpWidth )
oCol:oEdit:Hide()
oCol:oEdit:nFireKey := nFireKey
oCol:oEdit:aFill := oCol:aFill
oCol:oEdit:lFixCaret := ::lFixCaret
ElseIf ( cType == "C" .and. Chr( 13 ) $ uValue ) .or. cType == "M"
Default uValue := ""
If ::nMemoHE == Nil
If ! Empty( uValue )
nHeight := Max( 4, StrCharCount( uValue, Chr( 10 ) ) )
Else
nHeight := 4
EndIf
Else
nHeight := ::nMemoHE
EndIf
aRct := GetClientRect( ::hWnd )
If ::nMemoWE == Nil .or. Empty( ::nMemoWE )
nWidth := Max( nWidth, GetTextWidth( 0, SubStr( uValue, 1, ;
At( Chr( 13 ), uValue ) - 1 ), ;
If( oFont != Nil, oFont:hFont, 0 ) ) )
nWidth := Min( nWidth, Int( aRct[ 4 ] * .8 ) )
Else
nWidth := ::nMemoWE
EndIf
nTxtHeight := SBGetHeight( ::hWnd, If( oFont != Nil, oFont:hFont, 0 ), 0 )
While ( nRow + ( nTxtHeight * nHeight ) ) > aRct[ 3 ]
nRow -= nTxtHeight
EndDo
nI := nCol + nWidth - aRct[ 4 ]
nCol -= If( nI < 0, 0, nI )
nCol := Max( 10, nCol )
nHeight *= nTxtHeight
If SubStr( uValue, 1, 4 ) == GTF5
oCol:oEdit := TSFGet():New( 0, 0, bSETGET( uValue ), Self, 0, 0, oFont )
oCol:oEdit:OnResize := {||oCol:oEdit:VScrAdjust()}
Else
oCol:oEdit := TSMulti():New( 0, 0, bSETGET( uValue ), Self, 0, 0, ;
oFont,,nClrFore, nClrBack )
oCol:oEdit:bGotFocus := { || oCol:oEdit:HideSel(), oCol:oEdit:SetPos( 0 ) }
EndIf
lMulti := .T.
oCol:oEdit:Hide()
SetWindowLong( oCol:oEdit:hWnd, GWL_STYLE, nOr( oCol:oEdit:nStyle, WS_THICKFRAME ) )
ElseIf ( cType == "L" .and. ::lLogicDrop ) .or. oCol:lComboBox
lCombo := .T.
If oCol:lComboBox
aGet := oCol:aItems
If Empty( aGet )
Return Nil
EndIf
If nKey == VK_RETURN
If oCol:cDataType != Nil .and. oCol:cDataType == "N"
uValue := Max( 1, AScan( aGet, AllTrim( uValue ) ) )
Else
uValue := aGet[ Max( 1, AScan( aGet, AllTrim( uValue ) ) ) ]
EndIf
Else
If oCol:cDataType != Nil .and. oCol:cDataType == "N"
uValue := Max( 1, AScan( aGet, Upper( Chr( nKey ) ) ) )
Else
uValue := aGet[ Max( 1, AScan( aGet, Upper( Chr( nKey ) ) ) ) ]
EndIf
EndIf
nHeight := Max( 10, Min( 10, Len( aGet ) ) ) * ::nHeightCell
Else
aGet := { ::aMsg[ 1 ], ::aMsg[ 2 ] }
If nKey == VK_RETURN
uValue := If( uValue, 1, 2 )
EndIf
nHeight := ::nHeightCell * 2
EndIf
nRow -= 4
oCol:oEdit := TSCombo():New( 1000, 0, bSETGET( uValue ), aGet, ;
0, 0, Self,,bChange,, nClrFore, ;
nClrBack, .T., oFont, cMsg )
oCol:oEdit:bCloseUp := {|o|o:PostMsg( WM_KEYDOWN, VK_RETURN, 0 )}
oCol:oEdit:lAppend := ::lAppendMode
oCol:oEdit:Hide()
Else
oCol:oEdit := TSGet():New( 0, 0, bSETGET( uValue ), Self, 0, 0, ;
cPicture,, nClrFore, nClrBack, oFont,,,, ;
cMsg,,,,, bChange,,, .T.,, ;
lSpinner .and. cType $ "ND", bUp, bDown, ;
bMin, bMax )
oCol:oEdit:Hide()
oCol:oEdit:aFill := oCol:aFill
oCol:oEdit:lFixCaret := ::lFixCaret
EndIf
oCol:oEdit:bLostFocus := { | nKey | ::EditExit( nCell, nKey, uValue, ;
bValid, .T. ) }
oCol:oEdit:bKeyDown := { | nKey, nFlags, lExit | ;
If( lExit != Nil .and. lExit, ;
::EditExit( nCell, nKey, uValue, bValid ), ;
Nil ) }
oCol:oEdit:oJump := Self
oCol:oEdit:Move( nRow, nCol, nWidth, nHeight, ! lCombo )
If oCol:cResName != Nil
oCol:oEdit:Default()
EndIf
oCol:oEdit:SetFocus()
if oCol:oEdit=NIL
return NIL
endif
If nKey != Nil .and. nKey > 31
If ! lCombo .and. ! lMulti
oCol:oEdit:lRightLeftExit := .T.
oCol:oEdit:KeyChar( nKey, nKeyFlags )
EndIf
Endif
oCol:oEdit:Show()
::SetMsg( oCol:cMsgEdit )
If oCol:bEditing != Nil
Eval( oCol:bEditing, uVar, Self )
EndIf
Return Nil[/code:1tndmye3]
[code:1tndmye3]#ifdef __OLE__
METHOD ExcelOle( cXlsFile, lActivate, oMeter, cTitle, ;
oFont, lSave ) CLASS TSBrowse
Local oExcel, oBook, oSheet, nRow, nCol, uData, nEvery, oRange, cRange, cCell, ;
bError, cText, oClip, nStart, ;
nLine := 1, ;
nCount := 0, ;
nRecNo := ( ::cAlias )->( RecNo() ), ;
nAt := ::nAt
Default lActivate := Empty( cXlsFile ), ;
cTitle := "", ;
lSave := .F.
CursorWait()
::lNoPaint := .F.
If oMeter != Nil
oMeter:nTotal := ( ::nLen + 1 ) * Len( ::aColumns ) + 30
oMeter:Set( 0 )
oMeter:Refresh()
nEvery := Max( 1, Int( oMeter:nTotal * .02 ) ) // refresh ometer every 2 %
EndIf
cXlsFile := AllTrim( StrTran( Upper( cXlsFile ), ".XLS" ) )
cTitle := AllTrim( cTitle )
bError := ErrorBlock( { | x | Break( x ) } )
Begin Sequence
oExcel := TOleAuto():New("Excel.Application")
Recover
ErrorBlock( bError )
CursorArrow()
MsgStop( "No Ole.lib searched", "Error" )
Return Nil
End Sequence
ErrorBlock( bError )
If oMeter != Nil
nCount -= 15
oMeter:Set( nCount )
EndIf
oExcel:WorkBooks:Add()
oBook := oExcel:Get( "ActiveWorkBook")
oSheet := oExcel:Get( "ActiveSheet" )
If oMeter != Nil
nCount -= 15
oMeter:Set( nCount )
EndIf
( ::cAlias )->( Eval( ::bGoTop ) )
cText := ""
For nRow := 1 To ::nLen
If nRow == 1
If ! Empty( cTitle )
oSheet:Cells( nLine++, 1 ):Value := AllTrim( cTitle )
oSheet:Range( "A1:" + Chr( 64 + Len( ::aColumns ) ) + ;
"1" ):Set( "HorizontalAlignment", 7 )
++nLine
nStart := nLine
Else
nStart := 1
EndIf
For nCol := 1 To Len( ::aColumns )
If ::aColumns[ nCol ]:lBitMap .or. (nCol=1 .and. !Empty(::hBmpCursor))
Loop
EndIf
uData := If( ValType( ::aColumns[ nCol ]:cHeading ) == "B", ;
Eval( ::aColumns[ nCol ]:cHeading ), ;
::aColumns[ nCol ]:cHeading )
If ValType( uData ) != "C"
Loop
EndIf
uData := StrTran( uData, CRLF, ' ' ) // fgondi. Cambio chr(10) por ' '
cText += uData + Chr( 9 )
If oMeter != Nil
If nCount % nEvery == 0
oMeter:Set( nCount )
EndIf
nCount ++
EndIf
Next
cText += Chr( 13 )
EndIf
For nCol := 1 To Len( ::aColumns )
If ::aColumns[ nCol ]:lBitMap .or. (nCol=1 .and. !Empty(::hBmpCursor))
Loop
EndIf
uData := Eval( ::aColumns[ nCol ]:bData )
If ValType( uData ) == "C"
uData := StrTran( uData, CRLF, ' ' ) // fgondi. Cambio chr(10) por ' '
EndIf
If ::aColumns[ nCol ]:cPicture != Nil
uData := Transform( uData, ::aColumns[ nCol ]:cPicture )
EndIf
if nRow == 1 .and. ValType( uData )=="C" // fgondi. Formatear las columnas con texto para poder ver textos como '192492456'
oRange := cMakeRange( 2, nCol, 65536, nCol )
oRange := oSheet:Range( oRange )
oRange:Set("NumberFormat", '@' )
endif
uData := IIF( ValType( uData )=="D", DtoC( uData ), ;
IIF( ValType( uData )=="N", Str( uData ) , ;
IIF( ValType( uData )=="L", IIF( uData ,".T." ,".F." ), uData ) ) )
cText+=alltrim( uData ) + Chr( 9 )
If oMeter != Nil
If nCount % nEvery == 0
oMeter:Set( nCount )
EndIf
nCount ++
EndIf
Next
::Skip( 1 )
cText += Chr( 13 )
++nLine
/*
Cada 20k volcamos el texto a la hoja de Excel , usando el portapapeles , algo muy rapido y facil ;-)
Every 20k set text into excel sheet , using Clipboard , very easy and faster.
*/
IF Len( cText ) > 20000
oClip := TClipBoard():New()
oClip:Clear()
oClip:SetText( cText )
cCell := "A" + Alltrim( Str( nStart ) )
oRange := oSheet:Range( cCell )
oRange:Select()
oSheet:Paste()
oClip:End()
cText := ""
nStart := nLine + 1
EndIf
Next
If ::lIsDbf
( ::cAlias )->( DbGoTo( nRecNo ) )
EndIf
::nAt := nAt
If Len( cText ) > 0
oClip := TClipBoard():New()
oClip:Clear()
oClip:SetText( cText )
cCell := "A" + Alltrim( Str( nStart ) )
oRange := oSheet:Range( cCell )
oRange:Select()
oSheet:Paste()
oClip:End()
cText := ""
EndIf
cRange := "A3:" + Chr( 64 + Len( ::aColumns ) ) + ;
Alltrim( Str( oSheet:UsedRange:Rows:Count() ) )
oRange := oSheet:Range( cRange )
If oFont != Nil // let the programmer to decide the font he wants, otherwise use Excel's default
oRange:Font:Name := oFont:cFaceName
oRange:Font:Size := oFont:nSize()
oRange:Font:Bold := oFont:lBold
EndIf
oRange:Borders():LineStyle := 1
oRange:Columns:AutoFit()
If oMeter != Nil
oMeter:Set( oMeter:nTotal )
EndIf
If cXlsFile != Nil .and. lSave
oBook:SaveAs( cXlsFile, -4143 ) // -4143 = Normal
EndIf
oSheet:Range( "A1" ):Select()
CursorArrow()
If lActivate
oExcel:Visible := .T.
EndIf
OleUninitialize()
Return Nil
#endif // __OLE__[/code:1tndmye3]
[code:1tndmye3]METHOD GoLeft() CLASS TSBrowse
Local nCell, nSkip, ;
lLock := ::nFreeze > 0 .and. ::lLockFreeze, ;
lDraw := .F.
::nOldCell := ::nCell
If ::lIsTxt
If ::nOffset > 5
::nOffset -= 5
Else
::nOffset := 1
EndIf
::Refresh( .F. )
If ::oHScroll != Nil
::oHScroll:SetPos( ::nOffset )
EndIf
Return Self
EndIf
::ResetSeek()
If ::lCellBrw
nCell := ::nCell
nSkip := 0
While nCell > ( If( lLock, ::nFreeze + 1, 1 ) )
nCell --
nSkip ++
If ! ::aColumns[ nCell ]:lNoHilite
Exit
EndIf
EndDo
If nSkip == 0
Return Self
EndIf
While ::nColPos > ( ::nFreeze + 1 ) .and. ! ::IsColVisible( nCell )
lDraw := .T.
::nColPos --
EndDo
::nCell := nCell
If lDraw
::Refresh( .F. )
EndIf
// fgondi. Añadido comprobación ::nCell<=len(::aColumns)
If ::nCell<=len(::aColumns) .and. ::aColumns[ ::nCell ]:bGotFocus != Nil .and. ::nOldCell != ::nCell
Eval( ::aColumns[ ::nCell ]:bGotFocus, ::nOldCell, ::nCell, Self )
EndIf
// fgondi. Añadido comprobación ::nOldCell<=len(::aColumns)
If ::nOldCell<=len(::aColumns) .and. ::aColumns[ ::nOldCell ]:bLostFocus != Nil .and.;
::nOldCell != ::nCell
Eval( ::aColumns[ ::nOldCell ]:bLostFocus, ::nCell, ::nOldCell, Self )
EndIf
If( ::oHScroll != Nil, ::oHScroll:SetPos( ::nCell ), Nil )
::nOldCell := ::nCell
::HiliteCell( ::nCell )
::DrawSelect()
Else
If ::nCell > ( ::nFreeze + 1 )
::nColPos := ::nCell := ::nFreeze + 1
::Refresh( .F. )
If ::oHScroll != Nil
::oHScroll:GoTop()
EndIf
EndIf
EndIf
Return Self[/code:1tndmye3]
[code:1tndmye3]METHOD LDblClick( nRowPix, nColPix, nKeyFlags ) CLASS TSBrowse
Local uTemp, uVal, nBParam, ;
nLines := ::nRowCount(), ;
nClickRow := ::GetTxtRow( nRowPix ), ;
nCol := ::nAtCol( nColPix ), ;
uPar1 := nRowPix, ;
uPar2 := nColPix, ;
aMoveCell := { {|| ::GoRight() }, {|| ::GoDown() }, ;
{|| ::goLeft() }, {|| ::GoUp() }, ;
{|| ::GoNext() } }, ;
bRecLock := If( ! Empty( ::bRecLock ), ::bRecLock, ;
{|| ( ::cAlias )->( RLock() ) } ), ;
bAddRec := If( ! Empty( ::bAddRec ), ::bAddRec, ;
{|| ( ::cAlias )->( dbAppend() ), ! NetErr() } )
If ::lDrag
Return Super:LDblClick( nRowPix, nColPix, nKeyFlags )
EndIf
nBParam := ::aColumns[ nCol ]:nBParam
::oWnd:nLastKey := 0
uPar1 := If( nBParam == 2, TSPoint():New( uPar1, uPar2 ), ;
If( nBParam == 1, nClickRow, uPar1 ) )
uPar2 := If( nBParam == 2, TSPoint():New( nClickRow, nCol ), ;
If( nBParam == 1, nCol, uPar2 ) )
If ( nClickRow == ::nRowPos .and. nClickRow > 0 ) .or. ;
( nClickRow == ::nRowPos .and. ! ::lDrawHeaders )
If ::lCellBrw .and. ::IsEditable( nCol )
If ValType( Eval( ::aColumns[ nCol ]:bData ) ) == "L" .and. ;
::aColumns[ nCol ]:lCheckBox // virtual checkbox
::PostMsg( WM_CHAR, VK_SPACE, 0 )
Else
::PostMsg( WM_KEYDOWN, VK_RETURN, 0 )
EndIf
Return 0
ElseIf ::lCanSelect
uVal := If( ::lIsDbf, ( ::cAlias )->( RecNo() ), ::nAt )
If ( uTemp := AScan( ::aSelected, uVal ) ) > 0
ADel( ::aSelected, uTemp )
ASize( ::aSelected, ( Len( ::aSelected ) - 1 ) )
::DrawSelect()
If ::bSelected != Nil
Eval( ::bSelected, Self, uVal, .F. )
EndIf
Else
AAdd( ::aSelected, uVal )
::DrawSelect()
If ::bSelected != Nil
Eval( ::bSelected, Self, uVal, .T. )
EndIf
EndIf
If ::bLDblClick != Nil
Eval( ::bLDblClick, uPar1, uPar2, nKeyFlags )
EndIf
ElseIf ::bLDblClick != nil
Eval( ::bLDblClick, uPar1, uPar2, nKeyFlags )
EndIf
ElseIf nClickRow == 0 .and. ::lDrawHeaders
::SetOrder( nCol ) // fgondi. ::SetOrder( ::nAtCol( nColPix, .T. ) )
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( xRow ) CLASS TSBrowse
local... //definición de las variables
if ::bDrawIni<>NIL
Eval( ::bDrawIni, Self )
endif
...
if ::bDrawFin<>NIL
Eval( ::bDrawFin, Self )
endif
return self[/code:2vc6ac00]
[code:2vc6ac00]METHOD DrawSelect() CLASS TSBrowse
local... //definición de las variables
if ::bDrawIni<>NIL
Eval( ::bDrawIni, Self )
endif
...
if ::bDrawFin<>NIL
Eval( ::bDrawFin, Self )
endif
return Self[/code:2vc6ac00]
[code:2vc6ac00]METHOD Edit( uVar, nCell, nKey, nKeyFlags, cPicture, bValid, nClrFore, nClrBack ) CLASS TSBrowse
local... //definición de las variables
if ::bDrawIni<>NIL
Eval( ::bDrawIni, Self )
endif
...
if ::bDrawFin<>NIL
Eval( ::bDrawFin, Self )
endif
return 0[/code:2vc6ac00]
[code:2vc6ac00]METHOD ExcelOle( cXlsFile, lActivate, oMeter, cTitle, oFont, lSave ) CLASS TSBrowse
...
if ::bDrawIni<>NIL
Eval( ::bDrawIni, Self )
endif
uData := Eval( ::aColumns[ nCol ]:bData )
if ::bDrawFin<>NIL
Eval( ::bDrawFin, Self )
endif
....
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://www.ghe-soft.com/fivewin/tsbrowse.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]::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) }
::bGoBottom := {|| ( ::cAlias )->( DbGoBottom() ) }
[/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:ResetBarPos()
// Actualiza cuantos registros tienen que mostrar para scroll, ctrl-Inicio, etc
oBrw:UpStable()
// Posiciona el puntero al principio y estabiliza el browse con los nuevos datos
oBrw:Reset()
// Quita los posibles filtros aplicados y si no tienes inicializa los valores con los nuevos datos
oBrw:Refresh()
// 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( nRowIni, nColIni, nRowFin, nColFin )
local cRange := cColumn2Letter(nColIni) + AllTrim(Str(Int(nRowIni)))
if nRowFin != NIL .and. nColFin != NIL
cRange += ":" + cColumn2Letter(nColFin) + AllTrim(Str(Int(nRowFin)))
endif
RETURN cRange
FUNCTION cColumn2Letter( n )
local r := ""
if n > 26
r := Chr( 64 + Int( n / 26 ) )
n := n % 26
endif
r += Chr( 64 + n )
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;">{</span>|oSheet| oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"NumberFormat"</span>, <span style="color: #ff0000;">"#,##0.00"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</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;">(</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, cTitle,,, bExtern <span style="color: #000000;">)</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://code.google.com/p/fivewin-contributions/downloads/detail?name=TSBrowse.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://fivetechsupport.com/forums/viewtopic.php?f=6&t=17247&start=0[/url:wiidyzpa]
[url:wiidyzpa]http://sistemasies.blogspot.com.br/2010/11/novos-metodos-do-tsbrowse.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 nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span><span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#define</span> CLR_NBLUE nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">192</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> oBmp, oBar, oFont, oFont1, oBrush, oCol, cTitle, lGrid<br /><br /> <span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Employee.cdx"</span> <span style="color: #000000;">)</span><br /> FErase<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Employee.cdx"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">EndIf</span><br /><br /> Use Employee Shared <span style="color: #00C800;">New</span> Via <span style="color: #ff0000;">"DBFCDX"</span><br /> <span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">On</span> First+Last Tag <span style="color: #0000ff;">Name</span><br /><br /> <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Font</span> oFont <span style="color: #0000ff;">Name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">Size</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-13</span><br /> <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 /> <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 /> <span style="color: #0000ff;">Define</span> BitMap oBmp <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"Selector"</span><br /> <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. One Click From TSBrowse To Excel And more..."</span> ;<br /> <span style="color: #0000ff;">Brush</span> oBrush ;<br /> <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">(</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> >= <span style="color: #ff0000;">"7.12"</span><br /> <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 /> <span style="color: #00C800;">Else</span><br /> <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 /> <span style="color: #00C800;">EndIf</span><br /><br /> cTitle := <span style="color: #ff0000;">"Database: "</span> + Trim<span style="color: #000000;">(</span> StrCapFirst<span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">".dbf"</span><br /><br /> bExtern := <span style="color: #000000;">{</span>|oSheet| oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"NumberFormat"</span>, <span style="color: #ff0000;">"#,##0.00"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><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;">(</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, cTitle,,, bExtern <span style="color: #000000;">)</span> ;<br /> ToolTip <span style="color: #ff0000;">"Export Browse to Excel"</span><br /><br /> lGrid := .T.<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;">"Print"</span> ;<br /> <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">(</span> cTitle,,,,,,,, lGrid <span style="color: #000000;">)</span> ;<br /> ToolTip <span style="color: #ff0000;">"Export Browse to Excel"</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;">"Exit"</span> ;<br /> <span style="color: #0000ff;">Action</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> ToolTip <span style="color: #ff0000;">"Exit"</span><br /><br /> @ <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 /> <span style="color: #0000ff;">Font</span> oFont <span style="color: #0000ff;">AutoCols</span> Transparent Selector oBmp Editable<br /><br /> 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;">{</span> CLR_NBLUE, CLR_WHITE <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Name"</span> 3DLook<br /><br /> 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;">{</span> CLR_NBLUE, CLR_WHITE <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Address"</span> 3DLook<br /><br /> With Object oBrw<br /> :<span style="color: #000000;">nHeightCell</span> += <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">nHeightHead</span> += <span style="color: #000000;">3</span><br /> :<span style="color: #000000;">nHeightSuper</span> += <span style="color: #000000;">3</span><br /> :<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> CLR_HEADF, CLR_HEADB, CLR_FOCUSF, CLR_FOCUSB <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> CLR_BLUE, <span style="color: #000000;">{</span> CLR_WHITE, CLR_NBLUE, <span style="color: #000000;">2</span> <span style="color: #000000;">}</span>, ;<br /> CLR_BLACK, <span style="color: #000000;">-1</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">ChangeFont</span><span style="color: #000000;">(</span> oFont1, <span style="color: #000000;">9</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">aColumns</span><span style="color: #000000;">[</span> <span style="color: #000000;">9</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">nHAlign</span> := DT_VERT<br /> End With<br /><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br /> <span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">(</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> >= <span style="color: #ff0000;">"7.12"</span><br /> 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 /> <span style="color: #00C800;">Else</span><br /> SET <span style="color: #0000ff;">Message</span> <span style="color: #0000ff;">Of</span> oWnd Clock Date Keyboard Noinset<br /> <span style="color: #00C800;">EndIf</span><br /><br /> <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Window</span> oWnd <span style="color: #0000ff;">Maximized</span><br /><br /> oFont:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DbCloseAll<span style="color: #000000;">(</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> oMenu<br /><br /> <span style="color: #00C800;">If</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">(</span> FWVERSION, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> >= <span style="color: #ff0000;">"7.12"</span><br /> <span style="color: #0000ff;">MENU</span> oMenu<br /> <span style="color: #00C800;">Else</span><br /> <span style="color: #0000ff;">MENU</span> oMenu<br /> <span style="color: #00C800;">EndIf</span><br /><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"TSBrowse"</span><br /> <span style="color: #0000ff;">MENU</span><br /> <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 /> <span style="color: #0000ff;">Action</span> oBrw:<span style="color: #000000;">ExcelOle</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Test.xls"</span>, .T.,, <span style="color: #ff0000;">"Here you are"</span> <span style="color: #000000;">)</span><br /> <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 /> <span style="color: #0000ff;">Action</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <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;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Help"</span> <span style="color: #0000ff;">Action</span> WinExec<span style="color: #000000;">(</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;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">Return</span> oMenu<br /> </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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.