topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
xbrowse autosort | Both Incremental Seek and Incremental Filter work with TDolphin.
1. Incremental Seek ( Works by default )
2. Incremental WildSeek ( DOES NOT WORK )
3. Incremental Filter ( Works )
4. Incremental Wild Filter ( Works )
Incremental seek works by default, if there is a sorted column known to XBrowse. The test is that you should be seeing arrow bitmap on one of the headers.
For incremental filters to work either there should be a sorted column known to xbrowse or you may assign oBrw:cFilterFld, in addition to setting oBrw:lIncrFilter to .t. |
xbrowse autosort | Mr Rao,
You will have a small example of how to use the codeblock: bSeek?
well with in DBFCDX used,
: bSeek = {| c | (oBrw: cAlias??) -> (DBSEEK (Upper (c). t.))}
Thank you,
Regards, |
xbrowse autosort | [quote="albeiroval":d32xi44z]Mr Rao,
You will have a small example of how to use the codeblock: bSeek?
well with in DBFCDX used,
: bSeek = {| c | (oBrw: cAlias??) -> (DBSEEK (Upper (c). t.))}
Thank you,
Regards,[/quote:d32xi44z]
The best and the right way of using XBrowse is [b:d32xi44z]NOT[/b:d32xi44z] to define that code block in your application program. Please remove any definitions of bSeek in your application program if you really want to avail all the powerful features of XBrowse.
XBrowse automatically creates the bSeek codeblock when AUTOSORT clause is used while creating XBrowse. XBrowse creates appropriate codeblocks depending on what we are browsing dbf,ado,array,tdolphin.
Just define XBrowse with AUTOSORT and you are ready with Incremental Seek without any additional Code in the application.
If you want to show what the user types for incremental seek, please add this line of code:
[code=fw:d32xi44z]<div class="fw" id="{CB}" style="font-family: monospace;">@ <row>,<col> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> oBrw:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">SIZE</span> <width>, <height> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> <oDlg/oWnd> <span style="color: #0000ff;">COLOR</span> <your colors></div>[/code:d32xi44z]
XBrowse automatically displays what the user types in.
By default, Incremental Seek works if a column is sorted.
if you set oBrw:lSeekWild := .t., the seek is automatically a wild seek. Seeks fpr a row where the column contains anywhere the expression typed.
If you set oBrw:lIncrFilter := .t., browse automatically filters the database and displays only records containing the expression typed.
For a good example, please study \fwh\samples\xbincflt.prg.
Please also remember, to get best results from xbrowse, create with command syntax. |
xbrowse autosort | Mr Rao,
This is the code I'm using with tdolphin,
if I comment the line: bSeek does not work
the field 'cedula' is int (10) and primary key
[code=fw:28pbqp7w]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> DataBrowse<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TMyApp<br /> <span style="color: #00C800;">local</span> oDlg<br /> <span style="color: #00C800;">local</span> oFont<br /> <span style="color: #00C800;">local</span> oBar<br /> <span style="color: #00C800;">local</span> lExit := <span style="color: #00C800;">FALSE</span><br /> <span style="color: #00C800;">local</span> oServer:= ::<span style="color: #000000;">oSrv</span>:<span style="color: #000000;">oServer</span><br /> <span style="color: #00C800;">local</span> oSelf:= <span style="color: #00C800;">Self</span><br /> <br /> ::<span style="color: #000000;">oQry</span> = oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT * FROM "</span> + ::<span style="color: #000000;">oSrv</span>:<span style="color: #000000;">cNomina</span> + <span style="color: #ff0000;">" ORDER BY cedula ASC"</span> <span style="color: #000000;">)</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;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> BOLD<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"xBrowse"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<br /> <br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg;<br /> FIELDS ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">cedula</span>, ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">nombre</span>, ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">activo</span>;<br /> HEADER <span style="color: #ff0000;">"Cedula"</span>, <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Activo"</span> ;<br /> SIZES <span style="color: #000000;">100</span>, <span style="color: #000000;">350</span>, <span style="color: #000000;">100</span>;<br /> LINES CELL AUTOSORT<br /> <br /> WITH OBJECT ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">Activo</span><br /> :<span style="color: #000000;">bStrData</span> = <span style="color: #000000;">{</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">RecCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>><span style="color: #000000;">0</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">Activo</span>, <span style="color: #ff0000;">"Activo"</span>, <span style="color: #ff0000;">"Inactivo"</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">activo</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> END <br /> <br /> WITH OBJECT ::<span style="color: #000000;">oBrw</span><br /> <br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> <span style="color: #B900B9;">// :lSeekWild := .t.</span><br /> <br /> :<span style="color: #000000;">nMarqueeStyle</span>:= MARQSTYLE_HIGHLROW <br /> :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>,<span style="color: #000000;">{</span>CLR_BLACK, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>CLR_BLACK, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">189</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> <br /> <span style="color: #B900B9;">// :bSeek := {|c| DoSeek(c, ::oQry, ::oBrw)} <==== with this works</span><br /> <br /> END <br /> <br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">117</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">45</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg<br /> <br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">SetDolphin</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oQry</span> <span style="color: #000000;">)</span><br /> <br /> oDlg:<span style="color: #000000;">oClient</span> = ::<span style="color: #000000;">oBrw</span> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg; <br /> <span style="color: #0000ff;">CENTERED</span>;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> oSelf:<span style="color: #000000;">CreaButonBar</span><span style="color: #000000;">(</span> oBar, oDlg, @lExit <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">oQry</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> ::<span style="color: #000000;">oBrw</span> = <span style="color: #00C800;">Nil</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> DoSeek<span style="color: #000000;">(</span> c, oQry, oBrw <span style="color: #000000;">)</span><br /> oQry:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> c, <span style="color: #ff0000;">"cedula"</span>,,, .T. <span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">cSeek</span>:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Return</span> .T.<br /><br /> </div>[/code:28pbqp7w]
I'll be doing wrong?,
pdta : sorry my english..
thanks,
regards, |
xbrowse autosort | What is the FWH version you are using? |
xbrowse autosort | Mr Rao,
The version is fwh 13.01 |
xbrowse autosort | Mr Nages,
Still nothing on the subject? |
xbrowse bLDblClick y edición de columnas [solucionado] | Trabajando con xBrowse trato de conseguir el siguiente comportamiento.
Al hacer doble click sobre ciertas columnas quiero q se lance la edición del registro en un dialogo, pero si hago doble-click sobre una columna editable, edite el valor de esa columna.
Esto lo consigo, pero cuando termino la edición de esa columna con la tecla RETURN, después lanza el evento bLDblClick, de xBrowse, y eso no me interesa.
¿ Como puedo evitar que se propague y me lance el evento bLDblClick ?
Muchas gracias. |
xbrowse bLDblClick y edición de columnas [solucionado] | Manuel, intenta con cualquiera de las siguientes lineas:
WITH OBJECT oBrw
:bLDblClick := {|| if(oBrw:SelectedCol:cHeader $ "DESCRIP;TOTAL;VDESC", MsgInfo("Tu Function-Dialog"),) }
:bLDblClick := {|| if(oBrw:SelectedCol:nEditType = 0, MsgInfo("Tu Function-Dialog"),) }
Saludos |
xbrowse bLDblClick y edición de columnas [solucionado] | [code=fw:180r1myr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw<br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nEditTypes</span> := EDIT_GET<br /> :<span style="color: #000000;">bLDClickDatas</span> := <span style="color: #000000;">{</span> || oBrw:<span style="color: #000000;">EditSource</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// or { || youreditfunction() }</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:180r1myr] |
xbrowse bLDblClick y edición de columnas [solucionado] | Intento usar la variable blDClickDatas pero lo que obtengo es un error, he mirado en la clase TXBrowse y esa variable no existe.
Message not found: TXBROWSE:BLDCLICKDATAS
I try to use the blDClickDatas variable but what I get is an error, I looked in the TXBrowse class and that variable does not exist.
Message not found: TXBROWSE:BLDCLICKDATAS
Thanks.
FW version 17.0.5 |
xbrowse bLDblClick y edición de columnas [solucionado] | Manuel, es :bLDClickData, busca la información sobre el XBrowse en el wiki
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_txbrwcolumn">http://wiki.fivetechsoft.com/doku.php?i ... xbrwcolumn</a><!-- m --> |
xbrowse bLDblClick y edición de columnas [solucionado] | My sample works with FWH 17.05 also.
"nEditType" and "bLDClickData" are DATAS of TXBrwColumn.
When we suffix "s" to any column DATA and use it with XBrowse, it is translated and applied to all columns of the browse.
oBrw:nEditTypes := <n> is equivalent to AEval( oBrw:aCols, { |o| o:nEditType := <n> } )
Sameway,
oBrw:bLDClickDatas := <b> is equivalent to AEval( oBrw:aCols, { |o| o:bLDClickData := <b> } )
If you copied and code from the forum and pasted in your editor, please make sure that the <space> after the character ":" is removed. Normally this causes errors. |
xbrowse bLDblClick y edición de columnas [solucionado] | [quote="nageswaragunupudi":a6hoehb8]My sample works with FWH 17.05 also.
"nEditType" and "bLDClickData" are DATAS of TXBrwColumn.
When we suffix "s" to any column DATA and use it with XBrowse, it is translated and applied to all columns of the browse.
oBrw:nEditTypes := <n> is equivalent to AEval( oBrw:aCols, { |o| o:nEditType := <n> } )
Sameway,
oBrw:bLDClickDatas := <b> is equivalent to AEval( oBrw:aCols, { |o| o:bLDClickData := <b> } )
If you copied and code from the forum and pasted in your editor, please make sure that the <space> after the character ":" is removed. Normally this causes errors.[/quote:a6hoehb8]
Mr Rao, you are right
( s ) in datas it is a fantastic functionality, but I do not remember her usually |
xbrowse bLDblClick y edición de columnas [solucionado] | Siguiendo con este problema, descubro q no es tema de bLDblClick, sino de KeyDown(), yo tengo asignada a la tecla VK_RETURN una acción.
Esta acción se lanza cuando termino la edición sobre una columna con la tecla VK_RETURN, pero no se como detener esta propagación hacia el método KeyDown(), si la edición es realmente en una sola columna.
case nKey == VK_RETURN
if( !empty( ::oController ), ::oController:Edit(), )
Saludos |
xbrowse bchange -> display box | changing records from an xbrowse I want to display an intermittent black square on a jpg image to display the printing coordinates for a coupon
[img:2f1fpk6b]https://i.postimg.cc/Px5LYGvL/hhh.png[/img:2f1fpk6b]
example
[img:2f1fpk6b]https://i.postimg.cc/QtJ2LPfq/jjjjjjjjjjjjjjj.png[/img:2f1fpk6b]
any test sample pls ? |
xbrowse bchange -> display box | Silvio,
Maybe this code can be a starting point.
Take your picture from lotto and save it as test.jpg and run this sample.
This sample is from a post here : :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28271&hilit=merge+jpg">viewtopic.php?f=3&t=28271&hilit=merge+jpg</a><!-- l -->
[code=fw:1ijt7qje]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> SRCCOPY <span style="color: #000000;">13369376</span><br /><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> oDlg, oImg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">IMAGE</span> oImg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">100</span>;<br /> FILE <span style="color: #ff0000;">"TEST.JPG"</span>;<br /> <span style="color: #0000ff;">ADJUST</span><br /><br /> @ <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Draw"</span>;<br /> <span style="color: #0000ff;">ACTION</span> DRAWIMG<span style="color: #000000;">(</span> oImg <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">15</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Save"</span>;<br /> <span style="color: #0000ff;">ACTION</span> oImg:<span style="color: #000000;">SaveImage</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MYIMAGETEST.JPG"</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">CENTER</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> DRAWIMG<span style="color: #000000;">(</span> oImg <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hDC := oImg:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> nWidth := oImg:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> nHeight := oImg:<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hMemDC := CREATECOMPATIBLEDC<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hMemBmp := CREATECOMPATIBLEBITMAP<span style="color: #000000;">(</span> hDC, nWidth, nHeight <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hBmpOld := SELECTOBJECT<span style="color: #000000;">(</span> hMemDC, hMemBmp <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hBitmap := oImg:<span style="color: #000000;">hBitmap</span><br /> <span style="color: #00C800;">LOCAL</span> hPalette := oImg:<span style="color: #000000;">hPalette</span><br /><br /> <span style="color: #00C800;">LOCAL</span> x, y<br /><br /> PALBMPDRAW<span style="color: #000000;">(</span> hMemDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, hBitmap, hPalette, nWidth, nHeight <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> y = <span style="color: #000000;">128</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">135</span><br /> <span style="color: #00C800;">FOR</span> x = <span style="color: #000000;">128</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">135</span><br /> SETPIXEL<span style="color: #000000;">(</span> hMemDC, x, y, CLR_HRED <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> <span style="color: #00C800;">FOR</span> y = <span style="color: #000000;">110</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">117</span><br /> <span style="color: #00C800;">FOR</span> x = <span style="color: #000000;">110</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">117</span><br /> SETPIXEL<span style="color: #000000;">(</span> hMemDC, x, y, CLR_HRED <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /><br /> SELECTOBJECT<span style="color: #000000;">(</span> hMemDC, hBmpOld <span style="color: #000000;">)</span><br /><br /> DELETEDC<span style="color: #000000;">(</span> hMemDC <span style="color: #000000;">)</span><br /><br /> oImg:<span style="color: #000000;">hBitmap</span> = hMemBmp<br /><br /> PALBMPFREE<span style="color: #000000;">(</span> hBitmap, hPalette <span style="color: #000000;">)</span><br /><br /> PALBMPNEW<span style="color: #000000;">(</span> oImg:<span style="color: #000000;">hWnd</span>, oImg:<span style="color: #000000;">hBitmap</span>, oImg:<span style="color: #000000;">hPalette</span> <span style="color: #000000;">)</span><br /><br /> oImg:<span style="color: #0000ff;">Refresh</span><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 /><br /><br /> </div>[/code:1ijt7qje] |
xbrowse bchange -> display box | Something like that although I'd like to have the squares blinking.
A question: if a pixel is at x, y on the video how does it relate to the print?
I'll explain well: the user must select some numbers that he must play and the press must insert black boxes in correspondence with the numbers themselves |
xbrowse bchange -> display box | I try to understand what you would like to do...
I would generate a dialog with all buttons (bmp) for each lotto nummer. (design the lotto form) At that point, you have a button for each number that can interact with clicks and change the button into a square and/or other color etc... Printing will be something like a lottoform jpg to print and position the squares on it. As always... easier said than done ))) |
xbrowse bchange -> display box | try to show an animated gif which is blinking at the desired position. |
xbrowse bchange -> display box | [quote="Marc Venken":k3q9yrc8]I try to understand what you would like to do...
I would generate a dialog with all buttons (bmp) for each lotto nummer. (design the lotto form) At that point, you have a button for each number that can interact with clicks and change the button into a square and/or other color etc... Printing will be something like a lottoform jpg to print and position the squares on it. As always... easier said than done )))[/quote:k3q9yrc8]
l
there are many points to draw not only 90 numbers
i have tried with some coordinates and it works great I just don't understand how to have the blink as if it were a cursor |
xbrowse bchange -> display box | [quote="Detlef":95po5u8p]try to show an animated gif which is blinking at the desired position.[/quote:95po5u8p]
Detlef,
that is an example, I have to insert a black pixel in all squares of the module
if it was blinking it was better because it displayed to the user where the pixel was located
I have problems with BITMAP AND IMAGE because the image is not clear,
If I use a Png file with XIMAGE AND BITMAP I have to use freeImage.dll and in any case the image is not clear, because I have to insert it all in a dialog, the user must enter the coordinates where the pixels are placed, if I use adjust the image is not clear
If I use ximage the image is clear but then the Draw function of the example above is not compatible and makes an error and I did not understand how I can modify it.
[img:95po5u8p]https://i.postimg.cc/SKRnLK8H/test.jpg[/img:95po5u8p] |
xbrowse bchange -> display box | Sorry, Silvio,
I made an error answering the wrong topic.
See you there... |
xbrowse bchange -> display box | Silvio,
I understand your problem.
Unfortunately I'm on voyage at the moment.
I'll send you a formula for finding the correct place of each number later today.
Pleased, tell me the perimeter of one of the circles.
Regards, Detlef |
xbrowse bchange -> display box | [quote="Detlef":vuxeacp5]Silvio,
I understand your problem.
Unfortunately I'm on voyage at the moment.
I'll send you a formula for finding the correct place of each number later today.
Pleased, tell me the perimeter of one of the circles.
Regards, Detlef[/quote:vuxeacp5]
Pls see another topic I wrote on forum I explained all akso measures, I have problem also to print it |
xbrowse bitmap from resource | hi,
inside my .res file there are Bitmaps "RED" and "GREEN" (a little ball) and I link .res when compile.
how can I show bmp inside my XBROWSE after EMAIL column depending on EMAIL value (in EMAIL there is 1 for green or 2 for red numeric value) ?:
[code=fw:396z09a7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> oColB<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">IMAGE</span> oBmp <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"RED"</span><br />...<br /> @ <span style="color: #000000;">40</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-50</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CNTINS"</span> ;<br /> COLUMNS <span style="color: #ff0000;">"TPLET"</span>, <span style="color: #ff0000;">"EMAIL"</span> ;<br /> HEADERS <span style="color: #ff0000;">"Let."</span>,<span style="color: #ff0000;">"Mail"</span> ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> ; <br /> <span style="color: #0000ff;">OF</span> oDlg2<br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:396z09a7]
thank you |
xbrowse bitmap from resource | Parte del código ejemplo en testxbrw.prg
[code=fw:2vlk4rwt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"GREEN"</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"RED"</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Married"</span><br /> oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || iif<span style="color: #000000;">(</span> _FIELD->Married, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || iif<span style="color: #000000;">(</span> _FIELD->Married, <span style="color: #ff0000;">"Yes"</span>, <span style="color: #ff0000;">"No "</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> || _FIELD->Married <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">nDataStyle</span> := oCol:<span style="color: #000000;">DefStyle</span><span style="color: #000000;">(</span> AL_RIGHT, .T.<span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">nEditType</span> := EDIT_LISTBOX<br /> oCol:<span style="color: #000000;">aEditListTxt</span> := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Yes"</span>, <span style="color: #ff0000;">"No"</span><span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">aEditListBound</span> := <span style="color: #000000;">{</span> .t., .f. <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o, v| <span style="color: #000000;">(</span>DBRLOCK<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, _FIELD->Married := v, DBUNLOCK<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:2vlk4rwt] |
xbrowse bitmap from resource | thank you Leandro |
xbrowse bmp border | Estimados amigos,
¿Se puede forzar a que en una determinada columna de un xbrowse se muestre los bitmaps con reborde alrededor del bitmap? |
xbrowse bmp border | Fernando,
te serviría modificar el bitmap y dibujar el recuadro en él ?
O por alguna causa no puedes modificarlo ? |
xbrowse bmp border | Antonio,
En las columnas muestro una u otra imagen dependiendo del valor de campo, pudiéndose mostrar una imagen vacía si el campo esta vacío.
El problema es que los clientes se han quejado porque es difícil seguir las filas y columnas.
El browse se muestra sin bordes horizontales ni verticales, aunque si cambia cada fila de color (pares/impares).
son unas cuantas imágenes y lo preguntaba por si había una forma sencilla de poder hacerlo.
Actualmente, a veces se ve un pequeño recuadro que yo no dibujo
[url=http://imageshack.us/photo/my-images/208/45yz.png/:2wtn4jjz][img:2wtn4jjz]http://img208.imageshack.us/img208/9198/45yz.png[/img:2wtn4jjz][/url:2wtn4jjz]
Uploaded with [url=http://imageshack.us:2wtn4jjz]ImageShack.us[/url:2wtn4jjz]
Si es complicado modifico cada imagen y listo. |
xbrowse bmp border | You can set xbrowse to draw vertical and horizontal lines.
oBrw:nRowDividerStyle := 1
oBrw:nColDividerStyle := 1
That is the proper answer to the customers' complaint |
xbrowse bmp border | Rao,
Gracias,
Pero rellenar todo el browse de rallas hace que no sea mas complicado leer todos los registros, no sólo las columnas con imágenes. |
xbrowse bmp border | Fernando
Quizas si cambias el fondo de la columna puedas conseguir ese efecto
oXBrw:aCols[n]:bClrSel := { || { , CLR_BLACK } }
ó
oXBrw:aCols[n]:bClrStd := { || { , CLR_BLACK } }
Quizas dependa tambien si tienes ajustada la imagen para que ocupe toda la columna o no. |
xbrowse bmp border | Cristobal,
Gracias, voy a probar el resultado.
Sino, cambiare las imagenes. |
xbrowse border.... smudge | look this
[img:2xmbabj9]https://i.postimg.cc/m2BqWMbr/Y.png[/img:2xmbabj9]
[b:2xmbabj9]Do you happen to notice something strange?[/b:2xmbabj9]
I made :
@ 120, 02 XBROWSE oBrowse OF oDlg....NOBORDER
WITH OBJECT oBrowse
:lDrawBorder := .t.
:nClrBorder := Rgb(195,195,185)
...
now I see you here is [b:2xmbabj9]the error [/b:2xmbabj9]
[img:2xmbabj9]https://i.postimg.cc/s2jDB19f/hgh.png[/img:2xmbabj9]
but my client pointed out [b:2xmbabj9]this smudge to me[/b:2xmbabj9]
[img:2xmbabj9]https://i.postimg.cc/SRCJ63Xm/sbaffo.jpg[/img:2xmbabj9] |
xbrowse borrar todo el contenido | Estimado foro,
Estoy trabajando con xbrowse y necesito encontrar la forma de borrar todo el contenido de xbrowse sin que quede ningún elemento, que quede tal cual como cuando inicia por primera vez (vacio).
Una vez que ya le he agregado algún elemento al array aPedido no encuentro la forma de borrar todos los elementos y que quede vacio.
Ejemplo:
Function Pedidos()
local aPedido,oBrwPed
aPedido :={}
REDEFINE XBROWSE oBrwPed ID 4001 OF oDlg ;
COLUMNS { 1,2,5,6,7,3 } ;
COLSIZES { 47,240,50,70,95,80 };
HEADERS {'Cant','Descripción del Producto',;
'Stock'+CRLF+'Actual',;
'Precio'+CRLF+'Unitario','TOTAL'+CRLF+'a Pr. de Lista',;
'Laboratorio' } ;
ARRAY aPedido
REDEFINE BTNBMP oBtn RESOURCE 'b_xbasura' ID 4017 OF oDlg ;
ACTION (Sound(),aPedido:={{0,'','',0,0,0,0,0,0,0} },;
oBrwPed:SetArray(aPedido),;
oBrwPed:Refresh(),;
oBrwPed:aSelected:={},;
oBrwPed:aCols[2]:cFooter:=0,oBrwPed:maketotals()) CENTER ;
TOOLTIP {'Elimina Todos los Productos del Nuevo Pedido'}
RETU .T.
Hasta ahora solo lo consigo utilizando el método SetArray con un array definido con un elemento en blanco, pero mi idea es que no quede ningún elemento en el xbrowse.
Muchas gracias por su ayuda,
Saludos Mariano |
xbrowse borrar todo el contenido | Prueba con:
[code=fw:3jnxcdbl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrwPed:<span style="color: #000000;">aArrayData</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br />oBrwPed:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:3jnxcdbl] |
xbrowse bseek and autosort | Hello
Bseek is only evaluated when autosort is set (method setrdd)
If we do not use the autosort feature , and just use csortorder for a column, bseek is not evaluated
is it an intentional behaviour ?
Richard |
xbrowse bseek and autosort | For incremental seek to work, all that is necessary is to define oBrw:bSeek codeblock. It is not necessary to specify oCol:cSortOrder. The data cSortOrder is used only for header click action to resort the column.
XBrowse creates this codeblock [b:1xunfkrs]automatically[/b:1xunfkrs] if autosort is specified.
If we do not want autosort feature but only incremental seek, we can define our own oBrw:bSeek codeblock and that is all that is needed. |
xbrowse bug fwh 10.8 | Good morning
A new bug has been introduced in fwh 10.8 concerning columns header sortorder
this is the error.log
Error description: Error BASE/1004 Message not found: TXBROWSE:ALIAS
Args:
Stack Calls
===========
Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR(166)
Called from: C:\CBATI32\xbrowse.prg => TXBROWSE:ALIAS(7350)
Called from: C:\CBATI32\xbrowse.prg => TXBRWCOLUMN:SETORDER(10782)
Called from: C:\CBATI32\xbrowse.prg => TXBRWCOLUMN:HEADERLBUTTONUP(9629)
Called from: C:\CBATI32\xbrowse.prg => TXBROWSE:LBUTTONUP(3209)
the code used
[code=fw:1kmn8n8w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> ODLG ;<br /> FIELDS ,PROD->PID,PROD->PRODUIT,PROD->LUNITE ,PROD->PUHT,PROD->FAMILLE,PROD->FOURNOM ;<br /> HEADERS ,<span style="color: #ff0000;">"Code"</span> + CRLF + <span style="color: #ff0000;">"Article"</span>,<span style="color: #ff0000;">"Désignation"</span>,<span style="color: #ff0000;">"Unité"</span>,<span style="color: #ff0000;">"Px Vente"</span> + CRLF + <span style="color: #ff0000;">"Unit.HT"</span>,<span style="color: #ff0000;">"Famille"</span>,<span style="color: #ff0000;">"Fournisseur"</span> ;<br /> PICTURES <span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #ff0000;">"@Z 999 999 999.99"</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span> ;<br /> COLORS <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> CLR_BLUE, COULDLG<span style="color: #000000;">(</span><span style="color: #ff0000;">"TD"</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">FONT</span> AFONT ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROD"</span> lines<br /><br /> BMPADDCOL<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">01</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">01</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || PROTABLE<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">02</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cSortOrder</span> := <span style="color: #ff0000;">"PID"</span> <span style="color: #B900B9;">// offending line</span><br /><br /> </div>[/code:1kmn8n8w] |
xbrowse bug fwh 10.8 | Please see
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19820">viewtopic.php?f=3&t=19820</a><!-- l --> |
xbrowse bug fwh 10.8 | Thank you MR Rao ,
I had not seen Otto's post
Regards |
xbrowse bug pressing ESC key | Hi,there is a bug in xbrowse (FWH April) when it is in a dialog and an ESC key is pressed when the xbrowse has the focus.This is a self-contained that show the problem <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/xtest.zip">www.softwarexp.co.uk/beta/xtest.zip</a><!-- w --> Try to press the esc key and you will see that the exit confirm clause will be called two times.Any solution ?Thanks in advance |
xbrowse bug pressing ESC key | Marco,Please comment the line 1611 in source\classes\xbrowse.prg: // PostMessage( ::oWnd:hWnd, WM_KEYDOWN, VK_ESCAPE ) |
xbrowse button bar size | Hi,
How do I set the size of the button bar in xbrowse? In skins it has the correct size but it is not obeyed in the executable.
My code:
REDEFINE BUTTONBAR oBar1 ID 100 OF oDlgMail BORDER 2007
Thanks! |
xbrowse button bar size | [quote="wartiaga":2udzhuiy]Hi,
How do I set the size of the button bar in xbrowse? In skins it has the correct size but it is not obeyed in the executable.
My code:
REDEFINE BUTTONBAR oBar1 ID 100 OF oDlgMail BORDER 2007
Thanks![/quote:2udzhuiy]
With the SIZE command :
DEFINE BUTTONBAR oBar OF oWnd 2007 SIZE 70, 60 |
xbrowse button bar size | [quote="Marc Venken":1o9vzq8w][quote="wartiaga":1o9vzq8w]Hi,
How do I set the size of the button bar in xbrowse? In skins it has the correct size but it is not obeyed in the executable.
My code:
REDEFINE BUTTONBAR oBar1 ID 100 OF oDlgMail BORDER 2007
Thanks![/quote:1o9vzq8w]
With the SIZE command :
DEFINE BUTTONBAR oBar OF oWnd 2007 SIZE 70, 60[/quote:1o9vzq8w]
Thank you but not work, I think the problem is in pelles, how i can define the control in pelles? |
xbrowse cambia el font cuando temino de editar | hola.
Estoy editando sobre un array en xbrowse, cuando tipeo en la celda me muestra con la fuente y tamaño que deseo,
pero cuando termino de editar me cambia el tipo de fuente y tamaño, me muestra con una fuente estarndar.
Que hago mal?
gracias. |
xbrowse cambia el font cuando temino de editar | Buen dia, colocando algo de codigo, creo seria mas facil tratar de ayudarte, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
xbrowse cambia el font cuando temino de editar | [code=fw:39nu0d2t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> pantalla<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oMetro, c_Path, c_Path1, oFontLarge, oFontBig, oFontSmall, oWnd, oBrw<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBig <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;">80</span> BOLD ITALIC<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontLarge <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;">50</span> BOLD ITALIC<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontSmall <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;">20</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_MAXIMIZE <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_BLUE<br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br /> Array ::<span style="color: #000000;">aOpciones</span> ;<br /> <span style="color: #0000ff;">SIZE</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">267</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> CELL FASTEDIT <span style="color: #0000ff;">AUTOCOLS</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> nRGB<span style="color: #000000;">(</span><span style="color: #000000;">140</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span><span style="color: #000000;">229</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15512898</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">2</span><br /> :<span style="color: #000000;">ltransparent</span>:= .T.<br /><br /> :<span style="color: #000000;">lRecordSelector</span> := .F.<br /><br /> :<span style="color: #000000;">lColDividerComplete</span> := .F.<br /> :<span style="color: #000000;">nRowDividerStyle</span> := <span style="color: #000000;">4</span><br /> <span style="color: #B900B9;">// :nStretchCol := STRETCHCOL_LAST</span><br /> :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">230</span><br /> :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">230</span><br /> :<span style="color: #000000;">lHScroll</span>:=.F.<br /> :<span style="color: #000000;">lvscroll</span>:=.F.<br /> END WITH<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /><br /> :<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">cHeader</span>:=<span style="color: #ff0000;">"Entrada"</span><br /><br /> :<span style="color: #000000;">odatafont</span> := oWnd:<span style="color: #000000;">oFont</span><br /> :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br /> :<span style="color: #000000;">cEditPicture</span>:= <span style="color: #ff0000;">'99999999'</span><br /><br /> :<span style="color: #000000;">bOnPostEdit</span> = <span style="color: #000000;">{</span> | oCol, xVal, nKey | ::<span style="color: #000000;">aOpciones</span><span style="color: #000000;">[</span> oBrw:<span style="color: #000000;">nArrayAt</span>,<span style="color: #000000;">1</span><span style="color: #000000;">]</span> := xVal, oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">selectcol</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> END WITH<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">cHeader</span>:=<span style="color: #ff0000;">"Salida"</span><br /><br /> :<span style="color: #000000;">odatafont</span> := oFontLarge<br /> :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /> END WITH<br /><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> | oCol | oCol:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> AEval<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">aCols</span>,<span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">bRClickHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #00C800;">NIL</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">oHeaderFont</span> := oFontlarge<span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">oEditFont</span> := oFontBig<span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// oWnd:oClient := oBrw</span><br /> oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><span style="color: #B900B9;">// ON INIT BUILDMETRO( oWnd, oFontLarge, oFontSmall, c_Path1 )</span><br /><br /> oFontSmall:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oFontLarge:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span></div>[/code:39nu0d2t] |
xbrowse cambia el font cuando temino de editar | [quote="goosfancito":17j3s4nj][code=fw:17j3s4nj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> pantalla<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oMetro, c_Path, c_Path1, oFontLarge, oFontBig, oFontSmall, oWnd, oBrw<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBig <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;">80</span> BOLD ITALIC<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontLarge <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;">50</span> BOLD ITALIC<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontSmall <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;">20</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_MAXIMIZE <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_BLUE<br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br /> Array ::<span style="color: #000000;">aOpciones</span> ;<br /> <span style="color: #0000ff;">SIZE</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">267</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> CELL FASTEDIT <span style="color: #0000ff;">AUTOCOLS</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> nRGB<span style="color: #000000;">(</span><span style="color: #000000;">140</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span><span style="color: #000000;">229</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15512898</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">2</span><br /> :<span style="color: #000000;">ltransparent</span>:= .T.<br /><br /> :<span style="color: #000000;">lRecordSelector</span> := .F.<br /><br /> :<span style="color: #000000;">lColDividerComplete</span> := .F.<br /> :<span style="color: #000000;">nRowDividerStyle</span> := <span style="color: #000000;">4</span><br /> <span style="color: #B900B9;">// :nStretchCol := STRETCHCOL_LAST</span><br /> :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">nHeaderHeight</span> := <span style="color: #000000;">230</span><br /> :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">230</span><br /> :<span style="color: #000000;">lHScroll</span>:=.F.<br /> :<span style="color: #000000;">lvscroll</span>:=.F.<br /> END WITH<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /><br /> :<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">cHeader</span>:=<span style="color: #ff0000;">"Entrada"</span><br /><br /> :<span style="color: #000000;">odatafont</span> := oWnd:<span style="color: #000000;">oFont</span><br /> :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br /> :<span style="color: #000000;">cEditPicture</span>:= <span style="color: #ff0000;">'99999999'</span><br /><br /> :<span style="color: #000000;">bOnPostEdit</span> = <span style="color: #000000;">{</span> | oCol, xVal, nKey | ::<span style="color: #000000;">aOpciones</span><span style="color: #000000;">[</span> oBrw:<span style="color: #000000;">nArrayAt</span>,<span style="color: #000000;">1</span><span style="color: #000000;">]</span> := xVal, oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">selectcol</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /> END WITH<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span><br /> :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br /> :<span style="color: #000000;">cHeader</span>:=<span style="color: #ff0000;">"Salida"</span><br /><br /> :<span style="color: #000000;">odatafont</span> := oFontLarge<br /> :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /> END WITH<br /><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> | oCol | oCol:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> AEval<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">aCols</span>,<span style="color: #000000;">{</span>|o| o:<span style="color: #000000;">bRClickHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #00C800;">NIL</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">oHeaderFont</span> := oFontlarge<span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">oEditFont</span> := oFontBig<span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// oWnd:oClient := oBrw</span><br /> oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><span style="color: #B900B9;">// ON INIT BUILDMETRO( oWnd, oFontLarge, oFontSmall, c_Path1 )</span><br /><br /> oFontSmall:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oFontLarge:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span></div>[/code:17j3s4nj][/quote:17j3s4nj]
Revisa columna 1,
<!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->datafont := oWnd:oFont |
xbrowse cell colors | Hi All
When a window with a cell type xbrowse loses focus the color of the cell is black and the
data in the cell cant be read - is this controlled by windows or can it be changed.
oLbx2 := TXBrowse():New(oDlg)
oLbx2:nMarqueeStyle := MARQSTYLE_HIGHLCELL
oLbx2:nColDividerStyle := LINESTYLE_BLACK
oLbx2:nRowDividerStyle := LINESTYLE_BLACK
oLbx2:lColDividerComplete := TRUE
//oLbx:lFastEdit := TRUE
oLbx2:nDatalines := 1
//oLbx:bChange := {|| MsgInfo('move') }
oLbx2:oDbf := oPrjTemp
oLbx2:lHScroll := FALSE
oLbx2:nStretchCol := STRETCHCOL_LAST
Cheers
Colin |
xbrowse cell colors | Try
oBrw:bClrSel
for eg.
[code=fw:2zm40qdt]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bClrSel</span>:=<span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> nTextClr, nBackClr <span style="color: #000000;">}</span> <span style="color: #000000;">}</span></div>[/code:2zm40qdt]
Regards
Anser |
xbrowse cell colors | Hi Anser
Thanks - that fixed it
Cheers
Colin |
xbrowse change bitmap in execution | Hi all,
I have a xbrowse, in firt colum i have a bitmap
oCol := oBrw:AddCol()
oCol:AddResource("CHECKOFF")
oCol:AddResource("CHECKON")
oCol:bBmpData := { || 2, 1 }
oBrw:bKeyDown := {|nKey| Seleg(nkey)}
In Seleg() i have a code to check if it marked a want to change the bitmap to unmarket and vice-versa.
I try but if i choose other bitmap the all column 1 changes, i have to change just a bitmap in select line in xbrowse.
Thanks in advance. |
xbrowse change bitmap in execution | Hello Wanderson,
This part changes the Col-Bitmap on Cell-Mouseclick from Green to Red ( from sample [color=#FF0000:wx050qnp]TESTXBRW.prg [/color:wx050qnp]) :
[color=#0000FF:wx050qnp]oCol := oBrw:oCol( "Married" )
oCol:SetCheck( { "GREEN", "RED" }, {|o, v| (DBRLOCK(), _FIELD->Married := v, DBUNLOCK() ) } )
oCol:bStrData := { || If( _FIELD->Married, "Yes", "No" ) }
oCol:nDataStrAlign := AL_RIGHT[/color:wx050qnp]
Best regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
xbrowse change bitmap in execution | Thanks Ukoening but i want to press key M to go a funcion. In there i want to change a bmp cause i have many others thins to do if i press M.
How i can do this?
Regars. |
xbrowse change bitmap in execution | Ukoening my code:
oCol := oBrw:AddCol()
oCol:AddResource("CHECKON")
oCol:AddResource("CHECKOFF")
oCol:cHeader := ""
oCol:bBmpData := { || iif( _FIELD->MARK, 1, 2) }
oCol:bStrData := nil
oCol:nDataStyle := oCol:DefStyle( AL_LEFT, .T.)
* here i need to press key M and execute the function listed below
Static Function Seleciona()
******** my others codes *********
*************************************
*************************************
here i want to save _FIELD->MARK with .t. if before .f. or .f. if before .t. and i want to change a bitmap check to uncheck or vice-versa.
Thanks. |
xbrowse change bitmap in execution | [code=fw:1f3neg3q]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">{</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Chr<span style="color: #000000;">(</span>nKey<span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"Mm"</span> .and. oBrw:<span style="color: #000000;">nColSel</span> == <yourcolumnnumber>, Seleciona<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:1f3neg3q] |
xbrowse change bitmap in execution | Thanks G. N. Rao. |
xbrowse check and unckeck | Hi
I have a xbrowse with an empty array at any given time will fill this array with data and the first column to 0 for unchecked record. How to set this column with bitmap check and unckeck when clicked?
Thanks. |
xbrowse check and unckeck | Here you have an example:
[code=fw:3t8eisx7]<div class="fw" id="{CB}" style="font-family: monospace;"> WITH OBJECT oBrw:<span style="color: #000000;">InsCol</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Selected"</span><br /> :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"blackdot"</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span>, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">{</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> k == <span style="color: #000000;">32</span>, <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">CheckToggle</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END</div>[/code:3t8eisx7]
But I think that it should use a logical value instead of a zero |
xbrowse check and unckeck | [quote="Antonio Linares":1w8ivjqb]Here you have an example:
[code=fw:1w8ivjqb]<div class="fw" id="{CB}" style="font-family: monospace;"> WITH OBJECT oBrw:<span style="color: #000000;">InsCol</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Selected"</span><br /> :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"blackdot"</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span>, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">{</span> |k| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> k == <span style="color: #000000;">32</span>, <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">CheckToggle</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END</div>[/code:1w8ivjqb]
But I think that it should use a logical value instead of a zero[/quote:1w8ivjqb]
Hi thank you Antonio,
I use xbrowse with resource please tell me how i do in this case:
oCol := oBrwc:AddCol()
oCol:AddResource( "UNCHECK" )
oCol:AddResource( "CHECK" )
oCol:SetCheck( { "CHECK", nil }, .t. )
oCol:lBmpStretch := .f.
oCol:lBmpTransparent := .t.
oCol:nHeadStrAlign := oCol:nDataBmpAlign := AL_CENTER
oCol:cHeader := ""
oCol:nWidth := 18
oCol:nArrayCol := 1 |
xbrowse check and unckeck | [code=fw:11x7yap6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #B900B9;">// Testxbrw.prg y testxbrw.rc</span><br /> oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"GREEN"</span>, <span style="color: #ff0000;">"RED"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span>|o, v| <span style="color: #000000;">(</span>DBRLOCK<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, _FIELD->Married := v, DBUNLOCK<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:11x7yap6]
|
xbrowse check and unckeck | Wanderson,
myarray := { { 1, .t., "Hello" }, {2, .f., "World" } }
oBrw:aCols[2]:AddBmpHandle( "Chk_T" )
oBrw:aCols[2]:AddBmpHandle( "Chk_F" )
oCol:bBmpData := {|| IF( myArray[ oBrw:nArrayAt, 2], 1, 2) }
oCol:bStrData := { || Nil }
Regards
Paco |
xbrowse click clause | Hi,
I'am convering a LISTBOX into a XBROWSE in my program.
In a listbox I can do:
[code=fw:2lpydv0x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">listbox</span> .... ;<br />.....<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> myfunction<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> myfunction<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> </div>[/code:2lpydv0x]
In xbrowse I get an compile-error.
I Can only do:
[code=fw:2lpydv0x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xbrowse</span> .... ;<br />.....<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> myfunction<span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:2lpydv0x]
How can I execute a function after someone select that browse, even when it's not changed.
Sometimes there is is only 1 item in the browse, and I can't execute the function by selecting first something else... |
xbrowse click clause | Marc,
You can do:
oXbrowse:bLCLicked = { | nRow, nCol, nFlags | MyFunction() } |
xbrowse click clause | Thank you Antonio, it' s working fine now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xbrowse click en titulo | Estimados, estoy trabajando con Xbrowse y por el momento con ADO, y quiero ver si puedo hacer que una busqueda directa, pueda hacer con solo pinchar sobre el titulo de la columna
autosetorder, o setorder.. creo que usa xbrowse, que me funciona bien con dbf, eso existe para mysql con ado. |
xbrowse codeblock after every action | searching for a xbrowse codeblock, which triggers after every action, respectively changing the focus from one row to another one?
Still exist, or how can I define an UDF which will be triggered when focus changed to another row? |
xbrowse codeblock after every action | Hola,
did you try with bchange?
regards
Marcelo |
xbrowse codeblock after every action | I concur with Marcelo, bChange seems to be what you need. The Change() method is called from the GoUp(), GoDown(), GoLeft() and GoRight() methods. If you don't want bChange triggered when moving to another column, then check the value of lRow, it will be .F. when moving to a new column and .T. when moving to a new row.
[code=fw:2zfs9dm9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Change</span><span style="color: #000000;">(</span> lRow <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bChange</span> != <span style="color: #00C800;">nil</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> lRow := .t.<br /><br /> <span style="color: #00C800;">if</span> lRow .or. ::<span style="color: #000000;">lColChangeNotify</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bChange</span>, <span style="color: #00C800;">Self</span>, lRow <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2zfs9dm9]
Regards,
James |
xbrowse codeblock after every action | Marcelo, James,
yes, that's what I'm looking for! Thank you so much <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xbrowse cols smaller than bmp or row lower than bmp height | [img:3n33xxyn]http://www.atzwanger.com/fw/xbrw2.jpg[/img:3n33xxyn]
[img:3n33xxyn]http://www.atzwanger.com/fw/xbrw1.jpg[/img:3n33xxyn] |
xbrowse cols smaller than bmp or row lower than bmp height | Antonio, could you please have a look on this.
Thanks in advance,
Otto
Same problem:
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8134&highlight=xbrowse">http://fivetechsoft.com/forums/viewtopi ... ht=xbrowse</a><!-- m -->
At this momoent it is already possible to browse JPG files in a xBrowse()
But it only works when there is only 1 dataline. Is it possible with xBrowse to combine bitmaps and multiple datalines.
The JPG is not displayed in the middel of the column. When I give the column the exact width it is not displayed completely.
Thanks
Willy |
xbrowse cols smaller than bmp or row lower than bmp height | Antonio, I found the problem.
METHOD PaintData
If you have only a bmp elseif AL_LEFT is never executed.
I comment out the whole if endif and use:
nBmpCol := nCol
This way the bmp's are displayed correctly.
Regards
Otto
if ::bStrData == nil
nBmpCol := nCol + ( ( nWidth - aBitmap[ BITMAP_WIDTH ] ) / 2 ) + 2
elseif ::nDataBmpAlign == AL_LEFT
nBmpCol := nCol
nCol += aBitmap[ BITMAP_WIDTH ] + BMP_EXTRAWIDTH
else
nBmpCol := nCol + nWidth
endif |
xbrowse cols smaller than bmp or row lower than bmp height | Antonio
Can you apply Otto's fix to fwh 8.03
When there is no data, bmp is badly displayed,
With Otto's fix it works OK
Thanks
Richard |
xbrowse cols smaller than bmp or row lower than bmp height | Richard, Otto,
We have already implemented it for 8.03. This code is placed from line 3983:
[code:1n2wam3z]
if nBmpNo > 0 .and. nBmpNo <= Len( ::aBitmaps )
aBitmap := ::aBitmaps[ nBmpNo ]
nWidth -= aBitmap[ BITMAP_WIDTH ]
if ::bStrData == nil
nBmpCol := nCol + ( ( nWidth - aBitmap[ BITMAP_WIDTH ] ) / 2 ) + 2
elseif ::nDataBmpAlign == AL_LEFT
nBmpCol := nCol
nCol += aBitmap[ BITMAP_WIDTH ] + BMP_EXTRAWIDTH
else
nBmpCol := nCol + nWidth
endif
[/code:1n2wam3z]
Unless you mean another place for it, thanks! |
xbrowse column nHeadBmpNo called too late | Hello,
I am trying to do a xBrowse with a column with checkboxes and header with another check box to check/uncheck all. The code is pretty simple:
[code=fw:1rmsheh8]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTipiDoc <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4009</span> <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">2015</span><br /> oBrwTipiDoc:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br /> oBrwTipiDoc:<span style="color: #000000;">lFastEdit</span> := .T.<br /> ADD COLUMN <span style="color: #0000ff;">TO</span> oBrwTipiDoc ARRAY <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">""</span> ELEMENT <span style="color: #000000;">1</span> EDITABLE<br /> ADD COLUMN <span style="color: #0000ff;">TO</span> oBrwTipiDoc ARRAY <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">""</span> ELEMENT <span style="color: #000000;">2</span><br /> ADD COLUMN <span style="color: #0000ff;">TO</span> oBrwTipiDoc ARRAY <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">""</span> ELEMENT <span style="color: #000000;">3</span><br /> with object oBrwTipiDoc:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> GetCheckBoxes<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span>, .t.<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//:nEditType := EDIT_BUTTON</span><br /> <span style="color: #B900B9;">//:bEditBlock := {|r,c,o,k| oBrwTipiDoc:aArrayData[oBrwTipiDoc:nRowSel,1] := !oBrwTipiDoc:aArrayData[oBrwTipiDoc:nRowSel,1] }</span><br /> <span style="color: #B900B9;">//:bEditValue := {|r,c,o,k| oBrwTipiDoc:aArrayData[oBrwTipiDoc:nRowSel,1] := !oBrwTipiDoc:aArrayData[oBrwTipiDoc:nRowSel,1] }</span><br /> :<span style="color: #000000;">nHeadBmpNo</span> := <span style="color: #000000;">{</span> || GetHeadBmpId<span style="color: #000000;">(</span>oBrwTipiDoc:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> end<br /> oBrwTipiDoc:<span style="color: #000000;">SetArray</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span>;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"OF"</span>,<span style="color: #ff0000;">"Ordine fornitore"</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"SR"</span>,<span style="color: #ff0000;">"Scarti per rottira"</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"SL"</span>,<span style="color: #ff0000;">"Scarti per lavorazione"</span><span style="color: #000000;">}</span>;<br /> <span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /> </div>[/code:1rmsheh8]
and the GetHeadBmpId is
[code=fw:1rmsheh8]<div class="fw" id="{CB}" style="font-family: monospace;">func GetHeadBmpId<span style="color: #000000;">(</span>aArrayData<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> aScan<span style="color: #000000;">(</span>aArrayData, <span style="color: #000000;">{</span>|x| !x<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span><span style="color: #000000;">)</span>==<span style="color: #000000;">0</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> aScan<span style="color: #000000;">(</span>aArrayData, <span style="color: #000000;">{</span>|x| x<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span><span style="color: #000000;">)</span>==<span style="color: #000000;">0</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">3</span></div>[/code:1rmsheh8]
So if there are all checked shows 1-checked, it there are none checked shows 2-unchecked other cases shows 3-indefinite. My problem is that If I change a check box, with double click the header is not updated until the next render.
I did an example gif:
[img:1rmsheh8]https://i.imgur.com/8kI4WX5.gif[/img:1rmsheh8]
Can I fix it?
PS. There is a possibility to check/uncheck with one click without select the row?
PPS. The GetCheckBoxes is the one I posted some time ago:
[code=fw:1rmsheh8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> DFC_BUTTON <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> DFCS_BUTTONCHECK 0x0000<br /><span style="color: #00D7D7;">#define</span> DFCS_CHECKED 0x0400<br /><span style="color: #00D7D7;">#define</span> DFCS_INACTIVE 0x0100<br /><span style="color: #00D7D7;">#define</span> BP_CHECKBOX <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> CBS_UNCHECKEDNORMAL <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> CBS_CHECKEDNORMAL <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> CBS_MIXEDNORMAL <span style="color: #000000;">9</span><br /><br /><span style="color: #00C800;">function</span> GetCheckBoxes<span style="color: #000000;">(</span>oWnd<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> hDCMem, hBmpMem := <span style="color: #000000;">{</span><span style="color: #00C800;">Nil</span>,<span style="color: #00C800;">Nil</span>,<span style="color: #00C800;">Nil</span><span style="color: #000000;">}</span>,i, tmp<br /> <span style="color: #00C800;">LOCAL</span> FCStates := <span style="color: #000000;">{</span>DFCS_BUTTONCHECK,nOr<span style="color: #000000;">(</span>DFCS_BUTTONCHECK,DFCS_CHECKED<span style="color: #000000;">)</span>,nOr<span style="color: #000000;">(</span>DFCS_BUTTONCHECK,DFCS_INACTIVE<span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> TMStates := <span style="color: #000000;">{</span>CBS_CHECKEDNORMAL,CBS_UNCHECKEDNORMAL,CBS_MIXEDNORMAL<span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> oTheme := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">if</span> IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oTheme = C5_OpenThemeData<span style="color: #000000;">(</span>oWnd:<span style="color: #000000;">hWnd</span>,<span style="color: #ff0000;">"BUTTON"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">3</span><br /> hDCMem := CreateCompatibleDC<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hBmpMem<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := CreateCompatibleBitmap<span style="color: #000000;">(</span> oWnd:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">16</span> <span style="color: #000000;">)</span><br /> tmp := SelectObject<span style="color: #000000;">(</span> hDCMem, hBmpMem<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /> FillRect<span style="color: #000000;">(</span> hDCMem,<span style="color: #000000;">{</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">16</span>,<span style="color: #000000;">16</span><span style="color: #000000;">}</span>, GetStockObject<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> oTheme != <span style="color: #000000;">0</span><br /> C5_DrawThemeBackground<span style="color: #000000;">(</span>oTheme, hDCMem, BP_CHECKBOX,TMStates<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>,<span style="color: #000000;">{</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">15</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> DrawFrameControl<span style="color: #000000;">(</span>hDCMem,<span style="color: #000000;">{</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">15</span><span style="color: #000000;">}</span>, DFC_BUTTON,FCStates<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> SelectObject<span style="color: #000000;">(</span> hDCMem, tmp <span style="color: #000000;">)</span><br /> DeleteDC<span style="color: #000000;">(</span> hDCMem <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /> <span style="color: #00C800;">if</span> oTheme!=<span style="color: #000000;">0</span><br /> C5_CloseThemeData<span style="color: #000000;">(</span>oTheme<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> hBmpMem</div>[/code:1rmsheh8]
PPPS: sorry for italian messages |
xbrowse column nHeadBmpNo called too late | Please add this
[code=fw:1bxaq0z7]<div class="fw" id="{CB}" style="font-family: monospace;">oBrwTipiDoc:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bOnChange</span> := <span style="color: #000000;">{</span>|o|o:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">RefreshHeaders</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> </div>[/code:1bxaq0z7] |
xbrowse column nHeadBmpNo called too late | Recommendations:
Please avoid using ADD COLUMN TO oBrw.
This syntax was created long time back only to help easy migration of already existing code from TCBrowse.
Also we better inform the xbrowse that the datasource is the array while creating the browse.
Recommended syntax:
[code=fw:20pv0ynv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aData := <span style="color: #000000;">{</span>;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"OF"</span>,<span style="color: #ff0000;">"Ordine fornitore"</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"SR"</span>,<span style="color: #ff0000;">"Scarti per rottira"</span><span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span>.T.,<span style="color: #ff0000;">"SL"</span>,<span style="color: #ff0000;">"Scarti per lavorazione"</span><span style="color: #000000;">}</span>;<br /> <span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTipiDoc <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4009</span> <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">2015</span> ;<br /> DATASOURCE aData ; <span style="color: #B900B9;">// Let xbrowse know that it is dealing with an array</span><br /> COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span> ;<br /> HEADERS <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span> <br /> </div>[/code:20pv0ynv] |
xbrowse columna | así como la congelación de la columna, no deje que esta columna se centrará ...por ejemplo, la columna 3 no tendrá la atención, cuando estás en la columna 2 y oprima la flecha derecha ira directamente a 4.GraciasLuiz Fernando |
xbrowse columna | Nadie?... |
xbrowse com MultiSelec y Bitmaps | Amigos:Me uno a la peticion de Ale <!-- m --><a class="postlink" href="http://67.222.39.232/forums/viewtopic.php?t=11187">http://67.222.39.232/forums/viewtopic.php?t=11187</a><!-- m -->para dejar tWbrowse de HDC, necesito esta posibilidad.Muchas gracias.SaludosRuben Fernandez. |
xbrowse com um só registro | Ola,
Tenho um xbrowse de um arquivo vazio. Quando gravo alguns registro neste arquivo e refresco o xbrowse me mostra somente o primeiro registro.
Alguma idéia?
...
oTemp072:Zap()
oBrw := TXBrowse():New( oDlg )
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:CreateFromResource( 4047 )
oBrw:nColDividerStyle := 5 //LINESTYLE_BLACK // COLUNAS
oBrw:lColDividerComplete := .T.
oBrw:nHeaderHeight :=30
oBrw:nStretchCol := STRETCHCOL_LAST
oBrw:bClrRowFocus := { || { CLR_BLACK, RGB( 150,231,70 ) } }
oBrw:cAlias("TEMP072")
oBrw:l2007:=.t.
oBrw:bClrSel:={ || { CLR_BLACK, RGB(185,220,255) } }
oCol := oBrw:AddCol()
oCol:AddResource("CHECKON")
oCol:AddResource("CHECKOFF")
oCol:cHeader := ""
oCol:bBmpData := { || iif( TEMP072->MARCADO, 1, 2) }
oCol:bStrData := nil
oCol:nDataStyle := oCol:DefStyle( AL_LEFT, .T.)
oCol := oBrw:AddCol()
oCol:bStrData := { || TEMP072->BOLETO}
oCol:cHeader := "Nº BOLETO"
........
For x = 1 to 32
oTemp072:Blank()
oTemp072:Boleto := strzero(x,6,0)
oTemp072:Append()
oTemp072:Save()
Next x
oTemp072:Commit()
oBrw:Refresh() <<<<<---------------------- aqui so mostra 1 registro no xbrowse
Gracias. |
xbrowse com um só registro | Si haces oTemp072:GoTop() o oBrw:GoTop() para que vaya al principio del archivo de nuevo?
Porque la rutina que pusiste el registro queda parado en el ultimo. |
xbrowse com um só registro | [quote="cmsoft":16bwiipk]Si haces oTemp072:GoTop() o oBrw:GoTop() para que vaya al principio del archivo de nuevo?
Porque la rutina que pusiste el registro queda parado en el ultimo.[/quote:16bwiipk]
Gracias no funciona veja:
[img:16bwiipk]http://i66.tinypic.com/1zn3cap.jpg[/img:16bwiipk] |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":dd6ouggr]In the meantime try
[code=fw:dd6ouggr]<div class="fw" id="{CB}" style="font-family: monospace;"> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE oTb ;<br /> COLUMS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> ;<br /> HEADERS <span style="color: #ff0000;">"CODIGO"</span>, <span style="color: #ff0000;">"NOMBRE"</span> ;<br /> LINES CELL <br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:dd6ouggr][/quote:dd6ouggr]
I fixed the problem on FieldPos().
Now I get this
[quote:dd6ouggr]
Called from E1FIELDGET(0)
Called from TMSQUERY:FIELDGET(639) in source\prg\msquery.prg
Called from MXCTAALM(26) in source\Mxctaalm.prg
Called from (b)CLINICA32WIN(69) in source\Clinica32win.prg
Called from TBTNBMP:CLICK(713) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(999) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1817) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(2051) in .\source\classes\BTNBMP.PRG
Called from _FWH(3559) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(1097) in .\source\classes\WINDOW.PRG
Called from CLINICA32WIN(138) in source\Clinica32win.prg
Called from MAIN(6) in source\Clinica32.prg
------------------------------------------------------------------------
[/quote:dd6ouggr]
Silly question , for xbrowse class, FieldGet is character or number? Same for FieldName data type??
Thanks again |
xbrowse command not working properly -- MR. RAO | Hello,
I am using the xbrowse command to add columns but it brings me empty the browse. My datasource is defined as follows
[code=fw:20jpdhkt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSql:= <span style="color: #ff0000;">"SELECT * FROM MXCTAALM"</span><br />oTb:= TMSQuery<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oAp:<span style="color: #000000;">oMySql</span>, cSql <span style="color: #000000;">)</span><br /> </div>[/code:20jpdhkt]
[code=fw:20jpdhkt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE oTb;<br /> LINES CELL AUTOSORT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oTb, .F. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// USAR .F.</span><br /> :<span style="color: #000000;">nHeaderLines</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nFreeze</span> := <span style="color: #000000;">0</span><br /> :<span style="color: #000000;">lHeader</span> := .T.<br /> :<span style="color: #000000;">l2007</span> := .F.<br /> :<span style="color: #000000;">lFooter</span> := .F.<br /> :<span style="color: #000000;">lHScroll</span> := .T.<br /> :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">14671839</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> :<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nClrText, nClrPane1 <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span>oFont<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span>nClrText, IIF<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, nClrPane1, nClrPane2 <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">{</span>|| Editar<span style="color: #000000;">(</span> oBrw, .F. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span>|| MuestraRegis<span style="color: #000000;">(</span> oBrw, cMsg <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> END<br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> oWnd:<span style="color: #000000;">oClient</span> = oBrw<br /> </div>[/code:20jpdhkt]
[url=https://imgbb.com/:20jpdhkt][img:20jpdhkt]https://i.ibb.co/c1pHdsh/Screenshot-1.png[/img:20jpdhkt][/url:20jpdhkt]
[url=https://es.imgbb.com/:20jpdhkt]convertir gif en imagenes[/url:20jpdhkt]
It is a table of 4 columns which it shows and 6 records which it shows but empty.
How do I resolve this incident? |
xbrowse command not working properly -- MR. RAO | [code=fw:11iuu6tg]<div class="fw" id="{CB}" style="font-family: monospace;">oTb:= TMSQuery<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oAp:<span style="color: #000000;">oMySql</span>, cSql <span style="color: #000000;">)</span><br /> </div>[/code:11iuu6tg]
May I know what is the class TMSQuery? What library are you using? Please explain in detail.
Just like I do not know this class, XBrowse also does not know this class and so it can not help.
XBrowse can identify ADO Recordset, TDolphin, TMySql and FWH own mysql classes. (for mysql)
Please give us more details about the library and the class. |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":o4qlhr5x][code=fw:o4qlhr5x]<div class="fw" id="{CB}" style="font-family: monospace;">oTb:= TMSQuery<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oAp:<span style="color: #000000;">oMySql</span>, cSql <span style="color: #000000;">)</span><br /> </div>[/code:o4qlhr5x]
May I know what is the class TMSQuery? What library are you using? Please explain in detail.
Just like I do not know this class, XBrowse also does not know this class and so it can not help.
XBrowse can identify ADO Recordset, TDolphin, TMySql and FWH own mysql classes. (for mysql)
Please give us more details about the library and the class.[/quote:o4qlhr5x]
It is an Eagle1 command to bring SQL results. |
xbrowse command not working properly -- MR. RAO | I do not know the methods of this class. So xbrowse does not know.
Now, let us make this work.
Please let me know:
What are the methods to
1. GoTop (eg: oTb:GoTop() )
2. GoBottom
3. GoTo( nthRecord )
4. Bof()
5. Eof()
How do we access and assign field values?
Is it similar to other classes like
x := oTb:fieldname
oTb:fieldname := x
? |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":sdanznvn]I do not know the methods of this class. So xbrowse does not know.
Now, let us make this work.
Please let me know:
What are the methods to
1. GoTop (eg: oTb:GoTop() )
2. GoBottom
3. GoTo( nthRecord )
4. Bof()
5. Eof()
How do we access and assign field values?
Is it similar to other classes like
x := oTb:fieldname
oTb:fieldname := x
?[/quote:sdanznvn]
Thanks Mr Rao
[code=fw:sdanznvn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">1</span>.- GoTop -------> oTb:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">2</span>.- GoBottom ---> oTb:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">3</span>.- Bof -----------> oTb:<span style="color: #000000;">Bof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">4</span>.- Eof -----------> oTb:<span style="color: #000000;">Eof</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />x:= oTb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> nCol <span style="color: #000000;">)</span><br /><br /> </div>[/code:sdanznvn]
Let me know if you have any other concern |
xbrowse command not working properly -- MR. RAO | Can I also assume that:
1. oTb:RecCount() --> number of rows?
2. oTb:RecNo() --> current row/record number?
3. oTb:GoTo( n ) --> Moves the record pointer to nth row?
4. oTb:Skip( +n or -n ) --> skips the record pointer by n or -n rows?
How did you define columns? |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":31qaw8kt]Can I also assume that:
1. oTb:RecCount() --> number of rows?
2. oTb:RecNo() --> current row/record number?
3. oTb:GoTo( n ) --> Moves the record pointer to nth row?
4. oTb:Skip( +n or -n ) --> skips the record pointer by n or -n rows?
How did you define columns?[/quote:31qaw8kt]
Yes, sir
For column in Browse
[code=fw:31qaw8kt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">50</span><br /> oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> ||oTb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Codigo "</span><br /> </div>[/code:31qaw8kt] |
xbrowse command not working properly -- MR. RAO | Good.
Please try
[code=fw:2nfm15tf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> LINES CELL AUTOSORT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oTb, .F. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// USAR .F.</span><br /> <span style="color: #B900B9;">// add one two columns</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:2nfm15tf]
and let me know please.
I will be glad if you patiently help me to make xbrowse fully compatible with TMSQuery
Do these methods also work as expected?
fieldpos(), fieldname(), fieldlen(),fieldtype(),fielddec()
? |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":d32b7q2a]Good.
Please try
[code=fw:d32b7q2a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> LINES CELL AUTOSORT<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oTb, .F. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// USAR .F.</span><br /> <span style="color: #B900B9;">// add one two columns</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:d32b7q2a]
and let me know please.
I will be glad if you patiently help me to make xbrowse fully compatible with TMSQuery
Do these methods also work as expected?
fieldpos(), fieldname(), fieldlen(),fieldtype(),fielddec()
?[/quote:d32b7q2a]
MR Rao, in this way works Ok
[code=fw:d32b7q2a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> LINES CELL AUTOSORT<br /> <br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oTb, .F. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// USAR .F. </span><br /> :<span style="color: #000000;">nHeaderLines</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nFreeze</span> := <span style="color: #000000;">0</span><br /> :<span style="color: #000000;">lHeader</span> := .T.<br /> :<span style="color: #000000;">l2007</span> := .F.<br /> :<span style="color: #000000;">lFooter</span> := .F.<br /> :<span style="color: #000000;">lHScroll</span> := .T.<br /> :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br /> :<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">14671839</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span><br /> :<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nClrText, nClrPane1 <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span>oFont<span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span>nClrText, IIF<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, nClrPane1, nClrPane2 <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">{</span>|| Editar<span style="color: #000000;">(</span> oBrw, .F. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span>|| MuestraRegis<span style="color: #000000;">(</span> oBrw, cMsg <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">50</span><br /> oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> ||oTb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Codigo "</span><br /><br /> oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">150</span><br /> oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">{</span> ||oTb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Nombre "</span><br /> END<br /> <br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:d32b7q2a]
But not for this one
[code=fw:d32b7q2a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> COLUMS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>;<br /> LINES CELL AUTOSORT<br /> oBrw:<span style="color: #000000;">SetMySql</span><span style="color: #000000;">(</span> oTb, .F. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// USAR .F.</span><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:d32b7q2a]
[quote:d32b7q2a]
Do these methods also work as expected?
fieldpos(), fieldname(), fieldlen(),fieldtype(),fielddec()
?
[/quote:d32b7q2a]
Yes, these method work Ok as well |
xbrowse command not working properly -- MR. RAO | Does oTb:FieldGet( cFieldName ) work?
Are you using FWH2012 ?
If so, try making the following modifications to xbrowse.prg and include in your link script.
Replace line 1297
[code=fw:r0fo87op]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> elseif ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">)</span> .AND. ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:r0fo87op]
WITH
[code=fw:r0fo87op]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> elseif ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span> .or. ::<span style="color: #000000;">oMySql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMSQUERY'</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:r0fo87op]
Replace Line: 17327
[code=fw:r0fo87op]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:r0fo87op]
WITH
[code=fw:r0fo87op]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span> .or. uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMSQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:r0fo87op]
Now, please try
[code=fw:r0fo87op]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE oTb ;<br /> COLUMS <span style="color: #ff0000;">"Codigo"</span>, <span style="color: #ff0000;">"Nombre"</span> ;<br /> LINES CELL <span style="color: #B900B9;">// AUTOSORT</span><br /> <span style="color: #B900B9;">// oBrw:SetMySql( oTb, .F. ) // USAR .F. // remove this</span><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:r0fo87op] |
xbrowse command not working properly -- MR. RAO | [quote="nageswaragunupudi":3dbsv9oy]Does oTb:FieldGet( cFieldName ) work?
Are you using FWH2012 ?
If so, try making the following modifications to xbrowse.prg and include in your link script.
Replace line 1297
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> elseif ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">)</span> .AND. ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy]
WITH
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> elseif ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span> <span style="color: #000000;">)</span> .AND. <span style="color: #000000;">(</span> ::<span style="color: #000000;">oMysql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span> .or. ::<span style="color: #000000;">oMySql</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMSQUERY'</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy]
Replace Line: 17327
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy]
WITH
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">if</span> uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMYSQLQUERY'</span> <span style="color: #000000;">)</span> .or. uDataSrc:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TMSQUERY'</span> <span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy]
Now, please try
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br /> DATASOURCE oTb ;<br /> COLUMS <span style="color: #ff0000;">"Codigo"</span>, <span style="color: #ff0000;">"Nombre"</span> ;<br /> LINES CELL <span style="color: #B900B9;">// AUTOSORT</span><br /> <span style="color: #B900B9;">// oBrw:SetMySql( oTb, .F. ) // USAR .F. // remove this</span><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy][/quote:3dbsv9oy]
Hello Mr. Rao,
Changes on XBrowse.prg were made.
I got this error
[quote:3dbsv9oy]
Application Internal Error - C:\clinica32\Clinica32.exe
Terminated at: 2022-02-23 03:06:36
Unrecoverable error 6005: Exception error:
Exception Code:C0000005 ACCESS_VIOLATION
Exception Address:0015EBEA
EAX:004A5C08 EBX:00252005 ECX:004CE043 EDX:00000043
ESI:00000000 EDI:00000006 EBP:002929E1
CS:EIP:0023:0015EBEA SS:ESP:002B:00CFF7E0
DS:002B ES:002B FS:0053 GS:002B
Flags:00010206
Exception Parameters: 00000001 00252005
CS:EIP: 88 0C 1E 46 3B F7 72 EE 5F 5E 8B C3 5B C3 85 FF
SS:ESP: 01277654 02CC6BA4 00000000 0009A5E4 00252005 00000006 01277654 002929E1 00000000 00000000 00141C0D 000000AF 00000002 01258234 00000000 00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
Modules:
00090000 00479000 C:\clinica32\Clinica32.exe
77B80000 001A3000 C:\Windows\SYSTEM32\ntdll.dll
768D0000 000F0000 C:\Windows\System32\KERNEL32.DLL
769D0000 00214000 C:\Windows\System32\KERNELBASE.dll
759B0000 0009F000 C:\Windows\SYSTEM32\apphelp.dll
7BAC0000 003E6000 C:\clinica32\LIBMYSQL.dll
75F40000 0019C000 C:\Windows\System32\USER32.dll
77A40000 00018000 C:\Windows\System32\win32u.dll
754A0000 00008000 C:\Windows\SYSTEM32\VERSION.dll
76D30000 00024000 C:\Windows\System32\GDI32.dll
76BF0000 000BF000 C:\Windows\System32\msvcrt.dll
764C0000 000DC000 C:\Windows\System32\gdi32full.dll
75B10000 0007B000 C:\Windows\System32\ADVAPI32.dll
75BE0000 0007B000 C:\Windows\System32\msvcp_win.dll
75D50000 00120000 C:\Windows\System32\ucrtbase.dll
767C0000 00076000 C:\Windows\System32\sechost.dll
75E80000 000BE000 C:\Windows\System32\RPCRT4.dll
76840000 00063000 C:\Windows\System32\WS2_32.dll
76710000 000AF000 C:\Windows\System32\COMDLG32.dll
77320000 00280000 C:\Windows\System32\combase.dll
75C60000 00087000 C:\Windows\System32\shcore.dll
63450000 0002C000 C:\Windows\SYSTEM32\oledlg.dll
76470000 00045000 C:\Windows\System32\SHLWAPI.dll
760F0000 000E3000 C:\Windows\System32\ole32.dll
76D60000 005B5000 C:\Windows\System32\SHELL32.dll
762D0000 00096000 C:\Windows\System32\OLEAUT32.dll
70890000 00028000 C:\Windows\SYSTEM32\WINMM.dll
758F0000 000A3000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9625_none_508ef7e4bcbbe589\MSVCR90.dll
759A0000 0000A000 C:\Windows\SYSTEM32\Secur32.dll
632E0000 00167000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1566_none_d951c72fe1040d0f\gdiplus.dll
70810000 00072000 C:\Windows\SYSTEM32\WINSPOOL.DRV
70C10000 00210000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_a8625c1886757984\COMCTL32.dll
708C0000 00006000 C:\Windows\SYSTEM32\MSIMG32.dll
58720000 0001A000 C:\Windows\SYSTEM32\MPR.dll
75730000 00021000 C:\Windows\SYSTEM32\SSPICLI.DLL
77A60000 00025000 C:\Windows\System32\IMM32.DLL
703B0000 00074000 C:\Windows\system32\uxtheme.dll
77A90000 000D4000 C:\Windows\System32\MSCTF.dll
68390000 00094000 C:\Windows\SYSTEM32\TextShaping.dll
75650000 0000F000 C:\Windows\SYSTEM32\kernel.appcore.dll
775A0000 0005F000 C:\Windows\System32\bcryptPrimitives.dll
6C600000 000B9000 C:\Windows\SYSTEM32\textinputframework.dll
68C00000 0027E000 C:\Windows\System32\CoreUIComponents.dll
6C560000 0009B000 C:\Windows\System32\CoreMessaging.dll
6CB20000 000DB000 C:\Windows\SYSTEM32\wintypes.dll
70900000 00029000 C:\Windows\SYSTEM32\ntmarta.dll
75530000 00011000 C:\Windows\system32\napinsp.dll
754B0000 00016000 C:\Windows\system32\pnrpnsp.dll
75490000 00010000 C:\Windows\system32\wshbth.dll
74CB0000 00016000 C:\Windows\system32\NLAapi.dll
74C70000 00032000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
754D0000 00052000 C:\Windows\System32\mswsock.dll
74BE0000 00090000 C:\Windows\SYSTEM32\DNSAPI.dll
760E0000 00007000 C:\Windows\System32\NSI.dll
736F0000 0000E000 C:\Windows\System32\winrnr.dll
71420000 00008000 C:\Windows\System32\rasadhlp.dll
Called from E1FIELDPOS(0)
Called from TMSQUERY:FIELDPOS(496) in source\prg\msquery.prg
Called from TXBROWSE:SETCOLFROMMYSQL(7313) in source\xbrowse.prg
Called from TXBROWSE:SETMYSQL(6686) in source\xbrowse.prg
Called from XBRWSETDATASOURCE(17333) in source\xbrowse.prg
Called from XBROWSENEW(17096) in source\xbrowse.prg
Called from MXCTAALM(60) in source\Mxctaalm.prg
Called from (b)CLINICA32WIN(69) in source\Clinica32win.prg
Called from TBTNBMP:CLICK(713) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(999) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1817) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(2051) in .\source\classes\BTNBMP.PRG
Called from _FWH(3559) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(1097) in .\source\classes\WINDOW.PRG
Called from CLINICA32WIN(138) in source\Clinica32win.prg
Called from MAIN(6) in source\Clinica32.prg
------------------------------------------------------------------------
[/quote:3dbsv9oy]
Line TMSQUERY:FIELDPOS(496)
[code=fw:3dbsv9oy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Orden de la columna en el registro</span><br /><br /><span style="color: #00C800;">METHOD</span> FieldPos<span style="color: #000000;">(</span> cCol <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TMSQuery<br /><span style="color: #00C800;">return</span><span style="color: #000000;">(</span> E1FieldPos<span style="color: #000000;">(</span> ::<span style="color: #000000;">hMySQL</span>, cCol <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3dbsv9oy] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.