topic
stringlengths
1
63
text
stringlengths
1
577k
xbrowse:cHeader
Bueno, todo se da dependiendo del uso que tenga el xbrowse, en mi caso nunca muevo las columnas, pero esta buena tu implementacion, siempre es bueno tener alternativas a las normales, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
xbrowse:cHeader
Fernando, Me alegro que hayas podido solucionarlo. Espero que hayas quedado contento con el trabajo de estos traductores amigos mios. Son palabras tecnicas y es mas complicado, asi que si tu cliente no entendiese correctamente algun termino, contacta con ellos que seguro te ayudaran <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xbrowse:cHeader
Antonio, la empresa que va usar el sistema tanto en Inglés como en Español, esta acostumbrando a usar otros sistemas de gestión en Inglés, y han quedado muy gratamente sorprendidos de la traducción a nivel técnico. Estoy muy contento. En los correos figuran 2 nombres. El nombre y apellido del hombre me suena mucho, mucho. Me imagino que a ti te suena mucho mas. Es para estar orgulloso. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
xbrowse:cHeader
<!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> Lo que es querer ayudar a un hermano <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> me alegro de que hayan hecho un buen trabajo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> gracias!
xbrowse:cHeader
Hola, somos Marta y Manolo (cuñada y hermano de Antonio Linares). Estamos a vuestra entera disposición para cualquier traducción que en cualquier momento pudierais necesitar de español a inglés, holandés, sueco y francés y viceversa, en cualquier campo y materia. Podéis contactar con nosotros telefónicamente o por Whatsapp en el 609576551, o bien por e-mail: <!-- e --><a href="mailto:mmtraductores@gmail.com">mmtraductores@gmail.com</a><!-- e -->. Estamos muy contentos de que Fernando haya quedado satisfecho con el trabajo realizado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xbrowse:keychar() lost some 2bytes nkeys on no modal dialog
Hi, //1 Only for test lost 2 bytes word input. METHOD KeyChar( nKey, nFlags ) CLASS TXBrowse ... do case ... case nKey == VK_ESCAPE memowrit("aaa.txt",::ckeychar ) ::ckeychar:="" // a temparary data 'ckeychar' add to xbrowse class ... otherwise ::cKeyChar += Chr( nKey ) ... We open log file aaa.txt,we can found 2bytes Chinese word inputed lost some chars. While xbrowse keychar() of modal dialog works fine. // 2 for test connect to xbrowse ocol:edit METHOD KeyChar( nKey, nFlags ) CLASS TXBrowse ... do case ... case nKey == VK_ESCAPE memowrit("aaa.txt",::ckeychar ) ::ckeychar:="" // a tempary data 'ckeychar' add to xbrowse class ... otherwise ::cKeyChar += Chr( nKey ) ... elseif ( ::lFastEdit ... SysRefresh() oCol:Edit() ... method edit() class TXBrwColumn ... if ::lEditBorder WndBoxIn( ::oBrw:GetDC(), nRow-1, nCol-1, nRow + nHeight + 1, nCol + nWidth + 1) ::oBrw:ReleaseDC() endif ckey:=::obrw:ckeychar for nI := 1 To Len( cKey ) PostMessage( ::oEditGet:hWnd, WM_CHAR, Asc( Substr( cKey, nI, 1 )) ) next ni Best regards! Shuming Wang
xbrowse:keychar() lost some 2bytes nkeys on no modal dialog
Here is How to install Chinese word diaplay and input module in XP : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=19&t=22705">viewtopic.php?f=19&t=22705</a><!-- l -->
xbrowse\Header
[code=fw:1tku7c5z]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|nMRow, nMCol, nFlags, Self| nCol := ??????????, MsgAlert<span style="color: #000000;">&#40;</span>nCol<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:1tku7c5z] how do I know the value of nMCol I needed to know the column number which was given the click, without even being in focus thank you Luiz Fernando
xbrowse\Header
Fourth parameter is the column object. oCol:nCreationOrder gives the serial number of the column while creating the browse. While programming with xbrowse it is normally advisable to use the column objects instead of numbers.
xbrowse\Header
[quote="nageswaragunupudi":2n6op79e]Fourth parameter is the column object. oCol:nCreationOrder gives the serial number of the column while creating the browse. While programming with xbrowse it is normally advisable to use the column objects instead of numbers.[/quote:2n6op79e] thanks for the reply form below worked [code=fw:2n6op79e]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|r,c,f,o| nCol := o:<span style="color: #000000;">nCreationOrder</span> , MsgAlert<span style="color: #000000;">&#40;</span>nCol<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:2n6op79e] Luiz Fernando
xbrowser EDIT_BUTTON y VK_DELETE?
[quote="cnavarro":2iy98p2z]Recuerda que uno de los parametros que recibe ese codeblock es: [code=fw:2iy98p2z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />bEditBlock := <span style="color: #000000;">&#123;</span> | nRow, nCol, oCol, nKey | ...<br /> </div>[/code:2iy98p2z][/quote:2iy98p2z] no me funciona como quiero. yo quiero que al presionar la tecla DELETE me elimine los datos de la linea, y cuando presiono sobre el boton de los ... aparezca el dialogo para agregar un producto.
xbrowser EDIT_BUTTON y VK_DELETE?
[url:2e2t3dh3]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37294&p=222707&hilit=bEditBlock&sid=57058534e0858dc2d58a0e49a7095c14&sid=0b5773a3ee5e91972e8704269f55e9a9#p222707[/url:2e2t3dh3]
xbrowser EDIT_BUTTON y VK_DELETE?
Hola. tengo este codigo que lo que deseo hacer es que cuando presione la tecla VK_DELETE me vaya a un método que se llama ::eliminarItem() [code=fw:3lakigj2]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oBrw</span><br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oDataFont</span>     := oFont1<br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span>   := oFont1<br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Descripcion"</span><br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">450</span><br /><br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span>     := EDIT_BUTTON<br /><br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bEditBlock</span>    := <span style="color: #000000;">&#123;</span> | oCol | ;<br />                                     ::<span style="color: #000000;">productos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                     ::<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                     ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />                                   <span style="color: #000000;">&#125;</span><br /> </div>[/code:3lakigj2] mas abajo en la misma definicion del xbroowser capturo la tecla presionada, pero siempre "antes" de ir al metodo ::eliminarItem() salta el metodo "productos()" [code=fw:3lakigj2]<div class="fw" id="{CB}" style="font-family: monospace;">   ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> | nkey | iif<span style="color: #000000;">&#40;</span>nkey == VK_DELETE, ::<span style="color: #000000;">eliminarItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span></div>[/code:3lakigj2]
xbrowser EDIT_BUTTON y VK_DELETE?
Intenta asi: [code=fw:3km9n7h6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bKeyDown</span> &nbsp; := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">EliminarItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bKeyChar</span> &nbsp; := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_ESCAPE, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">EliminarItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3km9n7h6] Regards, saludos.
xbrowser EDIT_BUTTON y VK_DELETE?
[quote="karinha":hzvgi1vl]Intenta asi: [code=fw:hzvgi1vl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bKeyDown</span>   := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">EliminarItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bKeyChar</span>   := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_ESCAPE, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">EliminarItem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDlg</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:hzvgi1vl] Regards, saludos.[/quote:hzvgi1vl] y donde pongo el codigo que ejecuta el metodo ::productos()?
xbrowser EDIT_BUTTON y VK_DELETE?
Recuerda que uno de los parametros que recibe ese codeblock es: [code=fw:3sfqbf4h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />bEditBlock := <span style="color: #000000;">&#123;</span> | nRow, nCol, oCol, nKey | ...<br />&nbsp;</div>[/code:3sfqbf4h]
xbrowser does not appears after window
Hello, I was testing a my little program, and I want debug an array using xbrowser, but it sometime does not appears. Look this code: [code=fw:2dnq4xzb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <fivewin.ch><br /><br />func main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd<br />&nbsp; &nbsp;XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br />&nbsp;</div>[/code:2dnq4xzb] the xBrowser appears one time, but after the windows, it does not.
xbrowser does not appears after window
Once the main window is closed, no dialog can be created and displayed. For example, [code=fw:u5rs4yo6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />&nbsp; &nbsp;<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 />&nbsp;</div>[/code:u5rs4yo6] In this case, the dialog will never be displayed.
xbrowser does not appears after window
sorry [b:rez40jd4]I not understood[/b:rez40jd4] If I generate an array on a Window and then I wish open a xbrowser with the array [b:rez40jd4]I cannot make it [/b:rez40jd4]? sample : DEFINE WINDOW oWnd aLista:= ....... ACTIVATE WINDOW oWnd CENTERED xbrowser aLista
xbrowser does not appears after window
Hi, You have to place the XBROWSE bitween DEFINE WINDOW AND ACTIVATE WINDOW .
xbrowser does not appears after window
I think he wants to show changed values after closing the window [color=#0000FF:ccw8srsu]#include "FiveWin.ch" FUNC MAIN() LOCAL oWnd XBROWSER {10,20,30,40} // old values DEFINE WINDOW oWnd // some valuechanges ACTIVATE WINDOW oWnd ; VALID SHOW_NEW() RETURN NIL // on window-close the browser shows new values // ( the window is still open ) // closing the browser closes the window as well FUNCTIOn SHOW_NEW() XBROWSER {50,60,70,80} // new values RETURN .T.[/color:ccw8srsu] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
xbrowser does not appears after window
[quote="Jack":v33fd0j0]Hi, You have to place the XBROWSE bitween DEFINE WINDOW AND ACTIVATE WINDOW .[/quote:v33fd0j0] I don't know who you are dear Jack, but please read the question carefully, we're talking about the Xbrowser command, not of xbrowse() func, so I don't have to put it between "define window" and "activate window" ... Please next time read first from the first topic ..
xbrowser does not appears after window
That will give the needed result showing a browser with new values after window close <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> #include "FiveWin.ch" FUNC MAIN() LOCAL oWnd, oBtn XBROWSER {10,20,30,40} DEFINE WINDOW oWnd ACTIVATE WINDOW oWnd ; VALID SHOW_BRW([color=#0040FF:2afgqz0j]oWnd[/color:2afgqz0j]) RETURN NIL // on window-close shows new values and hides the window // closing the browser closes the window as well FUNCTIOn SHOW_BRW([color=#0000FF:2afgqz0j]oWnd[/color:2afgqz0j]) [color=#0000FF:2afgqz0j]oWnd:Hide()[/color:2afgqz0j] XBROWSER {50,60,70,80} RETURN .T. regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xbrowser does not appears after window
It is a FiveWin limitation, I think with a minimal change it can work. It is enough that the SetWndApp can accept zero as value: [code=fw:2orvkb1b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <fivewin.ch><br /><br />proc main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oWnd<br />   ? GetWndApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//0</span><br />   XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   ? GetWndApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// value</span><br />   XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//no windows, because parent is closed</span><br />   SetWndApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   ? GetWndApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// not change!</span><br />   XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span>  <span style="color: #B900B9;">//no windows, because SetWndApp(0) does not works....</span><br />   <br /> </div>[/code:2orvkb1b]
xbrowser does not appears after window
Antonino, did You test my revised solution [img:2c1q7aoi]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Test4&#46;gif[/img:2c1q7aoi] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
xbrowser does not appears after window
uwe, I think your solution works (I don't need to try to see it), but It is pretty different from my initial code. My opinion is that should be possible create an application that shows a dialog after the main window is closed. It is pretty severe because it is not a win32 limitation but it is created by FiveWin
xbrowser does not appears after window
The same logic [quote:28nkbslr]My opinion is that should be possible create an application that shows a dialog after the main window is closed[/quote:28nkbslr] [color=#0000FF:28nkbslr]#include "FiveWin.ch" FUNC MAIN() LOCAL oWnd, oBtn, oFontLarge, oSay DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -24 BOLD DEFINE WINDOW oWnd @ 50, 50 SAY oSay PROMPT "Main-window" SIZE 250, 35 OF oWnd FONT oFontLarge PIXEL oSay:SetColor( 255, ) oSay:lTransparent := .T. @ 150, 200 BUTTON "Window" + CRLF + "E&xit" SIZE 100, 50 OF oWnd PIXEL ; ACTION oWnd:End() ACTIVATE WINDOW oWnd CENTERED ; VALID SHOW_DLG(oWnd) oFontLarge:End() RETURN NIL // ----------- FUNCTIOn SHOW_DLG(oWnd) LOCAL oDlg, oBtn, oFontLarge, oSay oWnd:Hide() DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -24 BOLD ITALIC DEFINE DIALOG oDlg SIZE 300, 300 PIXEL TRUEPIXEL TITLE "Test " + FWVERSION @ 50, 50 SAY oSay PROMPT "Dialog called from window" SIZE 250, 35 OF oDlg FONT oFontLarge PIXEL oSay:SetColor( 255, ) oSay:lTransparent := .T. @ 220, 100 BUTTON "Dialog" + CRLF + "E&xit" SIZE 100, 50 OF oDlg PIXEL ; ACTION oDlg:End() ACTIVATE DIALOG oDlg CENTERED oFontLarge:End() RETURN .T.[/color:28nkbslr] // window will be closed <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xbrowser does not appears after window
[quote="ukoenig":2mln24qr] oWnd:Hide() [/quote:2mln24qr] <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Nice play <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
xbrowser does not appears after window
Please try [code=fw:qgi9fd12]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <fivewin.ch><br /><br />func main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oWnd<br />   XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <span style="color: #B900B9;">// The SETUP clause is used because the command XBROWSER has no "OF" clause (PARENT)</span><br />   XBROWSER <span style="color: #000000;">&#123;</span><span style="color: #000000;">10</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span><span style="color: #000000;">&#125;</span> SETUP <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span> := oWnd <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qgi9fd12] [code=fw:qgi9fd12]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oDlg<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br />   <span style="color: #B900B9;">//SetWndDefault( oWnd )</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">OF</span> oWnd <span style="color: #B900B9;">//OF GetWndDefault()</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qgi9fd12]
xbrowser footer
Hello, Why this: Lista2:aCols[1]:cFooter := { || Ltrim( Str( Lista2:KeyNo() ) ) + " / " + LTrim( Str( Lista2:KeyCount() ) ) } Lista2:Refresh() Show me {||...} in footer? Thanks in advance.
xbrowser footer
[quote="wartiaga":1kkpcy61]Hello, Why this: Lista2:aCols[1]:cFooter := { || Ltrim( Str( Lista2:KeyNo() ) ) + " / " + LTrim( Str( Lista2:KeyCount() ) ) } Lista2:Refresh() Show me {||...} in footer? Thanks in advance.[/quote:1kkpcy61] Use this [code=fw:1kkpcy61]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Lista2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bFooter</span> &nbsp; := <span style="color: #000000;">&#123;</span> || Ltrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Lista2:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" / "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Lista2:<span style="color: #000000;">KeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1kkpcy61]
xbrowser footer
[quote="cnavarro":kxgx1qh0][quote="wartiaga":kxgx1qh0]Hello, Why this: Lista2:aCols[1]:cFooter := { || Ltrim( Str( Lista2:KeyNo() ) ) + " / " + LTrim( Str( Lista2:KeyCount() ) ) } Lista2:Refresh() Show me {||...} in footer? Thanks in advance.[/quote:kxgx1qh0] Use this [code=fw:kxgx1qh0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Lista2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bFooter</span>   := <span style="color: #000000;">&#123;</span> || Ltrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Lista2:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" / "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> Lista2:<span style="color: #000000;">KeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:kxgx1qh0][/quote:kxgx1qh0] Thank you, works great, but Lista2:KeyCount() is counting all records and i use a scope in lista2, how i can display the real count (not count deleted)? Thank you again.
xbrowser footer
Try with [code=fw:ldvnhdxp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nFooterType</span> := AGGR_COUNT<br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bSumCondtion</span> := <span style="color: #000000;">&#123;</span> |v,o| <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span> -> <span style="color: #000000;">&#40;</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:ldvnhdxp]
xbrowser footer
oBrw:KeyCount() is the same as ( oBrw:cAlias )->( OrdKeyCount() ) OrdKeyCount() is a (x)Harbour function. By default OrdKeyCount() respects Scopes and Filters but [u:20drghm5][b:20drghm5]includes deleted records[/b:20drghm5] [/u:20drghm5]also. This is what we all should know. If we want OrdKeyCount() not to include deleted records, we should set filter to "SET FILTER TO !DELETED()" If we are particular that oBrw:nLen or oBrw:KeyCount() should not include deleted records then [code=fw:20drghm5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />USE MYTABLE ....<br />SET FILTER <span style="color: #0000ff;">TO</span> !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />GO TOP<br /><span style="color: #B900B9;">// over and above this, we can use Scopes also.</span><br /><br /><span style="color: #B900B9;">// now build xbrowse</span><br />&nbsp;</div>[/code:20drghm5] If we want to set some filter like "AGE > 40", then set filter like this: [code=fw:20drghm5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SET FILTER <span style="color: #0000ff;">TO</span> AGE > <span style="color: #000000;">47</span> .AND. !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:20drghm5] OrdKeyNo() also is effected in the same way. Note: 1. Using oBrw:nLen is faster than using oBrw:KeyCount(). 2. These are issues relating to using the (x)Harbour function OrdKeyCount() but not XBrowse.
xbrowser footer
[quote="cnavarro":3blispi7]Try with [code=fw:3blispi7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nFooterType</span> := AGGR_COUNT<br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bSumCondtion</span> := <span style="color: #000000;">&#123;</span> |v,o| <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span> -> <span style="color: #000000;">&#40;</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:3blispi7][/quote:3blispi7] Thank you!
xbrowser footer
[quote="nageswaragunupudi":1n6rower]oBrw:KeyCount() is the same as ( oBrw:cAlias )->( OrdKeyCount() ) OrdKeyCount() is a (x)Harbour function. By default OrdKeyCount() respects Scopes and Filters but [u:1n6rower][b:1n6rower]includes deleted records[/b:1n6rower] [/u:1n6rower]also. This is what we all should know. If we want OrdKeyCount() not to include deleted records, we should set filter to "SET FILTER TO !DELETED()" If we are particular that oBrw:nLen or oBrw:KeyCount() should not include deleted records then [code=fw:1n6rower]<div class="fw" id="{CB}" style="font-family: monospace;"><br />USE MYTABLE ....<br />SET FILTER <span style="color: #0000ff;">TO</span> !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />GO TOP<br /><span style="color: #B900B9;">// over and above this, we can use Scopes also.</span><br /><br /><span style="color: #B900B9;">// now build xbrowse</span><br /> </div>[/code:1n6rower] If we want to set some filter like "AGE > 40", then set filter like this: [code=fw:1n6rower]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SET FILTER <span style="color: #0000ff;">TO</span> AGE > <span style="color: #000000;">47</span> .AND. !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1n6rower] OrdKeyNo() also is effected in the same way. Note: 1. Using oBrw:nLen is faster than using oBrw:KeyCount(). 2. These are issues relating to using the (x)Harbour function OrdKeyCount() but not XBrowse.[/quote:1n6rower] Thank you Mr. Nages, I use ! Deleted() in index condition to solve this issue.
xbrowser footer
[quote:1xoae3tt]Thank you Mr. Nages, I use ! Deleted() in index condition to solve this issue. [/quote:1xoae3tt] Please do NOT use FOR conditions in Indexes. The purpose of indexes is also to speed up queries (FILTERS). The RDD does not consider indexes with FOR conditions for optimization. That way we forgo some benefits of having indexes. As I suggested please use FILTER TO !DELETED(). There is not much performance impact if the percentage of deleted records is less. Create an additional index tag on every large dbf as [code=fw:1xoae3tt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> TAG DELETED<br />&nbsp;</div>[/code:1xoae3tt] Then the filter "SET FILTER TO !DELETED()" also is fully optimized. Better we familiarize ourselves with the way RDD optimizes filters.
xbrowser footer
I can't see any optimization in the following sample: [code=fw:3qt5afyy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br />REQUEST DBFCDX<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> nSec<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> n, i<br /><br />&nbsp; &nbsp; RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; SET OPTIMIZE <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp; DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MYTEST"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TEST"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; USE MYTEST<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">300000</span><br />&nbsp; &nbsp; &nbsp; &nbsp; APPEND BLANK<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; REPLACE FIELD -> test WITH <span style="color: #ff0000;">"TEST"</span> + LTRIM<span style="color: #000000;">&#40;</span> STR<span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> i % <span style="color: #000000;">2</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DELETE<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD -> test TAG TEST <span style="color: #0000ff;">TO</span> MYTEST <span style="color: #00C800;">FOR</span> !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; nSec = SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; n = <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; n++<br />&nbsp; &nbsp; &nbsp; &nbsp; SKIP<br />&nbsp; &nbsp; <span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp; ? n, SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nSec<br /><br />&nbsp; &nbsp; CLOSE<br /><br />&nbsp; &nbsp; FERASE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MYTEST.CDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; USE MYTEST<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> TAG DELETED <span style="color: #0000ff;">TO</span> MYTEST<br />&nbsp; &nbsp; <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD -> test TAG TEST <span style="color: #0000ff;">TO</span> MYTEST<br /><br />&nbsp; &nbsp; SET FILTER <span style="color: #0000ff;">TO</span> !DELETED<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; nSec = SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; n = <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; n++<br />&nbsp; &nbsp; &nbsp; &nbsp; SKIP<br />&nbsp; &nbsp; <span style="color: #00C800;">ENDDO</span><br /><br />&nbsp; &nbsp; ? n, SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nSec<br /><br />&nbsp; &nbsp; CLOSE<br /><br />&nbsp; &nbsp; FERASE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MYTEST.DBF"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; FERASE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MYTEST.CDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3qt5afyy] Results: 0.07 and 1.06. Can you change my sample to show the optimization, please? EMG
xbrowser footer
Rao, have you had the time to test my sample? EMG
xbrowser footer picture
Hi, Why this Lista2:aCols[7]:nFooterType:= AGGR_SUM Lista2:aCols[7]:nFootStrAlign := AL_RIGHT Lista2:aCols[7]:cFooterPicture := "@e 999,999.99" Show me 52.99 in footer? How I can display 52,99? Thanks in advance.
xbrowser footer picture
This is a bug in xbrowse.prg Please set [code=fw:163znksy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Lista2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"@e 999,999.99"</span><br />&nbsp;</div>[/code:163znksy] ALSO. Then footer picture works correctly.
xbrowser footer picture
[quote="nageswaragunupudi":39xqgpqu]This is a bug in xbrowse.prg Please set [code=fw:39xqgpqu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Lista2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"@e 999,999.99"</span><br /> </div>[/code:39xqgpqu] ALSO. Then footer picture works correctly.[/quote:39xqgpqu] Thank you Mr. Nages.
xbrowser footer picture
This bug is fixed in the next version.
xbrowser footer picture
Master Nages? Regards, saludos.
xbrowser header
[code=fw:3tvdsi53]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TestMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oBar, oBrw<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Arrays"</span><br /><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 />      COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>                    ;<br />      HEADERS <span style="color: #ff0000;">"a"</span>,<span style="color: #ff0000;">"b"</span>,<span style="color: #ff0000;">"tc"</span>,<span style="color: #ff0000;">"d"</span>   ;<br />      COLSIZES <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>           ;<br />      ARRAY <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> LINES FASTEDIT CELL<br /><br /><br />WITH OBJECT oBrw<br />        :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3tvdsi53] or easy [code=fw:3tvdsi53]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> aFiles   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />@ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span>  oLbx <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">185</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span><br /><br /><br />    oLbx:<span style="color: #000000;">SetArray</span><span style="color: #000000;">&#40;</span>aFiles<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> &nbsp;:= i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Archivio"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span> &nbsp; := <span style="color: #000000;">110</span><br /><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> &nbsp;:= i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Dimensione"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span> &nbsp; := <span style="color: #000000;">100</span><br /><br />&nbsp; WITH OBJECT &nbsp;oLbx<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp;</div>[/code:3tvdsi53] here run good [img:3tvdsi53]https&#58;//i&#46;postimg&#46;cc/wTx10XWM/gg&#46;png[/img:3tvdsi53]
xbrowser header
[quote="Silvio.Falconi":10853dgm][code=fw:10853dgm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TestMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oBar, oBrw<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Arrays"</span><br /><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 />      COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>                    ;<br />      HEADERS <span style="color: #ff0000;">"a"</span>,<span style="color: #ff0000;">"b"</span>,<span style="color: #ff0000;">"tc"</span>,<span style="color: #ff0000;">"d"</span>   ;<br />      COLSIZES <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>           ;<br />      ARRAY <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> LINES FASTEDIT CELL<br /><br /><br />WITH OBJECT oBrw<br />        :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br /> oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:10853dgm] or easy [code=fw:10853dgm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> aFiles   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />@ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span>  oLbx <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">185</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span><br /><br /><br />    oLbx:<span style="color: #000000;">SetArray</span><span style="color: #000000;">&#40;</span>aFiles<span style="color: #000000;">&#41;</span><br /><br />   oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>  := i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Archivio"</span><span style="color: #000000;">&#41;</span><br />   oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>   := <span style="color: #000000;">110</span><br /><br />   oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>  := i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Dimensione"</span><span style="color: #000000;">&#41;</span><br />   oLbx:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>   := <span style="color: #000000;">100</span><br /><br />  WITH OBJECT  oLbx<br />                   :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                  END<br /> </div>[/code:10853dgm] here run good [img:10853dgm]https&#58;//i&#46;postimg&#46;cc/wTx10XWM/gg&#46;png[/img:10853dgm][/quote:10853dgm] I will try, thank you!
xbrowser header
Hi, I have a xbrowse with a empty array. When i put some elements in array and I do oBrw:SetArray(VetDup) my headers change to A, B, C , D, E. What I do wrong? Thanks!
xbrowser lAutoSeek proposal
Nages, You can add the new search mode (for example lautoSeek) in the xbrowser function and add @ 1.2, 75 SAY oSaySearch[1] Prompt "Search" SIZE 46,24 PIXEL OF oBar @ 1.2, 95 SAY oSaySearch[2] Prompt "on" SIZE 40,24 PIXEL OF oBar @ 1.2, 130 GET oGetSearch VAR cSeek SIZE 80,10 PIXEL OF oBar ; BITMAP "ELIMINA" ACTION (cSeek := Space( 100 ),; oBrw:Seek( "" ),oBrw:refresh(),oGetSearch:refresh()) oGetSearch:lBtnTransparent :=.t. @ 1.2, 200 COMBOBOX oBrw:oSortCbx VAR oBrw:cSortOrder; SIZE 100,400 PIXEL OF oBar HEIGHTGET 14 STYLE CBS_DROPDOWN If it is possible to have the search in the buttonbar ? Is it possible to have xbrowser embedded in the dialogs, to save time, when there is no need to insert or modify but only the search for information and the selection of the record? and have the option to display the button bar or not through a popup menu or a selection on the menu popup of headers ?
xbrowser no muestra el scroll
Hola. Uso un Listbox desde los recursos. ya he seteado el scrool y en el codigo tengo esto: [code=fw:x8plyemw]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oBrw</span><br />      :<span style="color: #000000;">nMarqueeStyle</span>       := <span style="color: #000000;">5</span><br />      :<span style="color: #000000;">bClrStd</span>             := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                                       <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                                       <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">bClrSel</span>             := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK,  RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">lKinetic</span>            := .F.<br />      :<span style="color: #000000;">ltransparent</span>        := .F.<br />      :<span style="color: #000000;">lHScroll</span> := .t.<br />      :<span style="color: #000000;">lRecordSelector</span>     := .F.<br />      :<span style="color: #000000;">lAllowColSwapping</span>   := .F.<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: #000000;">nStretchCol</span>         := STRETCHCOL_LAST<br />      :<span style="color: #000000;">nColDividerStyle</span>    := <span style="color: #000000;">4</span><br /><br />      :<span style="color: #000000;">nHeaderHeight</span>       := <span style="color: #000000;">25</span><br />      :<span style="color: #000000;">nRowHeight</span>          := <span style="color: #000000;">23</span><br />      :<span style="color: #000000;">lFlatStyle</span>          := .T.<br /> </div>[/code:x8plyemw] pero no me muestra el scroll vertical, en que le estoy errando? gracias
xbrowser no muestra el scroll
Estimado Gustavo, Has especificado WS_VSCROLL como estilo en el recurso ?
xbrowser no muestra el scroll
[quote="Antonio Linares":3frum4hs]Estimado Gustavo, Has especificado WS_VSCROLL como estilo en el recurso ?[/quote:3frum4hs] no se donde hay qe ponerlo, uso pelesC agrego una imagen [url:3frum4hs]https&#58;//photos&#46;app&#46;goo&#46;gl/ca3rTjAHJzk7Kkn19[/url:3frum4hs]
xbrowser no muestra el scroll
Parece que ya lo tienes activado Puedes copiar aqui el fichero rc ?
xbrowser no muestra el scroll
[quote="Antonio Linares":1h9uakvf]Parece que ya lo tienes activado Puedes copiar aqui el fichero rc ?[/quote:1h9uakvf] [code=fw:1h9uakvf]<div class="fw" id="{CB}" style="font-family: monospace;">DLGCLIENTE DIALOGEX DISCARDABLE <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">448</span>, <span style="color: #000000;">337</span><br /><span style="color: #0000ff;">STYLE</span> DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">".: Cliente :."</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Tahoma"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; CONTROL <span style="color: #ff0000;">" Datos del CONTACTO directo "</span>, <span style="color: #000000;">4001</span>, <span style="color: #ff0000;">"Button"</span>, BS_GROUPBOX, <span style="color: #000000;">15</span>, <span style="color: #000000;">13</span>, <span style="color: #000000;">416</span>, <span style="color: #000000;">87</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Nombres:"</span>, <span style="color: #000000;">4003</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">33</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">97</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">100</span>, <span style="color: #ff0000;">"Edit"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">33</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">101</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Apellidos:"</span>, <span style="color: #000000;">4004</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">154</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">97</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">102</span>, <span style="color: #ff0000;">"Edit"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">154</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">118</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Email:"</span>, <span style="color: #000000;">4002</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">284</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">99</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">104</span>, <span style="color: #ff0000;">"Edit"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">284</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">125</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Whatsapp:"</span>, <span style="color: #000000;">4010</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">33</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">99</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">106</span>, <span style="color: #ff0000;">"Edit"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">33</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">101</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"País:"</span>, <span style="color: #000000;">4006</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">154</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">99</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">108</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWNLIST|CBS_SORT|WS_VSCROLL|WS_TABSTOP, <span style="color: #000000;">154</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">133</span>, <span style="color: #000000;">65</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Ciudad:"</span>, <span style="color: #000000;">4008</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">304</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">8</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">110</span>, <span style="color: #ff0000;">"Edit"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">304</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">" Solicitantes "</span>, <span style="color: #000000;">4005</span>, <span style="color: #ff0000;">"Button"</span>, BS_GROUPBOX, <span style="color: #000000;">15</span>, <span style="color: #000000;">111</span>, <span style="color: #000000;">416</span>, <span style="color: #000000;">187</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">112</span>, <span style="color: #ff0000;">"ListBox"</span>, LBS_SORT|LBS_NOTIFY|WS_VSCROLL|WS_TABSTOP, <span style="color: #000000;">28</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">323</span>, <span style="color: #000000;">159</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"&Agregar Solicitante"</span>, <span style="color: #000000;">200</span>, <span style="color: #ff0000;">"Button"</span>, BS_MULTILINE|WS_TABSTOP, <span style="color: #000000;">366</span>, <span style="color: #000000;">133</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">36</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"&Ver Carpeta"</span>, <span style="color: #000000;">202</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">15</span>, <span style="color: #000000;">308</span>, <span style="color: #000000;">69</span>, <span style="color: #000000;">17</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"&Guardar carpeta"</span>, <span style="color: #000000;">204</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">362</span>, <span style="color: #000000;">311</span>, <span style="color: #000000;">69</span>, <span style="color: #000000;">17</span><br /><span style="color: #000000;">&#125;</span></div>[/code:1h9uakvf]
xbrowser no muestra el scroll
Modifica esta línea: CONTROL "", 112, "ListBox", LBS_SORT|LBS_NOTIFY|WS_VSCROLL|WS_TABSTOP, 28, 131, 323, 159 asi: CONTROL "", 112, "TXBrowse", WS_VSCROLL|WS_TABSTOP, 28, 131, 323, 159
xbrowser no muestra el scroll
Hola buenos días, en algún momento nos sucedió algo similar, si no estoy mal creo que hay que definir un control personalizado para que funcione, con las propiedades, que se ven en la imagen. [img:130h14eb]https&#58;//hymplus&#46;com/forofw/xbrowse_scroll&#46;png[/img:130h14eb]
xbrowser no muestra el scroll
Si utilizas RESOURCES en style debe colocar, para que aparezca el scroll en xBrowser, lo siguiente: 0x50D00000 ---> Barra Horizontal 0x50A00000 ---> Barra Vertical
xbrowser no me funciona el setCheck() - SOLUCIONADO
Hola. No logro que al hacer "click" en la columna 2 que quede seleccionada la casilla del checkbox Me muestra bien el browser (Tlistbox en el RC) pero no me deja "editarlo" [code=fw:2v0lg5fa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> setBrw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TUsuarios<br /><br />   <span style="color: #00C800;">LOCAL</span> oFont, oFont1<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;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">8</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> bold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">8</span><br /><br />   ::<span style="color: #000000;">aNiveles</span> := <span style="color: #000000;">&#123;</span> ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Agregar clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Modificar datos de clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Ver datos de clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Agregar carpetas de clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Modificar datos de la carpeta de los clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Ver los datos de la carpeta de los clientes"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Control de carpeta"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Analisis de carpeta"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Verificación de análisis de carpeta"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Creación del Incipit"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Verificación del Incipit"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Creación del Indice"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Verificación del Indice"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Creación de carpeta para Netlex"</span>, .F. <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Tarea de Verificación de carpeta para Netlex"</span>, .F. <span style="color: #000000;">&#125;</span> ;<br />                 <span style="color: #000000;">&#125;</span><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;">110</span> ;<br />   COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> ;<br />   DATASOURCE ::<span style="color: #000000;">aNiveles</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span><br /><br />   WITH OBJECT ::<span style="color: #000000;">oBrw</span><br />      :<span style="color: #000000;">bClrStd</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                              <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                              <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">bClrSel</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK,  RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">lKinetic</span>            := .F.<br />      :<span style="color: #000000;">ltransparent</span>        := .F.<br />      :<span style="color: #000000;">lHScroll</span>            := <span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><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: #000000;">nStretchCol</span>         := STRETCHCOL_LAST<br />      :<span style="color: #000000;">nColDividerStyle</span>    := <span style="color: #000000;">4</span><br />      :<span style="color: #000000;">lRecordSelector</span>     := .F.<br />      :<span style="color: #000000;">lAllowColSwapping</span>   := .F.<br /><br />      :<span style="color: #000000;">nHeaderHeight</span>       := <span style="color: #000000;">25</span><br />      :<span style="color: #000000;">nRowHeight</span>          := <span style="color: #000000;">23</span><br /><br />      WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />         :<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Tarea a realizar"</span><br />         :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />         :<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br />         :<span style="color: #000000;">oDataFont</span>     := oFont<br />         :<span style="color: #000000;">oHeaderFont</span>   := oFont1<br />         :<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">340</span><br />      END WITH<br /><br />      WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />         :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />         :<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br />         :<span style="color: #000000;">oDataFont</span>     := oFont<br />         :<span style="color: #000000;">oHeaderFont</span>   := oFontt<br />         :<span style="color: #000000;">setcheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      END WITH<br /><br />   END WITH<br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:2v0lg5fa] Lo que estaba mal es que faltaba el :setcheck(, .t.) y otra cosa hay que ponerle un tamaño a la columna que tiene el checkbox porque sino no funciona bien. [code=fw:2v0lg5fa]<div class="fw" id="{CB}" style="font-family: monospace;">      WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />         :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />         :<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br />         :<span style="color: #000000;">oDataFont</span>     := oFont<br />         :<span style="color: #000000;">oHeaderFont</span>   := oFontt<br /><br />&nbsp;        :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <------------ AGREGADO<br />         :<span style="color: #000000;">setcheck</span><span style="color: #000000;">&#40;</span>, .t.<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<------------ MODIFICADO<br />      END WITH<br /> </div>[/code:2v0lg5fa]
xbrowses color
I tried to insert the color of row with a condition but I not have success [img:17e5ir1h]https&#58;//s1&#46;postimg&#46;org/741pq6aihb/image&#46;jpg[/img:17e5ir1h] I wish change color all lines have V at seven column I made oLbx:bClrStd := {|| { IIF(oLbx:aArrayData[1][7]="V", CLR_GRAY,CLR_BLUE),CLR_WHITE } } or cColor1:= CLR_GRAY cColor2:= CLR_BLUE AEval( oLbx:aCols, {|oCol|oCol:bClrStd := { || { CLR_WHITE, If(oLbx:aArrayData[1][7]="V", cColor1, cColor2 ) } } Then I tried oLbx:bClrStd := {|| { IIF(arrayTicket[oLbx:nArrayAt,7]="V",CLR_GREEN,CLR_RED),CLR_WHITE } } [img:17e5ir1h]https&#58;//s1&#46;postimg&#46;org/8z2t2fgp8f/sdd&#46;jpg[/img:17e5ir1h] but it write the text and not the background where is the error ?
xbrowses color
[code=fw:2byj7fd1]<div class="fw" id="{CB}" style="font-family: monospace;">oLbx:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> IIF<span style="color: #000000;">&#40;</span>oLbx:<span style="color: #000000;">aRow</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"V"</span>, CLR_GRAY,CLR_BLUE<span style="color: #000000;">&#41;</span>,CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span></div>[/code:2byj7fd1]
xbrowses color
I wish the background with color and the text on white TYPE oLbx:bClrStd := {|| { IIF(oLbx:aRow[7]="V", CLR_GRAY,CLR_BLUE),IIF(oLbx:aRow[7]="V",RGB( 220, 235, 252 ) ,CLR_WHITE) } }
xbrowses color
Hello Silvio, please try to insert :value. oLbx:bClrStd := {|| { IIF(oLbx:aRow[7]:value="V", CLR_GRAY,CLR_BLUE),CLR_WHITE } } I would suggest you to switch to Fivedit. Have you seen the video. Best regards, Otto [img:3784nqp2]http&#58;//www&#46;atzwanger-software&#46;com/fw/autoc&#46;jpg[/img:3784nqp2] [img:3784nqp2]http&#58;//www&#46;atzwanger-software&#46;com/fw/xbrTest1&#46;jpg[/img:3784nqp2]
xbrowses color
Otto, for now I use xmate ... In Italy there is a adage...."Who leaves the old road for the new knows that what he leaves does not know what he finds."
xbrowses color
Hello Silvio, does you program work with oLbx:bClrStd := {|| { IIF(oLbx:aRow[7]:value="V", CLR_GRAY,CLR_BLUE),CLR_WHITE } }. Best regards, Otto
xbrowses color
The colors is good only I have records link to another record I explain you I have a product : "Pizza Caprese" and then I have variants of this product sample : "Più Prosciutto" "Più mozzarella" I wish show a color with a link I not Know How make it : 2 "Pizza Caprese" --------- "Più Prosciutto" --------- "Più mozzarella" 1 " cocacola" 2 "Dessert" the products must have different colors and his variant a color near to color's prduct What I can build ?
xbrowses color
Maybe with a function call in the cell ? oBrw[6]:T1:bClrStd := { || showcolors(oBrw[6]:T1:Value) } oBrw[6]:T2:bClrStd := { || showcolors(oBrw[6]:T2:Value) } oBrw[6]:T3:bClrStd := { || showcolors(oBrw[6]:T3:Value) } [code=fw:ckhvwwn0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> showcolors<span style="color: #000000;">&#40;</span>cVeld<span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> cKleur:=<span style="color: #ff0000;">""</span><br />  <span style="color: #00C800;">local</span> aColorPairs := <span style="color: #000000;">&#123;</span> ;<br />  <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_LIGHTGREEN <span style="color: #000000;">&#125;</span>,;  <span style="color: #B900B9;">//1</span><br />  <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_GREEN<span style="color: #000000;">&#125;</span>,;        <span style="color: #B900B9;">//2</span><br />  <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_PAARS<span style="color: #000000;">&#125;</span>,;        <span style="color: #B900B9;">//3</span><br />  <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_LIGHTYELLOW <span style="color: #000000;">&#125;</span>,; <span style="color: #B900B9;">//4</span><br />  <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_YELLOW <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>       <span style="color: #B900B9;">//5</span><br /><br />  <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />    <span style="color: #00C800;">case</span> cVeld = <span style="color: #ff0000;">"X"</span><br />       cKleur = aColorPairs<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />    <span style="color: #00C800;">case</span> cVeld = <span style="color: #ff0000;">"K"</span><br />       cKleur = aColorPairs<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />    <span style="color: #00C800;">case</span> cVeld = <span style="color: #ff0000;">"V"</span><br />       cKleur = aColorPairs<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br />    <span style="color: #00C800;">otherwise</span><br />       cKleur = aColorPairs<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />  <span style="color: #00C800;">endcase</span><br /><span style="color: #00C800;">return</span> cKleur<br /> </div>[/code:ckhvwwn0]
xbrowses color
Are you looking like this, [img:3vlfw7gn]http&#58;//i66&#46;tinypic&#46;com/zvtnxt&#46;png[/img:3vlfw7gn] [code=fw:3vlfw7gn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />*-----------------------------------------*<br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*-----------------------------------------*<br /><span style="color: #00C800;">Local</span> oWnd,oBrw<br /><span style="color: #00C800;">Local</span> aArry:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Pizza Caprese"</span>,<span style="color: #ff0000;">"PIZCA"</span>,<span style="color: #ff0000;">"P"</span><span style="color: #000000;">&#125;</span>,;<br />              <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Più Prosciutto"</span>,<span style="color: #ff0000;">"PIZCB"</span>,<span style="color: #ff0000;">"V"</span><span style="color: #000000;">&#125;</span>,;<br />              <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Più mozzarella"</span>,<span style="color: #ff0000;">"PIZCC"</span>,<span style="color: #ff0000;">"V"</span><span style="color: #000000;">&#125;</span>,;<br />              <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Cocacola"</span>,<span style="color: #ff0000;">"COCAC"</span>,<span style="color: #ff0000;">"P"</span><span style="color: #000000;">&#125;</span>,;<br />              <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Cocacola One"</span>,<span style="color: #ff0000;">"COCAA"</span>,<span style="color: #ff0000;">"V"</span><span style="color: #000000;">&#125;</span>,;<br />              <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Cocacola Two"</span>,<span style="color: #ff0000;">"COCAB"</span>,<span style="color: #ff0000;">"V"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span> <br /><br />@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">230</span> <span style="color: #0000ff;">OF</span> oWnd ;<br />    ARRAY aArry ;<br />    HEADER <span style="color: #ff0000;">"Item Name"</span>,<span style="color: #ff0000;">"Item Code"</span>,<span style="color: #ff0000;">"Item Level"</span> ;<br />    COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span> ; <br />    COLSIZES <span style="color: #000000;">250</span>,<span style="color: #000000;">140</span><br /><br /><br />    WITH OBJECT oBrw<br />        :<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_LIGHTGRAY<br />        :<span style="color: #000000;">nRowDividerStyle</span> = LINESTYLE_LIGHTGRAY <br />        :<span style="color: #000000;">ItemName</span>:<span style="color: #000000;">bindent</span>:=<span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>Alltrim<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">ItemLevel</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"P"</span> ,<span style="color: #000000;">0</span>,<span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <br />        :<span style="color: #000000;">bClrStd</span>  := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">ItemLevel</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"P"</span> ,;<br />                                              <span style="color: #000000;">&#123;</span> <span style="color: #000000;">16777215</span>,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />                                              <span style="color: #000000;">&#123;</span> <span style="color: #000000;">16777215</span>,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">154</span>, <span style="color: #000000;">188</span>, <span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>   <br />                                                <br />        :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                                   <br />    END<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span></div>[/code:3vlfw7gn] Regards Sreeraj
xbrowses color
It can go good but I have another structure [img:18r3biyt]https&#58;//s2&#46;postimg&#46;org/iueu6zb15/image&#46;jpg[/img:18r3biyt] USE CONSUM ALIAS CO INDEX ON upper(NUMDOC)+Upper(numriga) TAG MESACON TO CONSUM for !deleted()
xbrtree sample
seeing the xbrtree sample I want make an modify On my tree there are 2 level [img:16wu5awi]http&#58;//img15&#46;imageshack&#46;us/img15/447/hardwarevq&#46;jpg[/img:16wu5awi] THIS IS THE TEST MODIFIED [code=fw:16wu5awi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, oBrw<br /><br />   USE HARDWARE<br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->LABORATORY <span style="color: #0000ff;">TO</span> LABS<br />   SET ORDER <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"LABS"</span><br />   GO TOP<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"DBF shown as a tree with XBrowse"</span><br /><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 LINES CELL<br /><br />   oBrw:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> BuildTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"TREE_LAB"</span>, <span style="color: #ff0000;">"TREE_AULE"</span>, Hard_bmp<span style="color: #000000;">&#40;</span>Field->TYPE<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> HEADER <span style="color: #ff0000;">"MARCA"</span><br />   ADD <span style="color: #0000ff;">TO</span> oBrw <span style="color: #00C800;">DATA</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> HEADER <span style="color: #ff0000;">"MODELLO"</span><br /><br />   oBrw:<span style="color: #000000;">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br /><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> = <span style="color: #ff0000;">"Laboratory & Hardware"</span><br /><br />   oWnd:<span style="color: #000000;">oClient</span> = oBrw<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> BuildTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oTree, cState<br /><br />   TREE oTree<br />      <span style="color: #00C800;">while</span> ! Eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />            _TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->LABORATORY <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            TREE<br />            cState = HARDWARE->LABORATORY<br />         <span style="color: #00C800;">else</span><br />            <span style="color: #00C800;">if</span> cState != HARDWARE->LABORATORY<br />               ENDTREE<br />               cState = HARDWARE->LABORATORY<br />               _TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->LABORATORY <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />               TREE<br />            <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">if</span> HARDWARE->LABORATORY == cState<br />            _TreeItem<span style="color: #000000;">&#40;</span> HARDWARE->Type <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">&#123;</span> HARDWARE->marca, HARDWARE->modello <span style="color: #000000;">&#125;</span><br />         <span style="color: #00C800;">endif</span><br />         SKIP<br />      <span style="color: #00C800;">enddo</span><br />      ENDTREE<br />   ENDTREE<br /><br />   GO TOP<br /><br /><span style="color: #00C800;">return</span> oTree<br /><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Hard_bmp<span style="color: #000000;">&#40;</span>ctipo<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> cValoreBmp<br />    <span style="color: #B900B9;">//"TREE_HARD","TREE_LAPTOP","TREE_PRINTER"</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /><span style="color: #00C800;">CASE</span> alltrim<span style="color: #000000;">&#40;</span>ctipo<span style="color: #000000;">&#41;</span>==<span style="color: #ff0000;">"COMPUTER"</span><br />         cValoreBmp:= <span style="color: #ff0000;">"TREE_HARD"</span><br /><span style="color: #00C800;">CASE</span> alltrim<span style="color: #000000;">&#40;</span>ctipo<span style="color: #000000;">&#41;</span>==<span style="color: #ff0000;">"NOTEBOOK"</span><br />          cValoreBmp:= <span style="color: #ff0000;">"TREE_LAPTOP"</span><br /><span style="color: #00C800;">CASE</span> alltrim<span style="color: #000000;">&#40;</span>ctipo<span style="color: #000000;">&#41;</span>==<span style="color: #ff0000;">"PRINTERS"</span><br />          cValoreBmp:= <span style="color: #ff0000;">"TREE_PRINTER"</span><br /><span style="color: #00C800;">ENDCASE</span><br />       ctipo :=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">RETURN</span>  cValoreBmP</div>[/code:16wu5awi] [img:16wu5awi]http&#58;//img402&#46;imageshack&#46;us/img402/6291/hardtest&#46;jpg[/img:16wu5awi] How I can make to insert different bitmaps for the four component ( LABORATORY,computer,Notebook,Printers) ? i WISH ASSIGN TO LABORATORY [b:16wu5awi]TREE_HARD.BMP[/b:16wu5awi] WHEN IS CLOSED [b:16wu5awi]TREE_AULE.BMP [/b:16wu5awi]WHEN IT IS OPENED TO COMPUTER [b:16wu5awi] TREE_HARD.BMP[/b:16wu5awi] TO NOTEBOOK [b:16wu5awi]TREE_LAPTOP.BMP[/b:16wu5awi] TO PRINTERS [b:16wu5awi]TREE_PRINT.BMP[/b:16wu5awi] i MADE THE FUNCTION static function Hard_bmp(ctipo) Local cValoreBmp //"TREE_HARD","TREE_LAPTOP","TREE_PRINTER" DO CASE CASE alltrim(ctipo)=="COMPUTER" cValoreBmp:= "TREE_HARD" CASE alltrim(ctipo)=="NOTEBOOK" cValoreBmp:= "TREE_LAPTOP" CASE alltrim(ctipo)=="PRINTERS" cValoreBmp:= "TREE_PRINT" ENDCASE ctipo :="" RETURN cValoreBmp [img:16wu5awi]http&#58;//img21&#46;imageshack&#46;us/img21/8426/jjjwr&#46;jpg[/img:16wu5awi] AND i INSERT IT ON oBrw:SetTree( BuildTree(), {"TREE_LAB", "TREE_AULE", [b:16wu5awi]Hard_bmp(Field->TYPE)[/b:16wu5awi] } ) I SEE TREE_AULE AND TREE_LAB BITMAPS WHEN THE TREE IS OPENED AND CLOSED AND THIS IS RIGHT BUT THEN I SEE THE TREE_HARD.BMP FOR THE HARDWARE PRINTERS AND LAPTOP HOW i CAN TO SHOW THE OTHER BMPS ? HERE THE RC FILE TREE_AULE BITMAP "AULE.BMP" TREE_LAB BITMAP "LAB.BMP" TREE_PRINT BITMAP "PRINT.BMP" TREE_HARD BITMAP "HARD.BMP"
xbrtree sample
Please try: [code=fw:n3wc8mjw]<div class="fw" id="{CB}" style="font-family: monospace;">   oBrw:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> BuildTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"TREE_LAB"</span>, <span style="color: #ff0000;">"TREE_AULE"</span>, <span style="color: #ff0000;">'TREE_HARD'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_LAPTOP'</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_PRINT'</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> ||  <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">oTree</span> == <span style="color: #00C800;">nil</span>, ;<br />             HB_DeCode<span style="color: #000000;">&#40;</span> field->Type, <span style="color: #ff0000;">'NOTEBOOK'</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">'PRINTERS'</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, ;<br />             <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">lOpened</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END<br /> </div>[/code:n3wc8mjw] Please check spellings
xbrtree sample
[b:2u1vac71]make error[/b:2u1vac71] Application =========== Path and name: C:\work\prg\TESTTREE\xbrwtree.Exe (32 bits) Size: 1,885,696 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 02/08/10, 17:40:53 Error description: Error BASE/1003 Variable does not exist: SELF Args: Stack Calls =========== Called from: xbrwtree.prg => (b)MAIN(24) Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA(8211) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT(1334) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY(991) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1423) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT(9921) Called from: .\source\classes\WINDOW.PRG => _FWH(3333) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG(343) Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS(27) Called from: xbrwtree.prg => (b)MAIN(24) Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA(8211) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT(1334) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY(991) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1423) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT(9921) Called from: .\source\classes\WINDOW.PRG => _FWH(3333) Called from: => UPDATEWINDOW(0) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(936) Called from: xbrwtree.prg => MAIN(65)
xbrtree sample
I edited the above code. Please check again.
xbrtree sample
Nages , not run ok I see all items ( level 2) with Tree_hard.bmp I sent you the test and the res to your email to test it
xbrtree sample
Any news for it please ? here not run ok
xbrtree sample
MR RAO , DO YOU HAVE FOUND A SOLUTION ? ANTONIO SAD ME "Rao is the master using trees on the xbrowse. He is the expert on that issue...." AND THERE IS ANOTHER QUESTION NOW WHEN i MAKE oApp():oGrid:bChange :={ || (RefreshCont(oApp:oCont,oDHardware),) } STAT FUNCTION RefreshCont(oCont,cdbf) oApp():oCont:cTitle:="Hardware "+tran((cdbf)->(OrdKeyNo()),'@E 999999')+" di "+tran((cdbf)->(OrdKeyCount()),'@E 999999') oApp():oCont:refresh() return NIL NOT REFRESH THE CAPTION i'M AFRAID THE TREE ON XBROWSE NOT RUN OK
xbrtree sample
Same logic. Variables and spellings should be adopted to your program. Here is the corrected parts of the code and RC file [code=fw:15phh1eg]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_LAPTOP'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TREE_PRINTERS'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">oTree</span> == <span style="color: #00C800;">nil</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_DeCode<span style="color: #000000;">&#40;</span> Trim<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'NOTEBOOK'</span>, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">'PRINTERS'</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">lOpened</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:15phh1eg] rc file [code=fw:15phh1eg]<div class="fw" id="{CB}" style="font-family: monospace;">TREE_AULE &nbsp; &nbsp; BITMAP <span style="color: #ff0000;">"AULE.BMP"</span><br />TREE_LAB &nbsp; &nbsp; &nbsp;BITMAP <span style="color: #ff0000;">"LAB.BMP"</span><br />TREE_PRINTERS BITMAP <span style="color: #ff0000;">"PRINT.BMP"</span><br />TREE_HARD &nbsp; &nbsp; BITMAP <span style="color: #ff0000;">"HARD.BMP"</span><br />TREE_LAPTOP &nbsp; BITMAP <span style="color: #ff0000;">"LAPTOP.BMP"</span><br />&nbsp;</div>[/code:15phh1eg] You did not include all bitmaps With these changes it is working correctly here
xbrtree sample
THANK NOW RUN CORRECTLY HOW YOU CAN SEE HERE [img:119bktc9]http&#58;//img402&#46;imageshack&#46;us/img402/4187/treeok&#46;jpg[/img:119bktc9] AND FOR THE SECOND QUESTION ? i USE oApp():oGrid:bChange :={ || (RefreshCont(oApp:oCont,oDHardware),) } STAT FUNCTION RefreshCont(oCont,cdbf) oApp():oCont:cTitle:="Hardware "+tran((cdbf)->(OrdKeyNo()),'@E 999999')+" di "+tran((cdbf)->(OrdKeyCount()),'@E 999999') oApp():oCont:refresh() return NIL TO SHOW ON oApp():oCont:cTitle THE NUMBER OF RECORD SAMPLE : [b:119bktc9]Hardware 5678 of 6700[/b:119bktc9] it not run ok
xbrtree sample
The tree is in memory. While navigating the tree, the actual dbf is not traversed. So, you should keep the OrdkeyNo() or RecNo() of the record in 3rd element of the array in Cargo and use that value to refresh the title.
xbrtree sample
ok I made ---------------------------------------------------------------------------------------------------------------------------------------- static function BuildTree() local oTree, cState TREE oTree while ! (oDHardware)->(Eof()) if Empty( cState ) _TreeItem( (oDHardware)->LABORATORY ):Cargo := { Space( 20 ), Space( 20 ),Space( 20 ) } TREE cState = (oDHardware)->LABORATORY else if cState != (oDHardware)->LABORATORY ENDTREE cState =(oDHardware)->LABORATORY _TreeItem( (oDHardware)->LABORATORY ):Cargo := { Space( 20 ), Space( 20 ),Space( 20 ) } TREE endif endif if (oDHardware)->LABORATORY == cState nrecord:="Hardware "+tran((oDHardware)->(OrdKeyNo()),'@E 999999')+" di "+tran((oDHardware)->(OrdKeyCount()),'@E 999999') _TreeItem( (oDHardware)->Type ):Cargo := { (oDHardware)->marca, (oDHardware)->modello , nrecord } endif (oDHardware)->(DBSKIP()) enddo ENDTREE ENDTREE return oTree STAT FUNCTION RefreshCont(oCont,cdbf) oApp():oCont:cTitle:=((oDHardware)->Type ):Cargo[3] oApp():oCont:refresh() return NIL it make error Application =========== Path and name: C:\work\PRG\GMI\main.Exe (32 bits) Size: 2,903,552 bytes Time from start: 0 hours 0 mins 8 secs Error occurred at: 10-02-2010, 20:51:11 Error description: Error BASE/1004 Class: 'CHARACTER' has no exported method: CARGO Args: [ 1] = C Stack Calls =========== Called from: => CARGO(0) Called from: source\pHardware.prg => REFRESHCONT(221) Called from: source\pHardware.prg => (b)GMI110(91) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:CHANGE(909)
xbrwdisk change directory
Dear Mr. Rao, I try to extend xbrwdisk.prg to change directory with a click on a button. I use :SetTree. But then inside xBrowse it adds a new column item. Can you please help me. Best regards, Otto [code=fw:3iush4j2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /> <span style="color: #00C800;">static</span> aDrives  := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, oTree, oFont, b<br />    <br />    aDrives  := aDrives<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   <br />   SET DATE ITALIAN<br />   SET CENTURY <span style="color: #0000ff;">ON</span><br /><br />   oTree := MakeTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'TAHOMA'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</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;">640</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Directory'</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont<br />      <br />      <br />       @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> ;<br />      <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Change directory"</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDrives := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\"</span>}, oTree := MakeTree( aDrives ),  oBrw:SetTree( oTree) );<br />          OF oDlg<br /><br />   @ 25,10 XBROWSE oBrw SIZE 300,200 PIXEL OF oDlg NOBORDER<br /><br />   oBrw:SetTree( oTree, { "</span>\fwh\<span style="color: #0000ff;">bitmaps</span>\open2.bmp<span style="color: #ff0000;">", ;<br />                          "</span>\fwh\<span style="color: #0000ff;">bitmaps</span>\16x16\<span style="color: #0000ff;">folder</span>.bmp<span style="color: #ff0000;">", ;<br />                          "</span>\fwh\<span style="color: #0000ff;">bitmaps</span>\16x16\onepage2.bmp<span style="color: #ff0000;">" } )<br />   oBrw:bKeyChar  := { |nKey| If( nKey == VK_RETURN .and. ! Empty( oBrw:oTreeItem:bAction ), ;<br />                                Eval( oBrw:oTreeItem:bAction, oBrw:oTreeItem ), nil ) }<br /><br /><br />   WITH OBJECT oBrw:aCols[ 1 ]<br /><br />      :AddBmpFile( "</span>\fwh\<span style="color: #0000ff;">bitmaps</span>\hdrive.bmp<span style="color: #ff0000;">" )<br />      :nWidth     := 300<br />      :cHeader    := 'File/Folder'<br />      b           := :bLDClickData<br /><br />      :bLDClickData  := { |r,c,f,o| ToggleFolder( r,c,f,o,b ) }<br /><br />      :bBmpData   := { || If( ':' $ oBrw:oTreeItem:cPrompt, 4, ;<br />                          If( 'D' $ oBrw:oTreeItem:Cargo[ 5 ], ;<br />                          If( oBrw:oTreeItem:lOpened, 1, 2 ), 3 ) ) }<br /><br />   END<br /><br />   ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 2 ] ;<br />         PICTURE '@EZ 999,999,999' HEADER 'Bytes'<br />   ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 3 ] HEADER 'Date'<br />   ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 4 ] HEADER 'Time'<br />   ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 5 ] HEADER 'Attr'<br /><br />   oBrw:CreateFromCode()<br /><br />   ACTIVATE DIALOG oDlg CENTER<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /><br />static function ToggleFolder( r, c, f, oCol, b )<br /><br />   local oBrw  := oCol:oBrw<br />   local oItem := oBrw:oTreeItem<br /><br />   If ! oItem:lOpened .and. ! Empty( oItem:bAction )<br />      Eval( oItem:bAction, oItem )<br />   endif<br /><br />   if b != nil<br />      Eval( b, r, c, f, oCol )<br />   endif<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /><br />static function MakeTree()<br /><br />   local oTree, oItem, n<br />  <br /><br />   TREE oTree<br /><br />   for n := 1 to Len( aDrives )<br /><br />      TREEITEM oItem PROMPT aDrives[ n ]<br />      oItem:Cargo    := { aDrives[ n ], 0, CtoD( '' ), Space( 8 ), 'D', ;<br />                        aDrives[ n ] }<br /><br />      oItem:bAction  := { |o| o:SetTree( SubTree( o ) ), o:bACtion := nil }<br /><br />   next<br /><br />   ENDTREE<br /><br />return oTree<br /><br />//----------------------------------------------------------------------------//<br /><br />static function SubTree( oParent )<br /><br />   local oTree, n, oItem, nLevel, nItems := 0<br />   local cFolder := oParent:Cargo[ 6 ]<br />   local aDir     := Directory( cFolder + '<span style="color: #000000;">\*</span>.*', 'D' )<br /><br />   nLevel   := oParent:nLevel + 1<br /><br />   TREE oTree<br />   for n := 1 to Len( aDir )<br />      if ! ( aDir[ n ][ 1 ] = '.' )<br /><br />         TREEITEM oItem PROMPT aDir[ n ][ 1 ]<br /><br />         oItem:nlevel := nLevel<br />         oItem:Cargo  := aDir[ n ]<br /><br />         AAdd( oItem:Cargo, cFolder + Chr(92) + aDir[ n ][ 1 ] )<br /><br />         if 'D' $ aDir[ n ][ 5 ]<br />            oItem:bAction  := { |o| o:SetTree( SubTree( o ) ), o:bACtion := nil }<br />         else<br />            oItem:bAction  := { |o| MsgInfo( o:cPrompt ) }<br />         endif<br />         nItems++<br />      endif<br />   next<br />   if nItems == 0<br />      n--<br />      TREEITEM oItem PROMPT ''<br />      oItem:nlevel := nLevel<br />      aDir[ n ][ 5 ] := 'A'<br />      oItem:Cargo  := { '', 0, CToD( '' ), Space(8), ' ', '' }<br />      AAdd( oItem:Cargo, cFolder + Chr(92) + aDir[ n ][ 1 ] )<br />   endif<br />   ENDTREE<br /><br />return oTree<br /><br />//----------------------------------------------------------------------------//<br /><br /><br /><br /><br /></span></div>[/code:3iush4j2]
xbrwdisk change directory
Sure, please wait.
xbrwdisk change directory
[code=fw:1nrwygbp]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Change directory"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDrives := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples"</span><span style="color: #000000;">&#125;</span>, oTree := MakeTree<span style="color: #000000;">&#40;</span> aDrives <span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">oTree</span> := oTree, oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp;</div>[/code:1nrwygbp] and also change :bBmpData as below: [code=fw:1nrwygbp]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bBmpData</span> &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">cPrompt</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">":"</span>, <span style="color: #000000;">4</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'D'</span> $ oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">lOpened</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1nrwygbp]
xbrwdisk change directory
Dear Mr. Rao, Many Thanks. I made the changes, and everything worked. Is there any way that you can seek in the tree? Best regards, Otto
xbrwdisk change directory
Dear Mr. Rao, I tried to have the tree open at the directory change to use ToggleFolder. This works. But is this the way how to do it. [code=fw:1vakw2dn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Change directory"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDrives := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples"</span><span style="color: #000000;">&#125;</span>, oTree := MakeTree<span style="color: #000000;">&#40;</span> aDrives <span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">oTree</span> := oTree, oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ToggleFolder<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">25</span>,<span style="color: #000000;">1</span>,oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLDClickData</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg</div>[/code:1vakw2dn] Best regards, Otto
xbrwdisk change directory
[quote="Otto":11zeb58p]Dear Mr. Rao, I tried to have the tree open at the directory change to use ToggleFolder. This works. But is this the way how to do it. [code=fw:11zeb58p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> ;<br />      <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Change directory"</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDrives := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples"</span><span style="color: #000000;">&#125;</span>, oTree := MakeTree<span style="color: #000000;">&#40;</span> aDrives <span style="color: #000000;">&#41;</span>,  ;<br />            oBrw:<span style="color: #000000;">oTree</span> := oTree, oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ToggleFolder<span style="color: #000000;">&#40;</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">25</span>,<span style="color: #000000;">1</span>,oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLDClickData</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />          <span style="color: #0000ff;">OF</span> oDlg</div>[/code:11zeb58p] Best regards, Otto[/quote:11zeb58p] Instead, change MakeTree() like this [code=fw:11zeb58p]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree, oItem, n<br /><br /><br />&nbsp; &nbsp;TREE oTree<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aDrives <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> aDrives<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">Cargo</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> aDrives<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span>, CtoD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'D'</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aDrives<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> aDrives <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> oItem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">bACtion</span> := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;ENDTREE<br /><br /><span style="color: #00C800;">return</span> oTree<br />&nbsp;</div>[/code:11zeb58p] This is a very old program. I am considering revising it.
xbrwdisk change directory
Dear Mr. Rao, Thank you for your help. Now Harbourino Manager is ready. Do you think you will provide "Search" for treeview shortly? Have a lovely weekend and best regards, Otto [img:3kxuvm2g]https&#58;//mybergland&#46;com/fwforum/harbourinomanager&#46;jpg[/img:3kxuvm2g]
xbrwdisk change directory
[quote:17mb35hl]Do you think you will provide "Search" for treeview shortly?[/quote:17mb35hl] Yes, please.
xbrwdisk change directory
Dear Mr. Rao, Thank you. In the meantime I use a workaround and have finished Harbourino Manager. This video shows the Harbourino Manager. All functions can be carried out from one console. [url:196chcwn]https&#58;//mybergland&#46;com/fwforum/harbourinomanager&#46;mp4[/url:196chcwn] If anyone would like to install and try Harbourino, please just write me. Then I can give you a download link. Best regards, Otto [code=fw:196chcwn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SubTree<span style="color: #000000;">&#40;</span> oParent <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree, n, oItem, nLevel, nItems := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cFolder := oParent:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aDir &nbsp; &nbsp; := Directory<span style="color: #000000;">&#40;</span> cFolder + <span style="color: #ff0000;">'<span style="color: #000000;">\*</span>.*'</span>, <span style="color: #ff0000;">'D'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nLevel &nbsp; := oParent:<span style="color: #000000;">nLevel</span> + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aDir <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! <span style="color: #000000;">&#40;</span> aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">'.'</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> UPPER<span style="color: #000000;">&#40;</span>aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> >= UPPER<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span> cSearch <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem:<span style="color: #000000;">nlevel</span> := nLevel<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oItem:<span style="color: #000000;">Cargo</span> &nbsp;:= aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>, cFolder + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span><span style="color: #000000;">&#41;</span> + aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #ff0000;">'D'</span> $ aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">bACtion</span> := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nItems++<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;<span style="color: #00C800;">endif</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nItems == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; n--<br />&nbsp; &nbsp; &nbsp; TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">''</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">nlevel</span> := nLevel<br />&nbsp; &nbsp; &nbsp; aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">'A'</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">Cargo</span> &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">''</span>, <span style="color: #000000;">0</span>, CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>, cFolder + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span><span style="color: #000000;">&#41;</span> + aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;ENDTREE<br />cSearch := <span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br /><br /><span style="color: #00C800;">return</span> oTree<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br />&nbsp;</div>[/code:196chcwn]
xbrwose tdolphin y fillarray
Hola. Tengo un xbrowse que muestra: [code=fw:kxksnzl2]<div class="fw" id="{CB}" style="font-family: monospace;">...<br />   aDatos:= consulta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oBrw:<span style="color: #000000;">setArray</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> consulta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oQry<br />    <span style="color: #0000ff;">define</span> query oQry  <span style="color: #ff0000;">"SELECT * FROM tbclientes"</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>oQry:<span style="color: #000000;">fillarray</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:kxksnzl2] No hay problemas cuando la consulta devuelve datos, pero si no devuelve datos el FillArray no "crea" el array que muestro en el xbrowse, por lo tanto el xbrowse trona mal. para verififcar hice esto: [code=fw:kxksnzl2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> consulta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> oQry, aDatos<br />    <span style="color: #0000ff;">define</span> query oQry <span style="color: #ff0000;">"SELECT * FROM tbclientes"</span><br />    aDatos:= oQry:<span style="color: #000000;">fillarray</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span><br /> </div>[/code:kxksnzl2] y el xbrowse(aDatos) devuelve una sola columna si la consulta no devuelve datos, si devuelve datos el xbrowse(aDatos) me muestra todas las columnas... Como hago para que cuando no tenga datos igual me muestre el xbrowse? gracias.
xbrwose tdolphin y fillarray
Intenta definir el array con un registro en blanco, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ejemplo: tu_array := {0,0,0, NIL, space(5),0}
xbrwose tdolphin y fillarray
Para que poner los datos en un array, si puedes poner directamente el query en el browse. Date una revisadita a los ejemplos de la tDolphin [code=fw:o908qun1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #00C800;">LOCAL</span> oQry <br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   <span style="color: #00C800;">LOCAL</span> oBrw<br />   <span style="color: #00C800;">LOCAL</span> oData, oCol<br />   <br />   <br />   oQry = oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM president ORDER BY last_name ASC"</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oWnd<br /><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> oDlg<br />   <br />   SetDolphin<span style="color: #000000;">&#40;</span> oBrw, oQry <span style="color: #000000;">&#41;</span><br />      <br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br />   oDlg:<span style="color: #000000;">oClient</span> = oBrw <br />   <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   oQry:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:o908qun1]
xbrwose tdolphin y fillarray
goosfancito como indica Pablo no es necesario cargar la tabla sin entre los campos no va haber cálculos. si la consulta es vacía la podes controlar así [code=fw:383v5uq4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; <span style="color: #00C800;">LOCAL</span> oQry <br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrw<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oData, oCol<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oQry = oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM president ORDER BY last_name ASC"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TotalRec:=oQry:<span style="color: #000000;">nRecCount</span><br />&nbsp; <span style="color: #00C800;">If</span> TotalRec><span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp;<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;">300</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp; &nbsp;@ <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> oDlg<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;SetDolphin<span style="color: #000000;">&#40;</span> oBrw, oQry <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp; &nbsp;oDlg:<span style="color: #000000;">oClient</span> = oBrw <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; oQry:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">Else</span><br />&nbsp; MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No existen registros"</span>,<span style="color: #ff0000;">"Lo siento"</span><span style="color: #000000;">&#41;</span> <br />&nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp;</div>[/code:383v5uq4]
xbrwose tdolphin y fillarray
Hola. Lo pongo en un array porque de otra forma tengo muchos inconvenientes a la hora de interactuar con el xbrowse, no puedo hacer que el xbrowse muestre diferentes cabeceras en diferentes consultas, no esta funcionandome bien, tengo que llamar dos veces al setdolphin para que me complete el xbrowse... Estoy viendo que eso con el setarray no me pasa. gracias.
xbrwose tdolphin y fillarray
[quote="joseluisysturiz":bhoeifar]Intenta definir el array con un registro en blanco, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ejemplo: tu_array := {0,0,0, NIL, space(5),0}[/quote:bhoeifar] lo q hice fue verificar si nreccount() dvuelve 0 registros, si lo hace hago lo que vos me decis (eso ya lo probe y anda) pero despues de 10 put.. como se puedde arreglar para no tener que hacer esa comprobacion en cada fillarray? como hacer para que el fillarray devuelva ese array vacio (por lo menos con la estructura) gracias.
xbrwose tdolphin y fillarray
Como ya dijeron los colegas, si no vas hacer nada de operaciones o edicion en el xbrowse, sino solo mostrar los datos, hacer un array es trabajar doble cuando con TDolphin y xBrowse puedes hacer maravillas y mas en los filtrados para mostrar datos con el oQry:setwhere(), creo que si pones algo mas de codigo de como estas haciendo tu query y utlizandolo en el xbrowse y lo que quieres en si hacer, entre todos podriamos ayudarte a resolver, te aseguro q con tdolphin + xbrowse, puedes hacer lo que quieres y mas, yo cargo array vacios o querys vacios sin ningun problema, todo esta en la buena combinacin entre TD + XB...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
xbrwose tdolphin y fillarray
Les explico que necesito hacer tengo un xbrowse, necesito que sea capaz de mostrar informacion de varias tablas dependienddo lo que el usuario necesite. ya probe varias maneras, la unica que me muestra los datos como quiero es mostrando un array, de otra manera si lo hago sin eso tengo que cada vez que hago un nuevo DEFINE QUERY volver a declarar el setdolphin(....), asi y todo mostrando el array tengo el mismo problema cuando hago el setarray(...) las columnas del xbrowse pierden todo el nWidth, deja de expandir la ultima columna... no entiendo que es lo que hago mal, la ultima modificacion (que pense que podía funcionar) me hace lo mismo. aca dejo el codigo donde esta el problema. gracias. [code=fw:2l9rxkqy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> pantalla<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   <span style="color: #00C800;">LOCAL</span> oGets := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>,;<br />         vGets := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>,;<br />         oBtns := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,;<br />         oQry,;<br />         oBrw,;<br />         oFont,;<br />         oFont1,;<br />         adatos<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;">""</span> bold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ebrima"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br /><br />   vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:= Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:= <span style="color: #000000;">4</span><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;">"CAJA"</span><br /><br />      <span style="color: #0000ff;">REDEFINE</span> DTPICKER oGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">radio</span> oGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">103</span>, <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />      <span style="color: #B900B9;">//----------( botones )----------</span><br /><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oDlg<br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />      <span style="color: #B900B9;">//----------( browser )----------</span><br /><br />      oBrw:= TXBROWSE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span><br /><br />      aDatos:= ::<span style="color: #000000;">cargarBrowser</span><span style="color: #000000;">&#40;</span>@oBrw, vGets<span style="color: #000000;">&#41;</span><br /><br />      WITH OBJECT oBrw<br />         :<span style="color: #000000;">setarray</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span><br /><br />         :<span style="color: #000000;">bClrStd</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                   <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                   <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />         :<span style="color: #000000;">bClrSel</span>:=<span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />         :<span style="color: #000000;">nMarqueeStyle</span>       := <span style="color: #000000;">5</span><br />         :<span style="color: #000000;">lKinetic</span>            := .F.<br />         :<span style="color: #000000;">ltransparent</span>        := .F.<br />         :<span style="color: #000000;">nRowHeight</span>          := <span style="color: #000000;">18</span><br />         :<span style="color: #000000;">lHScroll</span>            := .T.<br />         :<span style="color: #000000;">nheaderHeight</span>       := <span style="color: #000000;">20</span><br />         :<span style="color: #000000;">lRecordSelector</span>     := .F.<br />         :<span style="color: #000000;">lAllowColSwapping</span>   := .F.<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: #000000;">nStretchCol</span>         := STRETCHCOL_LAST<br />         :<span style="color: #000000;">nColDividerStyle</span>    := <span style="color: #000000;">4</span><br />         :<span style="color: #000000;">L2007</span>               := .T.<br /><br />      END WITH<br /><br />      oBrw:<span style="color: #000000;">createfromresource</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #B900B9;">//----------( )----------</span><br /><br />      oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span>:= <span style="color: #000000;">&#123;</span>|| ::<span style="color: #000000;">cargarBrowser</span><span style="color: #000000;">&#40;</span> oBrw, vGets <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />      oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span>:= <span style="color: #000000;">&#123;</span>|| ::<span style="color: #000000;">cargarProductos</span><span style="color: #000000;">&#40;</span> oBrw, vGets <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> valorRetorno<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> cargarBrowser<span style="color: #000000;">&#40;</span> oBrw, vGets<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oQry<br />   <span style="color: #00C800;">LOCAL</span> cSql<br />   <span style="color: #00C800;">LOCAL</span> aDatos<br /><br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />      <span style="color: #00C800;">CASE</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">1</span><br /><br />      <span style="color: #00C800;">CASE</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">2</span><br />      <span style="color: #00C800;">CASE</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">3</span><br />      <span style="color: #00C800;">CASE</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">4</span><br />         cSql:= <span style="color: #ff0000;">"select "</span> + ;<br />                <span style="color: #ff0000;">"tbctacte.fecha as c1, "</span> + ;<br />                <span style="color: #ff0000;">"tbclientes.nombre as c2, "</span> + ;<br />                <span style="color: #ff0000;">"tbctacte.importe as c3 "</span> + ;<br />                <span style="color: #ff0000;">"from tbctacte "</span> + ;<br />                <span style="color: #ff0000;">"left join tbclientes "</span> + ;<br />                <span style="color: #ff0000;">"on tbclientes.id = tbctacte.idcliente "</span> + ;<br />                <span style="color: #ff0000;">"where tbctacte.fecha = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> + ;<br />                <span style="color: #ff0000;">" order by tbctacte.fecha"</span><br /><br /><br />      END <span style="color: #00C800;">CASE</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> query oQry cSql<br /><br />      <span style="color: #00C800;">IF</span> oQry:<span style="color: #000000;">nRecCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>== <span style="color: #000000;">0</span><br />         aDatos:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">""</span> ,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">ELSE</span><br />         aDatos:= oQry:<span style="color: #000000;">fillarray</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />      oBrw:<span style="color: #000000;">setarray</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />         <span style="color: #00C800;">CASE</span> vGets<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">4</span><br />            WITH OBJECT obrw<br />            WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Fecha"</span><br />            :<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">100</span><br />            :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />         END with<br /><br />         WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Productos"</span><br />            :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />            :<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">250</span><br />         END with<br /><br />         WITH object :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">cHeader</span>       := <span style="color: #ff0000;">"Cantidad"</span><br />            :<span style="color: #000000;">nWidth</span>        := <span style="color: #000000;">120</span><br />            :<span style="color: #000000;">nHeadStrAlign</span> := AL_CENTER<br />         END with<br />         END with<br />      END <span style="color: #00C800;">CASE</span><br /><br />      oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#41;</span></div>[/code:2l9rxkqy]
xcode7 permitira la instalacion de apps
Si esto se confirma podría ser bueno para los programadores .... [url:e3jguwnz]http&#58;//www&#46;applesfera&#46;com/curiosidades/xcode-7-permitira-la-instalacion-de-apps-que-apple-rechazaria-en-tu-app-store[/url:e3jguwnz]
xdev para harbour+fw+bcc582
Boa Tarde, estou a tentar configurar xdev para harbour+fw+bcc582 e não estou a conseguir, alguém tem algum script , o arquivo do compilador e a configuração do ilink32.cfg bcc32.cfg do bcc. abraço João Alpande skype: joaoalpande
xdev para harbour+fw+bcc582
Peça no forum: <!-- w --><a class="postlink" href="http://www.fivewin.com.br">www.fivewin.com.br</a><!-- w -->
xdev para harbour+fw+bcc582
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=13098&start=0">viewtopic.php?f=17&t=13098&start=0</a><!-- l -->
xfw.lib for xhb.com
Here you have the most recent xfw.lib for xHarbour commercial: [url:1et3qixq]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/xfw_20171121&#46;zip[/url:1et3qixq] xfw.def [code=fw:1et3qixq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; USER32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; GetComboBoxInfo &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; GetListBoxInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; GetMenuBarInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; GetMenuInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; GetWindowLongPtr &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; PrintWindow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; SendInput<br />&nbsp; &nbsp; SetMenuInfo</div>[/code:1et3qixq] [b:1et3qixq]To build it:[/b:1et3qixq] c:\vc98\bin\lib.exe /def:xfw.def /out:xfw.lib