topic
stringlengths
1
63
text
stringlengths
1
577k
Bottoni dalla cartella
si ci stavo pensando già... però forse ho trovato in Vtaskbar supporta i jpg e png
Botão no GET com FWH7.1 é possível ?
Antonio e amigos, o fivewin tem alguma classe que seja possível colocar botão em um GET? sem precisar usar classe de terceiro!? Aokisantos
Botão no GET com FWH7.1 é possível ?
Aokisantos: Por el momento FW(H) no tiene esa posibilidad, lo que puedes hacer (que es lo que hago) coloco un boton junto al get. Al salir del boton luego de hacer la seleccion de lo que sea, le doy foco al get. Debes refrescar el get y ademas si le das el foco luego del boton hacer un valid (en el get) para comprobar el dato ingresdado. (Esto es por si alguien despues de seleccionar algo desde el boton modifica el get ) Saludos Ruben Fernandez.
Botão no GET com FWH7.1 é possível ?
Si es posible gracias a una excelente clase llamada BtnGet32, la hallarás aquí: <!-- m --><a class="postlink" href="http://hyperupload.com/download/02200d8b54/BtnGet32.exe.html">http://hyperupload.com/download/02200d8 ... 2.exe.html</a><!-- m -->
Botão no GET com FWH7.1 é possível ?
gracias
Botón de Propiedades de una Impresora
Hola necesito colocar en un diálogo, el botón de Propiedades de la Impresora. Estuve buscando y no hay mucha información al respecto. Ví en el foro, un prg que se llama SHTEST.PRG que tiene incluída la llamada SHPrinterProperty, pero cuando compila me da error de "unresolved external". Alguien me podría indicar como usar esta función? Como aclaración, no me sirve la función PrinterSetup... Saludos Roberto
Botón de Propiedades de una Impresora
Nadie me podrá ayudar con ésto? Porfi, si alguien tiene alguna idea... Gracias <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Botón de Propiedades de una Impresora
I confirm the error. [code=fw:yqe8lm7s]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FiveWin <span style="color: #00C800;">for</span> Harbour <span style="color: #000000;">10.9</span> - Sep. <span style="color: #000000;">2010</span><br />Harbour <span style="color: #000000;">2.1</span>.0beta2 <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">15490</span><span style="color: #000000;">&#41;</span><br />Borland C++ <span style="color: #000000;">5.82</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1993</span>, <span style="color: #000000;">2005</span> Borland<br />shtest.c:<br /><span style="color: #000000;">Warning</span> W8075 shtest.prg <span style="color: #000000;">61</span>: <span style="color: #000000;">Suspicious</span> pointer conversion in <span style="color: #00C800;">function</span> HB_FUN_SH<br />RESTARTWINDOWS<br />Turbo Incremental Link <span style="color: #000000;">5.69</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2005</span> Borland<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'__bset'</span> referenced <span style="color: #0000ff;">from</span> F:\FWH\LIB\FIVEHC.LIB|SHFILE<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'RestartDialog'</span> referenced <span style="color: #0000ff;">from</span> F:\FWH\SAMPLES\SHTEST.OBJ<br />&nbsp;</div>[/code:yqe8lm7s] Saludos, Euclides
Botón de ayuda en barra de título de window
Una pregunta probablemente sencilla, pero les aseguro que busqué en los manuales antes de molestar y no encontré el como. Como se suprime este botón de ayuda? [url=http&#58;//img78&#46;imageshack&#46;us/my&#46;php?image=dibujomz1&#46;jpg:3p3rytri][img:3p3rytri]http&#58;//img78&#46;imageshack&#46;us/img78/2739/dibujomz1&#46;th&#46;jpg[/img:3p3rytri][/url:3p3rytri] Gracias desde ya por su ayuda!!
Botón de ayuda en barra de título de window
en un dialogo lo suprimo con oDlg:lHelpicon := .F. salu2 Paco
Botón de ayuda en barra de título de window
[quote="Francisco Horta":2ia360t0]en un dialogo lo suprimo con oDlg:lHelpicon := .F. salu2 Paco[/quote:2ia360t0] Gracias Francisco, me anduvo perfecto.
Botón derecho en btnbmp
Hola, es posible poner una función al hacer click derecho del mouse sobre un btnbmp ?? Saludos y que tengan un excelente año.
Botón derecho en btnbmp
oBtn:bRClicked := { || msgstop("hello") }
Botón derecho en btnbmp
Muchas Gracias es lo que necesitaba
Botón en xBrowse
Buenas tardes, Estoy empezando con xBrowse. Necesito saber como poner un botón en una celda (que no sean los tres puntos). Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Botón en xBrowse
Rolando... Esa opcion esta disponible a partir de la version 8.12
Botón en xBrowse
Y bue.., que se va a hacer, pondré un botón bajo el browse y a otra cosa. Gracias Daniel. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Botón por defecto en Dialogo.
FWH 13.05, HB 3.2.0, BCC 5.8.2 Construyo un dialogo desde código (sin usar recursos), y quiero asignar la clausa DEFAULT a un botón determinado, para que al pulsar intro desde cualquier otro control, se ejecute el actión de este. Vamos lo que viene siendo el funcionamiento habitual en windows. Si dicho botón lo defino desde el Init del dialogo, no actua como boton por defecto, aunque si pinta los bordes más osculors como debe hacer para identificar cual es el botón por defecto. Si el botón se define antes del activate, todo funciona bien. Alguna solución para poderlo definir desde el Init, y se comporte como botón por defecto. [code=fw:vgyqn4yv]<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: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   Dlg1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   Dlg2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//----------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Dlg1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg,cVar:=Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> ProcName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">40</span><br />   @ <span style="color: #000000;">24</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"SAY 1"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">88</span>,  <span style="color: #000000;">16</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">28</span>, <span style="color: #000000;">66</span> <span style="color: #0000ff;">GET</span> cVar <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">24</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">44</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">80</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Ok'</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">100</span>, <span style="color: #000000;">44</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">80</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #B900B9;">//NOWAIT</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//---------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Dlg2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> ProcName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">31</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">80</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> PlaceCtrl<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//NOWAIT</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//-----------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PlaceCtrl<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> cVar:=Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">24</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"SAY 1"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">88</span>,  <span style="color: #000000;">16</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">28</span>, <span style="color: #000000;">66</span> <span style="color: #0000ff;">GET</span> cVar <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">24</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">44</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">80</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Ok'</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">100</span>, <span style="color: #000000;">44</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">80</span>,  <span style="color: #000000;">24</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:vgyqn4yv] Si pulsas intro en el primer dialogo, se visualiza el mensaje Ok, en el segundo dialogo salta de control y no se ejeucta el mensaje.
Botón por defecto en Dialogo.
Biel, Acabo de probar tu ejemplo con FWH 13.08 y funciona correctamente. Aqui puedes descargarlo: [url:3otmimev]https&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=biel&#46;zip[/url:3otmimev] Vamos a localizar ahora de donde procede la diferencia y te decimos. gracias
Botões de Radio / Barras de Deslocamento e Folder
Boas, venho pedir ajuda no seguinte estou a utilizar o seguinte códigopara Folder e com Barra de deslocamento, acontece que no emulador do meu PC funciona tudo bem, mas quando passo para o meu PDA QTEK S200, bloqueia quando selecciono o RADIO na folder1, na folder2 este radio funciona sempre bem , PORQUE:::(#include "FWCE.ch"#define GWL_STYLE (-16) #define WS_VSCROLL 0x00200000 function Main() local n_ordem:=space(10) local oSay1 local nStatus_med:=1 DEFINE WINDOW oWnd_med TITLE "Test Folders"; @ 0, -0.5 FOLDER oFld PROMPTS "Page1", "Page2","Page3" ; SIZE 247, 270 BOTTOM @ 33, 0 SAY oSay1 PROMPT "" OF oFld:aDialogs[ 1 ] ; SIZE oWnd_med:nWidth() +3, oWnd_med:nHeight() - 78; PIXEL BORDER COLOR "w+/bg" @ 0.4, 15 SAY "N.Ordem:" OF oSay1 SIZE 50, 15 @ 0.4, 18.5 GET n_ordem OF oSay1 SIZE 78, 20 */Exmplo 1 */Bloqueia no PDA porque? @ 0.7, 1 RADIO nStatus_med ; ITEMS "&Casado", "&Solteiro", "&Divorciado" SIZE 65, 15 ; OF oSay1 */Exmplo 2 */Não Bloqueia no PDA porque? @ 0.7, 1 RADIO nStatus_med ; ITEMS "&Casado", "&Solteiro", "&Divorciado" SIZE 65, 15 ; OF oFld:aDialogs[ 2 ] */ Barra de ScroolBar SetWindowLong( oSay1:hWnd, GWL_STYLE,; nOr( GetWindowLong( oSay1:hWnd, GWL_STYLE ), WS_VSCROLL ) ) ACTIVATE WINDOW oWnd_med return nil*// OBRIGADO
Botões de Radio / Barras de Deslocamento e Folder
>*/Exmplo 1 */Bloqueia no PDA porque? @ 0.7, 1 RADIO nStatus_med ; ITEMS "&Casado", "&Solteiro", "&Divorciado" SIZE 65, 15 ; OF oSay1>You should use ... OF oWnd_med
Bound error: Array access
Hello, I have a strange problem in a wbrowse. This is a part of the code :[code:2j59c3ai]SET KEY VK_DELETE TO tDelete &#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46; REDEFINE LISTBOX oLbx ID 101 OF oDlg FIELDS "","","","" &#46;&#46;&#46;&#46;&#46;&#46;&#46; oLbx&#58;bLine &#58;= {||{Fld1,Fld2,Fld3,Fld4,&#46;&#46;&#46;}} &#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46; REDEFIN BUTTON ID 901 OF oDlg ACTION tDelete() &#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46; STATIC PROCEDURE tDELETE // This procedure performs the delete-function of the choosen line in the wbrowse&#46; [/code:2j59c3ai] So I have defined the Delete-button of my keyboard as the button which performs tDelete(). If the focus is on the [b:2j59c3ai]last line[/b:2j59c3ai] of the wbrowse and I click with my mouse on the "DELETE" button in my dialog box, everything is happening as it should be : the last line of my wbrowse is deleted and my wbrowse is updated and refreshed. But if the focus still is on the [b:2j59c3ai]last line[/b:2j59c3ai] of the wbrowse and I push the Delete-button of my keyboard, I always get a "Bound error: Array access", refering to the line of the oLbx:bLine. Why does it work if a pushbutton in the dialogbox is used and why doesn't it worked if a linked key on my keyboard is used, although it performs exactly the same procedure ? I also noticed that, if I click on any line but the last line and I go back to the last line to delete it, both possibilities for deletion perform without any error. Thanks a lot in advance. Regards,
Bound error: Array access
Hi, please add: [code:22ooe0uz] oLbx&#58;aJustify &#58;= { &#46;T&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46;, &#46;F&#46; } [/code:22ooe0uz]
Bound error: Array access
Thanks for your answer, but that line already is in my source. So that is not the reason for the problem. But thanks anyway for your effort.
Bound error: Array access
Michel, you have to update record pointer, add (<cAlias>)->dbGoBottom() or dbSkip (0) before refreshing the browse
Bound error: Array access
Stefan, My wbrowse contains an array, not a DBF-file directly. Thanks.
Bound error: Array access
hello driessen what do you use, harbour or xHarbour how do you delete?
Bound error: Array access
Michel, [quote="driessen":b0jsq8nh]Stefan, My wbrowse contains an array, not a DBF-file directly. Thanks.[/quote:b0jsq8nh] for an array you can use oBrw:GoBottom () or update oBrw:bLogicLen and set it to the new array length. I had a similar problem, my solution was to manipulate the array outside the wbrowse object and to renew the array with oBrw:SetArray(...) every time I delete or add an array element.
Bound error: Array access
Driessen, i use wbrowse with array in this sample: aDatos := {} REDEFINE LISTBOX oLbx FIELDS "" ; HEADER "", "Cantidad", "U.M.", "Descripción", "Observaciones" ; SIZES 20, 60, 44, 290, 264 ; ID 116 OF oDlg FONT oFnt[1] UPDATE oLbx:bLine:= {|nAt| nAt:= oLbx:nAt, ; If( Len(aDatos)<1 .or. nAt>Len(aDatos),; Array(5), ; { If( oLbx!=Nil .and. oLbx:lSelect, hBmp, 0 ),; Transform( aDatos[nAt,1],"99,999.999" ),; aDatos[nAt,2],; aDatos[nAt,3],; aDatos[nAt,4] } ) } oLbx:SetArray( aDatos ) Regards Paco
Box Disappears In FWH1112
Hi, FUNCTION MAIN() LOCAL oDlg DEFINE DIALOG oDlg; GRADIENT ACLRGRAD() @ 0.3, 0.3 to 3.8, 22.414 // [color=#4000FF:3qax02qh]This box disappears[/color:3qax02qh] @ 1, 1 SAY "This is a test" @ 2, 1 SAY "This is a another test" ACTIVATE DIALOG oDlg; CENTER RETURN NIL STATIC FUNCTION ACLRGRAD() RETURN { { 1, RGB( 216, 230, 238 ), RGB( 103, 154, 194 ) } } How to get the box back ? Thanks ACWoo Using FWH1112+bcc582+Harbour
Box Round
I want create a Box with RoundBox function but I want only the top angles must be round How I can Create it ?
Box Round
Silvio, Try search for TSLines.prg from Manuel Mercado. See Paint method it can help you to get an idea to do what you want. Sorry if I can't send you this file, I have it in home but I'm not in home now... Regards, Maurilio
Box question
I made a Box with nRiga := 5.5 nColonna := 1 nAltezza := 0.8 nlarghezza := 4.5 .... oPrn:Box(nRiga,nColonna,nAltezza+nRiga,nlarghezza, { cColorbordo, nTipoBordo }, cBackbordo, ; { cTesto, oFnt, nColorFont, cAlign }, ; "CM" ) as you can see here [img:6jjq78sh]https&#58;//i&#46;postimg&#46;cc/Cx7DRr4F/f&#46;jpg[/img:6jjq78sh] How I can make to move [b:6jjq78sh]only[/b:6jjq78sh] the [b:6jjq78sh]text[/b:6jjq78sh] for some mm ? the "T" of the text is close to the line of the box, how do I move the content of the text so that the whole box does not move? If I insert nColonna+[b:6jjq78sh]0.3[/b:6jjq78sh] it move also the box
Box question
Example for tests? >-< cBackbordo ???
Box question
[quote="karinha":2h7q7cfv]Example for tests? >-< cBackbordo ???[/quote:2h7q7cfv] it is color back
Box question
there is an error on build of the Box [img:qcpgdiuy]https&#58;//i&#46;postimg&#46;cc/90mZNvrD/errore&#46;png[/img:qcpgdiuy] the boxes are identical changes only the coordinates of the row [b:qcpgdiuy]FIRST[/b:qcpgdiuy] nRiga := 5.5 nColonna := 1 nAltezza := 0.8 nlarghezza := 4.5 cTesto := "Tipo documento" cColorbordo := CLR_BLACK nTipoBordo := 0.01 nAngleBordo := 0 cBackbordo := CLR_HGRAY cCarattere := "Arial" nSizefont := 6 cAlign := "TL" nColorFont := CLR_BLACK [b:qcpgdiuy]SECOND [/b:qcpgdiuy] nRiga := 6.3 nColonna := 1 nAltezza := 0.8 nlarghezza := 4.5 cTesto := "Cod Cliente" cColorbordo := CLR_BLACK nTipoBordo := 0.01 nAngleBordo := 0 cBackbordo := CLR_WHITE cCarattere := "Arial" nSizefont := 6 cAlign := "TL" nColorFont := CLR_BLACK oPrn:Box(nRiga,nColonna,nAltezza+nRiga,nlarghezza, { cColorbordo, nTipoBordo }, cBackbordo, ; { cTesto, oFnt, nColorFont, cAlign }, ; "CM" ) [b:qcpgdiuy]I saw when there is not the background color the line of the box is too big[/b:qcpgdiuy]
Box question
Show in this example what is wrong. Muestre en este ejemplo lo que está mal. [code=fw:b22mvbra]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \samples\boxbordo.prg</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PrnBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oPrn, oFont, cTexto2, oBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> NRIGA, NCOLONNA, NALTEZZA, NLARGHEZZA, CTESTO, CCOLORBORDO, CALIGN, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NTIPOBORDO, NANGLEBORDO, CBACKBORDO, CCARATTERE, NCOLORFONT, NSIZEFONT<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nlarghezz2<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// FIRST</span><br />&nbsp; &nbsp;nRiga &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">3.0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Linha</span><br />&nbsp; &nbsp;nColonna &nbsp; &nbsp;:= <span style="color: #000000;">1.00</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Coluna</span><br />&nbsp; &nbsp;nAltezza &nbsp; &nbsp;:= <span style="color: #000000;">1.50</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// altura</span><br />&nbsp; &nbsp;nlarghezza &nbsp;:= <span style="color: #000000;">12.00</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// largura</span><br />&nbsp; &nbsp;cTesto &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"Tipo documento"</span> &nbsp;<span style="color: #B900B9;">// Texto</span><br />&nbsp; &nbsp;cColorbordo := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">227</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// cor das bordas</span><br />&nbsp; &nbsp;nTipoBordo &nbsp;:= <span style="color: #000000;">1.50</span><br />&nbsp; &nbsp;nAngleBordo := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;cBackbordo &nbsp;:= RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">27</span>, <span style="color: #000000;">161</span>, <span style="color: #000000;">226</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// cor do fundo.</span><br />&nbsp; &nbsp;cCarattere &nbsp;:= <span style="color: #ff0000;">"Arial"</span><br />&nbsp; &nbsp;nSizefont &nbsp; := <span style="color: #000000;">6</span><br />&nbsp; &nbsp;cAlign &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"TL"</span><br />&nbsp; &nbsp;nColorFont &nbsp;:= RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">239</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cTexto2 &nbsp; &nbsp; := <span style="color: #ff0000;">"Silvio Printer"</span><br />&nbsp; &nbsp;nlarghezz2 &nbsp;:= <span style="color: #000000;">18.00</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh1905<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\p</span>ebbles.bmp"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Silvio Falconi in Box"</span> PREVIEW <span style="color: #0000ff;">MODAL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oPrn BOLD<br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">//->A4</span><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//->Vertical</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">RoundBox</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, .<span style="color: #000000;">5</span>, .<span style="color: #000000;">5</span>, <span style="color: #000000;">&#123;</span> CLR_HRED, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span>, oBrush, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"FIRST"</span> + CRLF + <span style="color: #ff0000;">"SECOND"</span>, oFont, CLR_WHITE, <span style="color: #ff0000;">"B"</span> <span style="color: #000000;">&#125;</span>, &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"INCHES"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> nRiga, nColonna, nAltezza + nRiga, nlarghezza, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cColorbordo, nTipoBordo <span style="color: #000000;">&#125;</span>, cBackbordo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cTesto, oFont, nColorFont, cAlign <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"CM"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nRiga &nbsp; &nbsp;:= nRiga + <span style="color: #000000;">2.00</span><br />&nbsp; &nbsp; &nbsp; nColonna := nColonna + <span style="color: #000000;">2.00</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> nRiga, nColonna, nAltezza + nRiga, nlarghezza, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cColorbordo, nTipoBordo <span style="color: #000000;">&#125;</span>, cBackbordo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cTexto2, oFont, nColorFont, cAlign <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"CM"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nRiga &nbsp; &nbsp;:= nRiga + <span style="color: #000000;">2.00</span><br />&nbsp; &nbsp; &nbsp; nColonna := nColonna + <span style="color: #000000;">2.00</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> nRiga, nColonna, nAltezza + nRiga, nlarghezz2, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cColorbordo, nTipoBordo <span style="color: #000000;">&#125;</span>, cBackbordo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TIPO DOCUMENTO"</span>, oFont, nColorFont, cAlign <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"CM"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nRiga &nbsp; &nbsp;:= nRiga + <span style="color: #000000;">2.00</span><br />&nbsp; &nbsp; &nbsp; nColonna := nColonna - <span style="color: #000000;">2.00</span><br /><br />&nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> nRiga, nColonna, nAltezza + nRiga, nlarghezz2, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> cColorbordo, nTipoBordo <span style="color: #000000;">&#125;</span>, cBackbordo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"F I V E W I N"</span>, oFont, nColorFont, cAlign <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"CM"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:b22mvbra]
Box question
[quote="karinha":16arh926]Show in this example what is wrong. Muestre en este ejemplo lo que está mal. [    RELEASE BRUSH oBrush    RELEASE FONT oFont   RETURN NIL  [/code][/quote:16arh926] querido señor me parece que está exagerando, es la segunda vez que me escribe e inserta ejemplos (fuente) que nada tiene que ver con lo que estoy haciendo si miras atentamente mis cajas te darás cuenta de que todas son diferentes a la que hiciste Estoy haciendo una estructura de una factura, por supuesto, no he publicado toda mi fuente, solo los datos esenciales para comprender el problema. hay dos cajas, una arriba y otra debajo, las cajas están adjuntas 1) [b:16arh926] el primer cuadro[/b:16arh926],el primer cuadro está en la fila 5.5 y la columna 1, de 4,5 cm de largo,y 0,8 de altura tiene el color de fondo en gris claro, tiene un texto "Tipo de documento" en el color negro de la fuente Aial tamaño 6 y está colocado arriba (T) y a la izquierda (L) 2) [b:16arh926]el segundo recuadro[/b:16arh926] de la fila 6.3 en la columna 1, 2.5 de ancho y 0.8 de alto, color de fondo blanco y el texto en color negro siempre con Arial y dimensión 6 y siempre en posición TL ahora tenemos que insertar otros escritos en el cuadro de caracteres 12 pero no puedo usar el comando simple cmsay o decir imprimir porque estas escrituras pueden tener colores o cajas entonces tengo que usar el mismo sistema 3)el tercer cuadro está en la línea 6.3 en la columna 1, 2.5 de ancho y 0.8 de alto, con el texto "001" con la fuente Arial pero el tamaño de fuente 12, el fondo es blanco como puedes ver en esta figura [img:16arh926]https&#58;//i&#46;postimg&#46;cc/zDStxZVz/hhh&#46;png[/img:16arh926] ahora creado la matriz aHeader intentemos imprimir las cajas [img:16arh926]https&#58;//i&#46;postimg&#46;cc/brNQ65Br/boxes-errore&#46;png[/img:16arh926] pero al mirar las casillas me doy cuenta de que la segunda casilla de abajo a pesar de estar colocada en la columna 1 está más atrás que la casilla de arriba además de tener un contorno mucho más grueso, ¿lo ves tú también?
Box question
[b:3g9g41vi]HE ENCONTRADO EL PROBLEMA[/b:3g9g41vi] [b:3g9g41vi]si no hay border lo hice[/b:3g9g41vi] oPrn:Box(nRiga,nColonna,nAltezza+nRiga,nlarghezza, nil, nil, ; { cTesto, oFnt, nColorFont, cAlign }, ; "CM" ) [b:3g9g41vi]pero el "nil" tiene problemas[/b:3g9g41vi] para mover el cuadro y poner un contorno más grande [b:3g9g41vi]tal vez funcione así[/b:3g9g41vi] oPrn:Box(nRiga,nColonna,nAltezza+nRiga,nlarghezza, { "", 0 }, "", ; { cTesto, oFnt, nColorFont, cAlign }, ; "CM" ) [img:3g9g41vi]https&#58;//i&#46;postimg&#46;cc/xdQV4rK9/ok&#46;png[/img:3g9g41vi]
Box question
[quote:1z69se0r]How I can make to move only the text for some mm ? the "T" of the text is close to the line of the box, how do I move the content of the text so that the whole box does not move? [/quote:1z69se0r] You have to print the text separately.
Box transparente en TPrinter
Amigos por cuestiones de la impresión de un texto variable, necesito primero imprimir el texto y luego, recuadrarlo. Como no sé exactamente cuan extenso va a ser el mismo, opté por esta forma. El tema es que cuando imprimo el Box sobre el texto, me superpone el mismo y no se vé. Como podría resolverlo? Ya que la oPrn:Box no tiene una cláusula TRANSPARENTE? Desde ya, muchas gracias! Roberto
Box transparente en TPrinter
Intenta asi: [code=fw:9u0iz1ce]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> PEN oPen1 WIDTH &nbsp;<span style="color: #000000;">4</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> PEN oPen2 WIDTH &nbsp;<span style="color: #000000;">2</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">OF</span> oPrn<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> PEN oPen3 WIDTH <span style="color: #000000;">10</span> <span style="color: #0000ff;">COLOR</span> CLR_HBLUE <span style="color: #0000ff;">OF</span> oPrn<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0.50</span> * ResLinha, &nbsp;<span style="color: #000000;">0.20</span> * ResColuna, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">4.70</span> * ResLinha, <span style="color: #000000;">20.00</span> * ResColuna, oPen3 <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:9u0iz1ce] Saludos. 
Box transparente en TPrinter
Gracias.... <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Sinceramente no sé que estaba haciendo.... Muy simple.... perdón.
Bpaint execute
I have a dialog with a folderex On bpaint I call a function to search of exist a record And fill a Array adata And show a message on folder:adialogs[1] The problem Is make error because when call the function to create the message the folder Is not created Also . But It Is strange because 1) if put the message on ofolder:adialogs[1] Make error 2) if put the message on ofolder It not make error How i can resolve?
Break a array appart (result of swagger request) (SOLVED)
Afther putting a swagger command online, I get a querry result like this : The status 200 = that there was a positive result found. {"status":200,"data":[{"customerId":1,"gender":"","firstName":"Marc","lastName":"Venken","dob":"0000-00-00","emailAddress":"marc@maveco.be","addressBookIds":"2","defaultBillingAddressId":2,"defaultDeliveryAddressId":2,"phoneNumber":"89853445","faxNumber":"","bankAccountNumber":"","subscribedToNewsletter":"0","guestAccount":1,"approved":1,"discountGroupId":0,"discountGroupName":"","groupDiscount":"0.00","numberOfLogins":1,"lastLoginDate":"2014-09-11 10:40:15","dateCreated":"2020-04-07 21:18:10","lastModified":"2020-04-07 21:18:11"}]} It's a array of a kind, and I dislike arrays, because they always post me trouble ))) Can someone pull it appart, so that I have the result more easy like : Customer : 1 firstname : Marc Or even better, in a Xbrowse. There was a post like this, but no luck. [code=fw:32ebjryb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />XBROWSER cText <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"HASH"</span> NOMODAL<br />XBROWSER ArrayHashToArray<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"ARRAY"</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> ArrayHashToArray<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">Local</span> aReturn  := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Local</span> hItems   := <span style="color: #000000;">&#123;</span> => <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">Local</span> hItem    := <span style="color: #000000;">&#123;</span> => <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">Local</span> aHeaders := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Local</span> aRow     := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Local</span> nPositon := <span style="color: #000000;">0</span><br /><br />    <span style="color: #00C800;">for</span> each hItems in aData<br /><br />        <span style="color: #00C800;">for</span> each hItem in hItems<br /><br />            <span style="color: #00C800;">if</span> aScan<span style="color: #000000;">&#40;</span> aHeaders, hItem:__enumkey<span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br /><br />                aAdd<span style="color: #000000;">&#40;</span> aHeaders, hItem:__enumkey <span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #00C800;">Endif</span><br /><br />        <span style="color: #00C800;">next</span><br /><br />    <span style="color: #00C800;">next</span><br /><br />    aAdD<span style="color: #000000;">&#40;</span> aReturn, aHeaders <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">for</span> each hItems in aData<br /><br />        aRow := Array<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> aHeaders <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">for</span> each hItem in hItems<br /><br />            aRow<span style="color: #000000;">&#91;</span> aScan<span style="color: #000000;">&#40;</span> aHeaders, hItem:__enumkey <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> := hItem:__enumvalue<br /><br />        <span style="color: #00C800;">next</span><br /><br />        aAdD<span style="color: #000000;">&#40;</span> aReturn, aRow <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">&#40;</span> aReturn <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:32ebjryb]
Break a array appart (result of swagger request) (SOLVED)
The result file was a Json file. Never seen before, but found on Google Fw can handle them... Great I found a sample solution : hb_JsonDecode( cText, @hHash ) XBrowse( hHash[ "data" ] )
Brinco en Listbox
Hola, estoy intentando que en Listbox pueda moverme hacia arriba, abajo, inicio y fin pero con Botones (Una por cada función para usar en monitor touch), el caso es que si hago; Skip 1 oLbx:Setfocus() oLbx:Refresh() Si se mueven los registros en el Listbox, pero con toda la "Imagen", es posible hacer lo mismo que hace el lVScroll ? me refiero como brinca el puntero al hacer click en los simbolos de arriba o abajo. Espero haberme explicado bien, gracias
Brinco en Listbox
¿Probaste con oLbx:GoDown() oLbx:GoUp() ?
Bring Dialog to Top on System Tray App
I have a system tray app, and I would like to bring the dialog to the front of the desktop. I have tried oDlg:GoTop() Tried BringWindowToTop( oDlg:hWnd ) oDlg:SetFocus() None seem to work. Any ideas... Byron ...
Bring Dialog to Top on System Tray App
Byron Hopp, [quote:r6z8w9ib]I would like to bring the dialog to the front of the desktop. I have tried oDlg:GoTop() Tried BringWindowToTop( oDlg:hWnd ) oDlg:SetFocus()[/quote:r6z8w9ib] [color=#0040FF:r6z8w9ib][b:r6z8w9ib]ACTIVATE DIALOG oDlg CENTERED ; ON INIT SETWINDOWPOS( oDlg:hWnd, -1, 0, 0, 0, 0, 3 ) [/b:r6z8w9ib][/color:r6z8w9ib] A possible usage : I added a switch to change from [color=#0000FF:r6z8w9ib]on top[/color:r6z8w9ib] to [color=#0000FF:r6z8w9ib]taskbar[/color:r6z8w9ib] to the installer connected to the internet You can stay on top of a website or move to the taskbar on focus-change [img:r6z8w9ib]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/OnTop3&#46;jpg[/img:r6z8w9ib] If You want to switch between top and taskbar at runtime here is the needed little exe Usage : [color=#008000:r6z8w9ib]WINEXEC( "RESTART Install.exe " + Str( oWnd:hWnd ), 0 )[/color:r6z8w9ib] ( replace < install.exe > with Your program-name and change < oWnd:hWnd > to the used name ) <!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Restart.exe">http://www.pflegeplus.com/DOWNLOADS/Restart.exe</a><!-- m --> [code=fw:r6z8w9ib]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// ---------- Close ( position saved to INI )</span><br /><br />@ <span style="color: #000000;">15</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">45</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose ;<br />FILE  c_path1 + <span style="color: #ff0000;">"Closew1.bmp"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, ;<br />        c_path1 + <span style="color: #ff0000;">"Closew2.bmp"</span> ;<br />FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nWndTop := oWnd:<span style="color: #000000;">nTop</span>, nWndLeft := oWnd:<span style="color: #000000;">nLeft</span>, ;<br />         SAVE_INI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<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: #0000ff;">SIZE</span> <span style="color: #000000;">24</span>, <span style="color: #000000;">24</span>  <br />oBtnClose:<span style="color: #000000;">lTransparent</span> := .T.<br />oBtnClose:<span style="color: #000000;">cToolTip</span> := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Exit installer"</span>, <span style="color: #ff0000;">"EXIT"</span>, <span style="color: #000000;">1</span>, CLR_BLACK, <span style="color: #000000;">14089979</span> <span style="color: #000000;">&#125;</span> <br /><br />@ <span style="color: #000000;">390</span>, <span style="color: #000000;">305</span> <span style="color: #0000ff;">RADIO</span> oPRadio2 <span style="color: #0000ff;">VAR</span> nWndPos <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"on TOP"</span>, <span style="color: #ff0000;">"normal"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#123;</span> ||  SAVE_INI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, WINEXEC<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"RESTART Install.exe "</span> + Str<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">UPDATE</span>  <span style="color: #B900B9;">// close and restart</span><br />AEval<span style="color: #000000;">&#40;</span> oPRadio2:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRad | oRad:<span style="color: #000000;">lTransparent</span> := .T., ;<br />          oRad:<span style="color: #000000;">SetFont</span> <span style="color: #000000;">&#40;</span> oFontSys <span style="color: #000000;">&#41;</span>, ;<br />          oRad:<span style="color: #000000;">nClrText</span> := <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// windows or dialog</span><br /><span style="color: #B900B9;">// moves on restart to the saved position from INI</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> nWndTop, nWndLeft, oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span>, .F. <span style="color: #000000;">&#41;</span>, ;<br />BACKGRD<span style="color: #000000;">&#40;</span> oWnd, nBackgrd, nWColorB, nWGradpos, cWBrush <span style="color: #000000;">&#41;</span>, ;<br />IIF<span style="color: #000000;">&#40;</span> nWndPos = <span style="color: #000000;">1</span>, SETWINDOWPOS<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, ;  <span style="color: #B900B9;">// TOP</span><br />     SETWINDOWPOS<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-3</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ; <span style="color: #B900B9;">// TASKBAR</span><br />     SET_MENUE<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span>, ;<br />     DRAWROUND<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /> </div>[/code:r6z8w9ib] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Bring another APP to top
Hi, how can I bring another APP to top? I developed an app to kill the task of my main project before start the compilation process, but the focus of the APP don't back for the compilation. PS.: I Don't have the WindowText of this other APP so I can't use this code bellow [code=fw:3h95pa8w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;CFILENAME := <span style="color: #ff0000;">"test.exe"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">&#40;</span> CFILENAME<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test is running"</span>,<span style="color: #ff0000;">"Attenzione"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"TEST"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"TEST"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> m->oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TEST"</span><br /><br />&nbsp;</div>[/code:3h95pa8w]
Bring another APP to top
Nobody?
Bring another APP to top
I am not sure I understand what you are trying to do, but maybe this is what you need. Save the foreground window then later set it to the foregroundWindow again using setForegroundWindow(). LOCAL hWnd := GETFOREGROUNDWINDOW() DLL32 FUNCTION GETFOREGROUNDWINDOW() AS LONG; PASCAL FROM "GetForegroundWindow" LIB "user32.dll" Regards, James
Browse
Antonio, When I browse empty database browse has no vertical scroll bar. When record is added often vertical scroll bar is still hide (database is browse with ordfocus function master-details view). Is there a method to force vertical scroll bar always show (refresh, browse etc.). Scroll bar often hide with return to window with listbox from long runtime function. Regards Pawel
Browse headers y fields pasando parametro
Hola buenas tardes tengo este browse de ejemplo @ 2, 2 BROWSE oBrw OF oWnd ; HEADERS "Selected", "First", "Second" ; FIELDS If( aTest[ oBrw:nAt ][ 1 ], "X", " " ), aTest[ oBrw:nAt ][ 2 ], aTest[ oBrw:nAt ][ 3 ] los headers y fields se los pongo y salen los campos de que manera podria yo manipular o pasarle unos parametros como variable o que automaticamente me agarre todo los campos de la base de datos alias() o el header o fields que yo les quiera mandar como variable con la informacion tipo arreglo saludos y gracias
Browse headers y fields pasando parametro
Ya me quedo ,,,, para pasar x campos le puse ccampos:="campo1,campo2, campo3" ya con esto puedo manipular con un ciclo los campos que requiero presentar y en el browse le puse fields &ccampos y cholis saludos
Browse Consulta
se puede incluir un bitmap en la cabecera de un Browse o Listbox o sea en vez de poner un titulo poner un bitmap por titulo Alguien sabe... GRACIAS
Browse Consulta
Hola: Te envio un BMP a tu privado, para ver si es lo que necesitas. Si te sirve, me avisas para enviarte el codigo. Saludos, Miguel Rivera [quote="A&C":1lkftoue]se puede incluir un bitmap en la cabecera de un Browse o Listbox o sea en vez de poner un titulo poner un bitmap por titulo Alguien sabe... GRACIAS[/quote:1lkftoue]
Browse Consulta
Disculpa, Necesito tu correo privado, para enviarte lo que te ofresi. Saludos, Miguel [quote="A&C":2dhylhw4]se puede incluir un bitmap en la cabecera de un Browse o Listbox o sea en vez de poner un titulo poner un bitmap por titulo Alguien sabe... GRACIAS[/quote:2dhylhw4]
Browse Consulta
<!-- e --><a href="mailto:leiva_36@hotmail.com">leiva_36@hotmail.com</a><!-- e --> Gracias
Browse Consulta
Te envie un BMP a tu privado, Saludos [quote="A&C":1x59skcw]leiva_36@hotmail.com Gracias[/quote:1x59skcw]
Browse Consulta
es mas o menos lo q necesito si podrias mandarme el codigo gracias las pantallas las haces manuales o sea con @ 10,10 SAY algo asi o con recuersos como en archivos .RC o DLL en todo caso esta super bonita la pantalla del browse
Browse Consulta
Te envie el Codigo: Consta de 3 Archivos: 1 Prg, 1 Dll, 1 DBF, Espero te sirva, Miguel [quote="A&C":2c81vfu0]es mas o menos lo q necesito si podrias mandarme el codigo gracias las pantallas las haces manuales o sea con @ 10,10 SAY algo asi o con recuersos como en archivos .RC o DLL en todo caso esta super bonita la pantalla del browse[/quote:2c81vfu0]
Browse Consulta
Avisame, si te llego mi correo con el codigo. Saludos, Miguel [quote="Miguel Rivera":2apfk3nb]Te envie el Codigo: Consta de 3 Archivos: 1 Prg, 1 Dll, 1 DBF, Espero te sirva, Miguel [quote="A&C":2apfk3nb]es mas o menos lo q necesito si podrias mandarme el codigo gracias las pantallas las haces manuales o sea con @ 10,10 SAY algo asi o con recuersos como en archivos .RC o DLL en todo caso esta super bonita la pantalla del browse[/quote:2apfk3nb][/quote:2apfk3nb]
Browse Consulta
Miguel el archivo q mandaste no se descarga bien que usaste para comprimirlos archivos el ARJ,, usa WINZIP ARJ ya no se usa, pues no tendria con que descomprimirlo GRACIAS ,, me urge el tema SALUDOS
Browse Consulta
Ya no me encuentro en la Oficina, por lo que te envio el descompactador ARJ, Mañana Tipo 15:00, te envio en WINZIP. Saludos, Miguel [quote="A&C":10wn4coi]Miguel el archivo q mandaste no se descarga bien que usaste para comprimirlos archivos el ARJ,, usa WINZIP ARJ ya no se usa, pues no tendria con que descomprimirlo GRACIAS ,, me urge el tema SALUDOS[/quote:10wn4coi]
Browse Consulta
Miguel si puedes enviame los archivos sin comprimir ,, claro si es q no pesan mucho.. Ojo Hotmail encontro un virus en tus envios,, quizas debas revisar tu equipo,, o quizas Hotmail no le gusta tu direccion de Mail,, a veces pasa.. si puedes enviame tambien es este otro eMail... <!-- e --><a href="mailto:ZXZXZX@123MAIL.CL">ZXZXZX@123MAIL.CL</a><!-- e --> GRACIAS
Browse Consulta
Te los envio a las 15:00, sin comprimir, Saludos, Miguel [quote="A&C":2fhux5hs]Miguel si puedes enviame los archivos sin comprimir ,, claro si es q no pesan mucho.. Ojo Hotmail encontro un virus en tus envios,, quizas debas revisar tu equipo,, o quizas Hotmail no le gusta tu direccion de Mail,, a veces pasa.. si puedes enviame tambien es este otro eMail... <!-- e --><a href="mailto:ZXZXZX@123MAIL.CL">ZXZXZX@123MAIL.CL</a><!-- e --> GRACIAS[/quote:2fhux5hs]
Browse Consulta
Ok estimado y GRACIAS AHi te cuento como me va
Browse Consulta
Amigo: Le he enviado 4 archivos a los 2 correos que me haz indicado, espero te sirva, me cuentas. Saludos, Miguel [quote="A&C":nljcmoq4]Ok estimado y GRACIAS AHi te cuento como me va[/quote:nljcmoq4]
Browse Consulta
Estimado me llego la DBF, DLL pero enviaste los OBJ no los PRG podrias mandarme los archivos fuente porfi para ve el codigo Gracias
Browse Consulta
Fue, una volada, no me fije en la extencion, pero ya estan en tu correo. Disculpa, Miguel [quote="A&C":1w01nhfn]Estimado me llego la DBF, DLL pero enviaste los OBJ no los PRG podrias mandarme los archivos fuente porfi para ve el codigo Gracias[/quote:1w01nhfn]
Browse Consulta
Como te han llegado? Miguel [quote="A&C":1m0zmup7]Estimado me llego la DBF, DLL pero enviaste los OBJ no los PRG podrias mandarme los archivos fuente porfi para ve el codigo Gracias[/quote:1m0zmup7]
Browse Consulta
Bueno Amigo: Nunca supe como te llego, pero por hoy ya me marcho de la oficina. Nos vemos, Miguel [quote="A&C":19pqjn8j]Estimado me llego la DBF, DLL pero enviaste los OBJ no los PRG podrias mandarme los archivos fuente porfi para ve el codigo Gracias[/quote:19pqjn8j]
Browse Consulta
Bueno amigo ,, te cuento me llegaron perfectos y me ayudo mucho para lo que tenia que hacer muchas GRACIAS
Browse Consulta
Hola: Disculpa que te moleste, necesito consultarte algo ya que en foro no me han contestado y es urgente. Necesito poder modificar los colores que trae el LISTBOX por cada registro, el que uso tiene como base el AZUL. 1. Se puede Cambiar el color y como 2. El Browse tiene un Filtro? Si me puedes ayudar, fantastico, Saludos, Miguel [quote="A&C":1542y4i2]Estimado me llego la DBF, DLL pero enviaste los OBJ no los PRG podrias mandarme los archivos fuente porfi para ve el codigo Gracias[/quote:1542y4i2]
Browse Consulta
amigo dime: que usas para los browse Usas LISTBOX nativo de FIVEWIN o TSBROWSE o algun otro es que depende de cual uses es si se puede pintar las lineas o no
Browse Consulta
Amigo: Uso Solo LISTBOX que viene con Fw22 que se enuentra en FW22\samples\gallery\onemany uso este por el FILTER (SELECT) El codigo es : REDEFINE LISTBOX oBrw ; FIELDS DToC( Facturas->Fecha ), Facturas->Concepto ; HEADERS "Fecha", "Concepto" ; ID ID_BROWSE OF oDlg ; ALIAS "Facturas" ; SELECT Facturas->Codigo FOR Clientes->Codigo ; UPDATE Ojala me puedas orientar, Miguel [quote="A&C":3bf9yv9w]amigo dime: que usas para los browse Usas LISTBOX nativo de FIVEWIN o TSBROWSE o algun otro es que depende de cual uses es si se puede pintar las lineas o no[/quote:3bf9yv9w]
Browse Consulta
Hay una instruccion para LISTBOX pero no la he ocupado nunca en realidad yo utilizo TSBROWSE parecido a LISTBOX oBrow:Setcolor(nClrfore,nClrBack) Fondo y Letras explicame q quieres hacer especificamente al BROWSE con relacion los colores
Browse Consulta
Hola: Mira, tengo una Dbu en la cual tengo definidos los departamentos de un edificio, para lo cual tengo 3 campo que generan un indice: PROYECTO+EDIFICIO+DEPARTAMENTO, como vez tengo que hacer un FILTRO, para que solo me muestre los departamentos que corresponden al edificio, previamente seleecionado. El color del LISTBOX, solo me aparece el registro en azul, necesito cambiar en color base por otro a definir, y si puedo, me gustaria que los departamentos vendidos aparezcan con color rojo y los disponibles con color verde, dentro del mismo LISTBOX. Uso Clipper 5.2e, Fivewin 2.2 y Blinker 5.1 EL codogo es el siguiente: Llamado desde Bitmap, para buscar Dpto. Redefine BitMap Id 25 Adjust Resource "BUSCA2" Of oDlgEdit Cursor oCurDedo On Click (Bus_dep(),oCod_dep1:Refresh()) Function Bus_dep() Local oDlg, oBot1, oBot2, oLbx1, oCurDedo Sele oDbdep DbSetorder(2) Seek Cod_pro1+Cod_edi1 Define Dialog oDlg ResName "BrowseSoloMuestra" Title "Departamentos" REDEFINE LISTBOX oBrw ; FIELDS oDbdep->Cod_dep , subs(Oridep->Det_ori,1,15) ,str(oDbdep->cos_dep),str(oDbdep->Can_dor),str(oDbdep->Can_ban); HEADERS "Código", "Orientación" , "Costo Dpto.", "Dormi","Baños"; ID 100 OF oDlg ; FIELDSIZES 50, 100, 80, 40,40; ALIAS "oDbdep" ; SELECT oDbdep->Cod_pro+oDbdep->Cod_edi FOR Cod_pro1+Cod_edi1 ; UPDATE; On DblClick ( Busca_dep2(),oDlg:End() ) Redefine BitMap Id 201 Adjust Resource "BotonOk" Of oDlg Cursor oCurDedo; On Click (Busca_dep2(),oDlg:End()) Redefine BitMap Id 202 Adjust Resource "BotonCancela" Of oDlg Cursor oCurDedo; On Click (Edi:=.f.,oDlg:End()) ACTIVATE DIALOG oDlg CENTERED Return (Cod_dep1:=oDbdep->Cod_dep) Function Busca_Dep2() Sele oDbde edi:=.t. cod_dep1:=oDbdep->cod_dep Return (Cod_dep1) *** Estoy super complicado, Desde ya muchas gracias por tu atención Miguel Rivera [quote="A&C":3kx4awxf]Hay una instruccion para LISTBOX pero no la he ocupado nunca en realidad yo utilizo TSBROWSE parecido a LISTBOX oBrow:Setcolor(nClrfore,nClrBack) Fondo y Letras explicame q quieres hacer especificamente al BROWSE con relacion los colores[/quote:3kx4awxf]
Browse Enfocado
Estimados Amigos, Tengo una rutina con varios browse todos contenidos en un arreglo oBrw, Ejem: oBrw[1], oBrw[2], etc... quisiera saber que usar para determinar el browse enfocado actualmente Gracias de antemano. William Chavez Noriega Lima - Peru <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Browse Enfocado
Willian, tente assim: if oBrw:lfocused endif Espero ter ajudado
Browse Ftp files
Hi all, I try to list all files in a ftp dir in xbrowse But I get for every filename only "binary" instead of the filename, MsgInfo (aFiles[1,1]) shows the correct filename [code=fw:z67fxcnw]<div class="fw" id="{CB}" style="font-family: monospace;">oInternet := tInternet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     oFtp      := tFtp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span> <span style="color: #000000;">&#40;</span>cIp, oInternet, cUser, cPW<span style="color: #000000;">&#41;</span><br /><br />     <span style="color: #00C800;">IF</span> Empty <span style="color: #000000;">&#40;</span>oFtp:<span style="color: #000000;">hFtp</span><span style="color: #000000;">&#41;</span><br />       ? <span style="color: #ff0000;">"Ftp failed"</span><br />     <span style="color: #00C800;">ELSE</span><br /><br />       cFile := GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />       oFtp:<span style="color: #000000;">SetCurrentDirectory</span><span style="color: #000000;">&#40;</span> cFolder <span style="color: #000000;">&#41;</span><br />       aFiles := oFtp:<span style="color: #000000;">Directory</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'*.*'</span><span style="color: #000000;">&#41;</span> <br />       aFiles := ADel <span style="color: #000000;">&#40;</span>aFiles,<span style="color: #000000;">1</span>,.t.<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// remove .</span><br />       aFiles := ADel <span style="color: #000000;">&#40;</span>aFiles,<span style="color: #000000;">1</span>,.t.<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// remove ..</span><br />        <br />       ? Len <span style="color: #000000;">&#40;</span>aFiles<span style="color: #000000;">&#41;</span>, aFiles <span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #B900B9;">// works correct</span><br />       xBrowser aF</div>[/code:z67fxcnw] Any hints ?
Browse Ftp files
Antonio, please, could you look at this sample. [code=fw:2yq06p1c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing the FiveWin new Internet Classes</span><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 /><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> cFtp := <span style="color: #ff0000;">"xxxx"</span><br />   <span style="color: #00C800;">local</span> cUser := <span style="color: #ff0000;">"xxxxx"</span><br />   <span style="color: #00C800;">local</span> cPass := <span style="color: #ff0000;">"xxxxx"</span><br /><br />   <span style="color: #00C800;">local</span> oInternet := TInternet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oFTP      := TFTP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFtp, oInternet, cUser,cPass <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Microsoft FTP</span><br />   <span style="color: #00C800;">local</span> aFiles<br /><br />   <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oFTP:<span style="color: #000000;">hFTP</span> <span style="color: #000000;">&#41;</span><br />      aFiles = oFTP:<span style="color: #000000;">Directory</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.*"</span> <span style="color: #000000;">&#41;</span><br />      AEval<span style="color: #000000;">&#40;</span> aFiles, <span style="color: #000000;">&#123;</span> | aFile | <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> aFile<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aFile<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"oFTP:hFTP is null"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   oInternet:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Done!"</span> <span style="color: #000000;">&#41;</span><br /><br />   xBrowser aFiles<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2yq06p1c] MsgInfo (...) is working fine, but why does xBrowse think, it´s a raw file ? Also all string functions (Substr(), Len (), Alltrim(), ...) do not work. Even Valtype () returns nothing. What kind of datatype is it ? [url=http&#58;//imageshack&#46;us/photo/my-images/11/pic01ti&#46;jpg/:2yq06p1c][img:2yq06p1c]http&#58;//img11&#46;imageshack&#46;us/img11/4858/pic01ti&#46;jpg[/img:2yq06p1c][/url:2yq06p1c] Uploaded with [url=http&#58;//imageshack&#46;us:2yq06p1c]ImageShack.us[/url:2yq06p1c]
Browse Ftp files
OK, after some investigation I found it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> oFTP:Directory( "*.*" ) return a nul-terminated string for the filename. In another sample I found this function to extract a normal string [code=fw:u682821d]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> ZTRIM<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cString, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, cString <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /> AEval <span style="color: #000000;">&#40;</span>aFiles, <span style="color: #000000;">&#123;</span>|x| Aadd <span style="color: #000000;">&#40;</span>aF, <span style="color: #000000;">&#123;</span>ZTRIM <span style="color: #000000;">&#40;</span>x<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>, x<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, x<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />       xBrowser aF</div>[/code:u682821d] this is working fine now. Antonio, just a suggestion, maybe it´s useful to enhance the the method Directory() in the class TFtp as follows [code=fw:u682821d]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> ZTRIM<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cString, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, cString <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">METHOD</span> Directory<span style="color: #000000;">&#40;</span> cMask <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TFTP<br />   ....<br />   ....<br />      <span style="color: #00C800;">if</span> ::<span style="color: #000000;">hFTP</span> != <span style="color: #00C800;">nil</span><br />      cBuffer = oWin32FindData:<span style="color: #000000;">cBuffer</span><br />      hFTPDir = FtpFindFirstFile<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hFTP</span>, cMask, @cBuffer, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />      oWin32FindData:<span style="color: #000000;">cBuffer</span> = cBuffer<br />      <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWin32FindData:<span style="color: #000000;">cFileName</span> <span style="color: #000000;">&#41;</span><br />         AAdd<span style="color: #000000;">&#40;</span> aFiles, <span style="color: #000000;">&#123;</span> ZTRIM <span style="color: #000000;">&#40;</span>oWin32FindData:<span style="color: #000000;">cFileName</span><span style="color: #000000;">&#41;</span>,;    <span style="color: #B900B9;">// change !!</span><br />                         oWin32FindData:<span style="color: #000000;">nSizeLow</span>,;<br />                         FileTimeToDate<span style="color: #000000;">&#40;</span> oWin32FindData:<span style="color: #000000;">nLastWriteAccess</span> <span style="color: #000000;">&#41;</span>,;<br />                         FileTimeToTime<span style="color: #000000;">&#40;</span> oWin32FindData:<span style="color: #000000;">nLastWriteAccess</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">while</span> InternetFindNextFile<span style="color: #000000;">&#40;</span> hFTPDir, @cBuffer <span style="color: #000000;">&#41;</span><br />            oWin32FindData:<span style="color: #000000;">cBuffer</span> = cBuffer<br />            AAdd<span style="color: #000000;">&#40;</span> aFiles, <span style="color: #000000;">&#123;</span> ZTRIM <span style="color: #000000;">&#40;</span>oWin32FindData:<span style="color: #000000;">cFileName</span><span style="color: #000000;">&#41;</span>,;   <span style="color: #B900B9;">// change !!</span><br />                            oWin32FindData:<span style="color: #000000;">nSizeLow</span>,;<br />                            FileTimeToDate<span style="color: #000000;">&#40;</span> oWin32FindData:<span style="color: #000000;">nLastWriteAccess</span> <span style="color: #000000;">&#41;</span>,;<br />                            FileTimeToTime<span style="color: #000000;">&#40;</span> oWin32FindData:<span style="color: #000000;">nLastWriteAccess</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         end<br />      <span style="color: #00C800;">endif</span><br />      InternetCloseHandle<span style="color: #000000;">&#40;</span> hFTPDir <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> aFiles</div>[/code:u682821d] What do you think ?
Browse Ftp files
another enhancement to read the current directory of the ftp-server Maybe it can be included in the next fwh-version, too. in wininet.prg [code=fw:3im19j56]<div class="fw" id="{CB}" style="font-family: monospace;">DLL32 <span style="color: #00C800;">FUNCTION</span> FtpGetCurrentDirectory<span style="color: #000000;">&#40;</span> hFTP AS LONG, @cDirName AS LPSTR, @nLength AS LONG <span style="color: #000000;">&#41;</span> ;<br />                              AS BOOL PASCAL ;<br />                              <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"FtpGetCurrentDirectoryA"</span> LIB hWinINet</div>[/code:3im19j56] in tftp.prg [code=fw:3im19j56]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GetCurrentDirectory<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />....<br />....<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> GetCurrentDirectory <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">LOCAL</span> lSuccess := .t.<br />  <span style="color: #00C800;">LOCAL</span> cDirName := Space <span style="color: #000000;">&#40;</span><span style="color: #000000;">1024</span> <span style="color: #000000;">&#41;</span><br /><br />  lSuccess := FtpGetCurrentDirectory<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hFTP</span>, @cDirName, Len <span style="color: #000000;">&#40;</span>cDirName<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> IIF <span style="color: #000000;">&#40;</span>lSuccess, cDirName, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:3im19j56]
Browse Header like Win XP
Is it possibile on Xharbour and Fw ?
Browse Header like Win XP
Silvio, If you use XP themes then you see the header painted, but still it is not fully implemented as a true header control.
Browse Header like Win XP
antonio, I insert the xp theme but I not see the orange line
Browse Header like Win XP
Yes, it is not visible as we are not using a true header control there yet.
Browse Header like Win XP
I saw the xbrowse not make it but the xbrowse use the header class ( I have a version with header class .. it give me from ozs
Browse Hi-Lite color attributes
To All I need to be able to set the Browse hi-lite bar color .. All I know about are : oBrw:nClrText oBrw:nClrPane oBrw:nClrForeFocus The above only control the un-hi-lited rows .. Any advice would be appreciated. Rick Lipkin SC Dept of Health, USA
Browse Hi-Lite color attributes
Rick, Assuming you are referring to TWBrowse, try nClrBackFocus. James
Browse Hi-Lite color attributes
James YES .. Twbrowse .. I will try and let you know. Rick
Browse VSCROLL
Antonio, Compile y corre testbrow.prg y el scroll vertical cuando es movido con el mouse no se mueven los registros, por lo contrario si se mueven los registros el scroll si se refresca.
Browse VSCROLL
Juan, Vamos a revisarlo. Gracias.
Browse and lower case keys
Hi. In browses, scan codes from upper and lower case keys seems to be the same... While in a browse, in a [i:77qvup74]bKeyDown[/i:77qvup74] function, how do I know if the user typed a lower or upper case letter ? Regards. Maurício Ventura Faria
Browse and lower case keys
[url:j18ndogv]https&#58;//vivaclipper&#46;wordpress&#46;com/2014/01/19/asc/[/url:j18ndogv] Regards, saludos.
Browse and lower case keys
[quote="karinha":3d9qdxw5][url:3d9qdxw5]https&#58;//vivaclipper&#46;wordpress&#46;com/2014/01/19/asc/[/url:3d9qdxw5][/quote:3d9qdxw5] Karinha, its the opposite... ASC returns the numeric code of a character string and Browses bKeyDown gives me a numeric code of a typed character. But in the browse, this code is the same for [b:3d9qdxw5]A[/b:3d9qdxw5] and [b:3d9qdxw5]a[/b:3d9qdxw5]. It always returns the upper case code, and I need to know if the lower case one was typed... [[]] Maurício Ventura Faria P.S. Vai Corinthians!
Browse and lower case keys
GetKeyState( VK_SHIFT ) --> Shift key is pressed