topic
stringlengths
1
63
text
stringlengths
1
577k
oReport con Landscape()
Hola a todos: Tengo la necesidad de hacer un reporte de forma horizontal "LandScape() ", pero tengo algunas dudas: por default el "FOOTER" esta en una posicion para Formato Vertical, Como cambio eso ???. Como controlo el cambio de pagina en landscape() ?, es decir el numero de renglones por pagina. Gracias por todo. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
oReport con Landscape()
Hola de nuevo Yadira: Si usas TReport y Tprinter: [code=fw:2xa2kgrq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oReporte:<span style="color: #000000;">SetLandscape</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//Impresión Landscape</span><br />oReporte:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">//Impresión Normal</span><br />oReporte:<span style="color: #000000;">lAutoLand</span>         := .T.  <span style="color: #B900B9;">//Para que automaticamente cambie la orientación de la hoja en Vertical u horizontal</span></div>[/code:2xa2kgrq] Para saber si un reporte esta en Landscape [code=fw:2xa2kgrq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> lLand:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> oDevice:<span style="color: #000000;">GetOrientation</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> lLand <br />    <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"LANDSCAPE"</span>,<span style="color: #ff0000;">"Reporte"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />    <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"PORTRAIT"</span>,<span style="color: #ff0000;">"Reporte"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span></div>[/code:2xa2kgrq] Espero te sirva..
oReport:DelColumn()
Amigos: Estoy tratando, "desde hace rato", eliminar columnas del reporte, cuando este ya ha sido creado. [code=fw:1bic69sy]<div class="fw" id="{CB}" style="font-family: monospace;">      <span style="color: #00C800;">IF</span> oReport:<span style="color: #000000;">lCreated</span><br />      <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>oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#41;</span><br />             <span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lTotal</span> =.t.<br />                <span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTotal</span> = <span style="color: #000000;">0</span><br />                   oReport:<span style="color: #000000;">DelColumn</span><span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">//modificado: tenia [n], pero igual...</span><br />                <span style="color: #00C800;">endif</span><br />             <span style="color: #00C800;">endif</span> <br />       <span style="color: #00C800;">next</span><br />       <span style="color: #00C800;">ENDIF</span></div>[/code:1bic69sy] Elimina columnas al azar, no las que necesito borrar. Alguna idea o sugerencia? Gracias.
oReport:DelColumn()
Has probado a llamar tu function de borrado de columnas en el ::bInit del ACTIVATE REPORT y probar a llamar después de nuevo al método Stabilize (quizás no haga falta)
oReport:DelColumn()
Cristóbal, gracias por contestar, sigue sin funcionar. [code=fw:154cuzkh]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; oReport:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">&#123;</span>|| BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; ó<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> REPORT oReport <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------------</span><br /><span style="color: #00C800;">Function</span> BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n<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>oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lTotal</span> &nbsp;=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTotal</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oReport:<span style="color: #000000;">DelColumn</span><span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span> <br />&nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; oReport:<span style="color: #000000;">Stabilize</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><br />&nbsp;</div>[/code:154cuzkh] Sigo intentando. Saludos.
oReport:DelColumn()
Es un poco absurdo lo que voy a decir, pero sin ver el codigo lo unico que se me ocurre es que cambies [code=fw:2nx71ug1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lTotal</span> &nbsp;=.t.<br /><br />por <br /><br /><span style="color: #00C800;">if</span> oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lTotal</span> &nbsp;<br /><br />&nbsp;</div>[/code:2nx71ug1] ya que en algun programa me ha hecho cosas raras con cosas parecidas
oReport:DelColumn()
Ya lo habia intentado de esa forma, y nada. Lo que trato de hacer es no presentar en el reporte, las columnas que tengan nTotal en 0. Lo que he notado es que solo con el :bEnd se puede capturar los nTotal de cada columna. Ej: [code=fw:3h1czgl5]<div class="fw" id="{CB}" style="font-family: monospace;">    oReport:<span style="color: #000000;">bEnd</span> := <span style="color: #000000;">&#123;</span>|| BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <span style="color: #0000ff;">ACTIVATE</span> REPORT oReport <br /><span style="color: #B900B9;">//--------------------------------</span><br /><span style="color: #00C800;">Function</span> BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n, oCol<br /><span style="color: #00C800;">local</span> nCols :=len<span style="color: #000000;">&#40;</span>oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nCols<br />       oCol := oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>          <span style="color: #B900B9;">//linea 1037</span><br />       <span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">lTotal</span> .and. <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">nTotal</span><span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span>   <span style="color: #B900B9;">// ==0</span><br />           <span style="color: #B900B9;">// oReport:DelColumn(oCol)</span><br />           <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">nTotal</span><span style="color: #000000;">&#41;</span>    <span style="color: #B900B9;">//muestra correctamente nTotal de columna</span><br />       <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">next</span><br /><br />    <span style="color: #B900B9;">//   oReport:Stabilize()</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3h1czgl5] Pero al ejecutarlo con oReport:DelColumn(), da este error: Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 19 Stack Calls =========== Called from: D:\COUNTR~1\WNOMIP~1\wnomipq.prg => BORRCOLUMNAS(1037) Saludos.
oReport:DelColumn()
[quote="FranciscoA":3g0x3vfv]Ya lo habia intentado de esa forma, y nada. Lo que trato de hacer es no presentar en el reporte, las columnas que tengan nTotal en 0. Lo que he notado es que solo con el :bEnd se puede capturar los nTotal de cada columna. Ej: [code=fw:3g0x3vfv]<div class="fw" id="{CB}" style="font-family: monospace;">    oReport:<span style="color: #000000;">bEnd</span> := <span style="color: #000000;">&#123;</span>|| BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <span style="color: #0000ff;">ACTIVATE</span> REPORT oReport <br /><span style="color: #B900B9;">//--------------------------------</span><br /><span style="color: #00C800;">Function</span> BorrColumnas<span style="color: #000000;">&#40;</span>oReport<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n, oCol<br /><span style="color: #00C800;">local</span> nCols :=len<span style="color: #000000;">&#40;</span>oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nCols<br />       oCol := oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>          <span style="color: #B900B9;">//linea 1037</span><br />       <span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">lTotal</span> .and. <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">nTotal</span><span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span>   <span style="color: #B900B9;">// ==0</span><br />           <span style="color: #B900B9;">// oReport:DelColumn(oCol)</span><br />           <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">nTotal</span><span style="color: #000000;">&#41;</span>    <span style="color: #B900B9;">//muestra correctamente nTotal de columna</span><br />       <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">next</span><br /><br />    <span style="color: #B900B9;">//   oReport:Stabilize()</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3g0x3vfv] Pero al ejecutarlo con oReport:DelColumn(), da este error: Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 19 Stack Calls =========== Called from: D:\COUNTR~1\WNOMIP~1\wnomipq.prg => BORRCOLUMNAS(1037) Saludos.[/quote:3g0x3vfv] Francisco, creo que cuando eliminas la columna, has de actualizar el valor de [code=fw:3g0x3vfv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nCols--<br />&nbsp;</div>[/code:3g0x3vfv] para que no te de error de acceso a array. Otra historia es que consigas lo que necesitas
oReport:DelColumn()
Cristobal, gracias por tu tiempo e interes. Precisamente como indicas, asi lo estoy haciendo: //Las 2 maneras trabajan bien, pero como no se puede capturar nTotal con :lCreated //borra todas las columnas porque las toma como 0, y con :bEnd borra solo en la //linea de totales. [code=fw:1rghykje]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #B900B9;">/*<br />   for n:=1 to nCols <br />       oCol := oReport:aColumns[n] <br />       if oCol:lTotal = .t. .and. Abs(oCol:nTotal) = 0<br />          msginfo("vamos a borrar col "+str(n,3) +"  "+ Eval(oCol:aTitle[1])+" "+ Eval(oCol:aTitle[2]))<br />          oReport:DelColumn(n)<br />          nCols :=len(oReport:aColumns)<br />          n -= 1<br />       endif<br />    next<br />    */</span><br /><br /><span style="color: #B900B9;">/*<br />   n:=1<br />   While n <= nCols<br />       oCol := oReport:aColumns[n] <br />       if oCol:lTotal = .t. .and. Abs(oCol:nTotal) = 0<br />          msginfo("vamos a borrar col "+str(n,3) +"  "+ Eval(oCol:aTitle[1])+" "+ Eval(oCol:aTitle[2]))<br />          oReport:DelColumn(n)<br />          nCols :=len(oReport:aColumns)<br />          //loop<br />       endif<br />       n +=1<br />          MsgInfo("n: "+str(n)+"  nCols: "+str(nCols))<br />   Enddo<br />*/</span><br /> </div>[/code:1rghykje] <!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?f=6&t=28286#p158318">viewtopic.php?f=6&t=28286#p158318</a><!-- l --> Saludos.
oReport:Say() en REPEXCEL [II]
Hola, sigo con la misma cosa... Bueno, definitivamente no hay manera de hacer un reporte con SAY(), para luego volcarlo a Excel (a través del Preview). La unica forma que encontre es declarando una variable, desde el principio, que me indique a la REPEXCEL, que se quiere llevar la salida a Excel. Asi, que las cosas quedan como sigue: 1.- Declarar lExcel := .T. 2.- Crear el reporte como sigue: [code:jryovqny] REPORT oReport ; TITLE &#46;&#46;&#46;&#46;&#46; ; FONT &#46;&#46;&#46;&#46;&#46; ; PEN &#46;&#46;&#46;&#46;&#46;&#46;&#46; ; HEADER &#46;&#46;&#46;&#46;&#46;; FOOTER &#46;&#46;&#46;&#46;&#46;; DEVICE &#46;&#46;&#46;&#46; COLUMN &#46;&#46;&#46;&#46;&#46; COLUMN &#46;&#46;&#46;&#46;&#46; COLUMN &#46;&#46;&#46;&#46;&#46; &#91;mas definiciones de columnas&#93; END REPORT ACTIVATE REPORT oReport ON INIT SayRpt&#40; oReport &#41; // ------------ static Function SayRpt&#40; oReport &#41; wPlsSalida&#40;&#46;T&#46;, oReport, lExcel &#41; oArchivo&#58;GOTOP&#40;&#41; DO WHILE oArchivo&#58;EOF&#40;&#41; oReport&#58;StartLine&#40;&#41; oReport&#58;Say&#40;1, oArchivo&#58;Campo1&#41; oReport&#58;Say&#40;2, oArchivo&#58;Campo2&#41; &#91;Otras columnas a imprimir&#93; oReport&#58;EndLine&#40;&#41; oArchivo&#58;Skip&#40;&#41; ENDDO wPlsSalida&#40;&#46;F&#46;, oReport, lExcel &#41; RETURN NIL [/code:jryovqny] La funcion wPlsSalida es la siguiente: [code:jryovqny] FUNCTION wPlsSalida&#40;lBoxOn, oRpt, lExcel &#41; IF lBoxOn DO CASE CASE lExcel wPlsWait&#40;&#46;T&#46;,"Generando Archivo Excel&#46;&#46;&#46;&#46; espere "&#41; oRpt&#58;lSalida &#58;= &#46;T&#46; oRpt&#58;oSalida &#58;= TSalXls&#40;&#41;&#58;New&#40; oRpt, AllTrim&#40; Left&#40; oRpt&#58;cName, 8 &#41; &#41; + '&#46;xls' &#41; oRpt&#58;oSalida&#58;Stabilize&#40;&#41; oRpt&#58;oSalida&#58;FormatColumns&#40;&#41; oRpt&#58;oSalida&#58;StartPage&#40;&#41; ENDCASE ELSE DO CASE CASE lExcel wPlsWait&#40; &#46;F&#46; &#41; oRpt&#58;oSalida&#58;oXLS&#58;SetDisplay&#40;,,,,&#46;F&#46;,&#46;F&#46;,&#46;T&#46;,&#46;T&#46;,&#46;F&#46;&#41; oRpt&#58;oSalida&#58;oXLS&#58;End&#40;&#41; ENDCASE ENDIF RETURN&#40; NIL &#41; [/code:jryovqny] La funcion wPlsWait() es un tipo de WaitOn() WaitOff() que muestra un mensaje por pantalla. Funciona de maravillas.... PERO: me envia la "cabecera" del reporte a la impresora (OJO: Solo la cabecera, nada mas...), y eso no lo quiero !!! Quisiera que no imprimiera nada. No se como decirle a la clase que NO IMPRIMA, que solo se enviará a un Libro de Excel ! Pienzo que podría enviarlo a una impresora "nula", pero no se como hacerlo..... ¿Alguien le a metido mano a esto? ¿o soy el único "loco" en la comunidad? Gracias anticipadas...
oReport:Say() en REPEXCEL [II]
Julio, Podrías probar a hacer: REPORT oReport ... PREVIEW De esa forma solo tendrías que cerrar la ventana del preview. Tal vez te sirva.
oReport:Say() en REPEXCEL [II]
Hola Antonio, Pues la verdad que ya lo había probado, y así sí funciona... Lo único es que no me parece muy "elegante" que digamos. Solo quiero saber si pueda haber otra opción... Abrazos,
oReport:SetCopies No funciona
Hola Fivewinners... eso.. oReport:SetCopies() no funciona, y PrnSetCopies() llamado desde dentro del report oRpt...activate tampoco. Alguna idea o workaround. Saludos Desde Chile Adolfo
oReport:SetCopies No funciona
Mira se ayuda: [url:bcrujdkf]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=21761&p=115815&hilit=setcopies#p115815[/url:bcrujdkf] Saludos.
oReport:ToExcel() somente cabeçalho
Bom dia Estou utilizando o método ToExcel, mas quando visualizo a planilha somenete é feito o cabeçalho, os dados não são colocados na planilha. O relatório está certo, apresenta todos os dados de forma correta. Att João Bosco
oReport:ToExcel() somente cabeçalho
Hola, prueba con: oReport:bInit := { || dbGoTop() } Saludos.
oReport:ToExcel() somente cabeçalho
Francisco Obrigado funcionou perfeitamente. Att João Bosco
oRs:EditBaseRecord
Hi Mr. Rao, I have a similiar function in my program using DBF files. I have searched the "EditBaseRecord" function but I can't found in source of fwh directory. I think it is one of the hidden functions. Can you please share part of how to call "EditBaseRecord" with parameters. in order to change my function at present? Thanks.
oRs:EditBaseRecord
May be this can help you: oRs:EditBaseRecord(NIL,.T.,{|oRec| MyFunc(oRec)}, oLbx)
oRs:EditBaseRecord
[quote="vilian":17bgute0]May be this can help you: oRs:EditBaseRecord(NIL,.T.,{|oRec| MyFunc(oRec)}, oLbx)[/quote:17bgute0] How Can I create oRec? (I don't use editbaserecord, I want to convert my function) Is it oRs? Thanks,
oRs:EditBaseRecord
Hi, oRs is a rowset object, that you can create doing something like this: oRs := oBD:Query("SELECT * FROM customers") I'm using editbaserecord, oRec AND oRs with FWHMYSQL. [b:3ldqwae2]oBD [/b:3ldqwae2]IS a conecction WIth a MySql Server.
oRs:EditBaseRecord
Hi Villian, I have finally modified my code to use EditBaseRecord method. It works good. I can add, update or delete records. Thank you very much.
oRs:EditBaseRecord oRec:Save() problem
I have explained the problem step by step as below: Please, run the mariainv example of Mr. Rao 1. Open items and position the cursor on an item 2. Press the edit button and open the edit dialog 3. Now, when we are waiting here, another user has deleted the record that we are editing. 4. Edit the record. (Modify the name of the item) 5. Press Save button 6. Of course nothing happens. 7. Press the Save button again 8. oRec:Save() modified another record, since the pointer positioned on that record. How can I overcome this problem. oRec:Save() returns false but there is no any sql error. What can we do?
oRs:EditBaseRecord oRec:Save() problem
We are looking into this.
oRs:EditBaseRecord oRec:Save() problem
Can you please make this modification in \fwh\source\classes\datarow.prg and test? Please locate the following lines towards the end of method SaveOBJ() [code=fw:18x0gd8k]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !lSaved<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span>, <span style="color: #000000;">&#123;</span> |a,i| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := aSave<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:18x0gd8k] Please comment out this line like this: [code=fw:18x0gd8k]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !lSaved<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; AEval( ::aData, { |a,i| a[ 2 ] := aSave[ i ] } )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:18x0gd8k] Can you please test after this change and provide your comments?
oRs:EditBaseRecord oRec:Save() problem
Dear Rao, The problem described in the link below came back <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33908&start=15#p201244">viewtopic.php?f=3&t=33908&start=15#p201244</a><!-- l -->
oRs:EditBaseRecord oRec:Save() problem
Thanks for the feedback. Now, please change the entire method SaveOBJ() in datarow.prg with this new method. [code=fw:9my0dcw7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SaveOBJ<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDataRow<br /><br />   <span style="color: #00C800;">local</span> lSaved      := .t.<br />   <span style="color: #00C800;">local</span> lNetChanged := .f.<br />   <span style="color: #00C800;">local</span> aSaveData   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lReadOnly</span> .or. ! ::<span style="color: #000000;">Modified</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> .f.<br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> __ObjHasMethod<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">uSource</span>, <span style="color: #ff0000;">"ROWPUT"</span> <span style="color: #000000;">&#41;</span><br /><br />      aSaveData   := AClone<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span> <span style="color: #000000;">&#41;</span><br /><br />      ::<span style="color: #000000;">RecNo</span>     := ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">RowPut</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span>, ::<span style="color: #000000;">RecNo</span>, .f., <span style="color: #00C800;">Self</span>, @lSaved <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> lSaved <span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">'L'</span><br />         lSaved   := .t.<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> lSaved<br />         ::<span style="color: #000000;">aOrg</span>      := AClone<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span><br />         AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span>, <span style="color: #000000;">&#123;</span> |a,i| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> == ::<span style="color: #000000;">aOrg</span><span style="color: #000000;">&#91;</span> i, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #00C800;">nil</span>, lNetChanged := .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         ::<span style="color: #000000;">aOrg</span>      := AClone<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">if</span> !lNetChanged<br />            AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span>, <span style="color: #000000;">&#123;</span> |a,i| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := aSaveData<span style="color: #000000;">&#91;</span> i, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> lSaved<br /> </div>[/code:9my0dcw7] Can you please provide your comments after making this change?
oRs:EditBaseRecord oRec:Save() problem
The record pointer goes to the first record and changes all of the fields of oRec with the values of first record and I loose everything that I have typed.
oRs:EditBaseRecord oRec:Save() problem
This is what is happening in my tests: If the save fails due to some reason like duplicated unique field, the record pointer does not change and edited values are not lost. They are retained. If the save fails because the record is deleted by another user on the network, then the record pointer is moved to the next record and changes made by the user are lost, as it should be. Can you explain what is happening in your case, step by step?
oRs:EditBaseRecord oRec:Save() problem
Mr. Rao, since the oRec:Save() returns false the execution waits in the edit dialog. In this case there is nothing to do in the edit dialog. Instead of waiting in the edit dialog, may be we have to show an error message that says record has been deleted by another user and go back to browse.
oRs:EditBaseRecord oRec:Save() problem
I have made the following change in the EditItems function. Instead of using oRec:Save() directly, I have add another function ItemSaved() and Ithink the problem solved. I have used the original datarow.prg. Of course some more lines like oRsItems:ReSync(), oBrw:RefreshCurrent() is needed. [code=fw:1a6padyt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> EditItems<span style="color: #000000;">&#40;</span> oRec <span style="color: #000000;">&#41;</span><br /> ...<br />    <span style="color: #B900B9;">// ACTION If( oRec:Save(), oDlg:End(), nil )</span><br />   <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ItemSaved<span style="color: #000000;">&#40;</span>oRec<span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />...<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ItemSaved<span style="color: #000000;">&#40;</span>oRec<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> lNotSavedButNoError := .F.<br />   <span style="color: #00C800;">local</span> lSaved              := .F.<br /><br />   BEGIN SEQUENCE<br />      oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BEGIN"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> !oRec:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">IF</span> oCn:<span style="color: #000000;">nError</span> = <span style="color: #000000;">0</span>  <span style="color: #B900B9;">//There is no Sql error. May be the item deleted by another user ???</span><br />            lNotSavedButNoError := .T.<br />         <span style="color: #00C800;">ENDIF</span><br />         <span style="color: #00C800;">BREAK</span><br />      <span style="color: #00C800;">ENDIF</span><br />      oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"COMMIT"</span> <span style="color: #000000;">&#41;</span><br />      lSaved := .T.<br />   RECOVER<br />      oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ROLLBACK"</span> <span style="color: #000000;">&#41;</span><br />   END SEQUENCE<br /><br />   lSaved := lSaved .OR. lNotSavedButNoError<br /><br /><span style="color: #00C800;">return</span> lSaved</div>[/code:1a6padyt]
oRs:Find
Ciao a tutti, ho provato questo codice per una ricerca in un file MDB: cFind:="K" oRs:MoveFirst() Reg:=oRs:Find("Campo1='"+cFind+"'") msginfo(Reg) oRs:Absoluteposition:=Reg il valore restituito in Reg è uguale a nil dove sbaglio? Grazie
oRs:Find
Sample code : [code=fw:1srd9kr1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRs:<span style="color: #000000;">Find</span><span style="color: #000000;">&#40;</span> cSeekExpr, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> oRs:<span style="color: #000000;">eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   lFound   := .F.<br />   oRs:<span style="color: #000000;">MoveLast</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />   lFound   := .T.<br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1srd9kr1] oRs:Find always returns nil. If find is successful, it goes to the first row found. If not it goes to eof. Syntax: objRecordset:Find( criteria, skiprows, direction, start )
oRs:Find
Lisa: Try this way Reg:=oRs:Find("Campo1= " + "'" + cFind + "'") Regards
oRs:Find
Reg restituisce sempre NIL
oRs:Find
if !oRs:eof() la ricerca ha esito positivo... nTessera:="0100141411283" oRs:MoveFirst() oRs:Find( "CODTES='"+nTessera+"'", 0, 1, 1) if !oRs:eof() msginfo(oRs:Fields("CodTes"):Value) endif Grazie del suggerimento
oRs:Find
oRs:Sort :="CodTes" da errore Help me
oRs:Find
Lisa: Please review my spanish blog. <!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m --> All about ADO & MySql. Regards
oRs:Find
> oRs:Sort :="CodTes" > This is correct. Please check your spellings and make sure the field name exists in the recordset. what error are you getting ?
oRt:Say() en REP-EXCEL
Hola a todos, He tenido una experiencia con REP-EXCEL que comento, a ver si alguien paso por la misma y ha solucionado esto: La clase es FANTASTICA... me soluciona uno de los grandes dolores de cabeza que es la generacion de informes en Excel, que muchos clientes ya me solicitaban, y aunque podia generarlos en archivos .TXT para luego "leerlos" en MS-Excel, con esta clase se va directo al grano. El problema viene casi para mi solo (creo yo), pues muchos de los reportes de nuestros sistemas, a pesar de que sí utilizan la clase tReport, no definimos el contenido de las columnas al momento de crearlas, sino que las dejamos en blanco (""), para llamar una funcion en ON INIT del ACTIVATE REPORT, y es esa funcion la que con SAY() va colocando (imprimiendo?) el contenido de cada columna. Lo hacemos así pues tenemos así mas control sobre lo que precisamente queremos que realice el reporte. Lo anterior da como problema que el reporte en excel solo genera los títulos de la pagina y los de las columnas... Y MAS NADA! Claro que sí, pues el contenido de cada columna fue declarado en blanco (""). Cuando se trata de reportes simples, donde se declara cual campo o funcion va en la columna, la conversion a Excel funciona de maravilla. ¿Es que no hay solución, o yo estoy haciendo algo mal? Gracias por adelantado a los Gurus que crearon/modificaron esta clase, pero necesito ayuda !
oSay background
Is such a background possible with pure FIVEWIN code. [img:gnr5wfjd]http&#58;//www&#46;atzwanger&#46;com/fw/saystyle&#46;jpg[/img:gnr5wfjd]
oSay background
Yes, using a brush
oSay background
Thank you. Excuse my ignorance. But if I tried with brush I always have full color. This seems to be gradient. Best regards, Otto
oSay background
You have to create a brush from a bitmap, and the bitmap has the painted gradient <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> DEFINE BRUSH oBrush RESOURCE <cBmpResName> or DEFINE BRUSH oBrush FILENAME <cBmpFileName>
oSay background
Is this the right way to make such a outlook: Paint a rectangle with FillRect(oWnd:hDc,aRect1,oBrush:hBrush) And then paint the text with oWnd:Say oWnd:say( nRow, nCol, text ,"W",::nClrBack,oFont,.T.,.t.) Thanks in advance Otto
oSay background
Otto, There are two ways to paint a text: 1. Use the oWnd:Say(), as you have done 2. Use a SAY control: @ ..., ... SAY ... The advantage of using the 2) is that you don't have to repaint it. The control automatically paints itself. With 1) you have to paint the text everytime the window is repainted My advice is to use a SAY control that uses a brush with a gradient
oSay background
>My advice is to use a SAY control that uses a brush with a gradient I don't know how to do this? Would you be so kind to show some code. Thanks in advance Otto
oSay background
Otto, Its a simple solution, though we could improve it: <!-- m --><a class="postlink" href="http://www.hotshare.net/file/24901-201766470d.html">http://www.hotshare.net/file/24901-201766470d.html</a><!-- m --> [url=http&#58;//imageshack&#46;us:zztw1k74][img:zztw1k74]http&#58;//img89&#46;imageshack&#46;us/img89/6757/ottoxy2&#46;png[/img:zztw1k74][/url:zztw1k74]
oSay:SetText no muestra todo el contenido.
En el ejemplo tutor12 los objetos SAY salen con muy pocos carracteres, en el codigo siguiente en la linea say de mensajes solo me sale "Accid". Es normal (por ser limitacion de wince) o se modifica en algun sitio ? [code:2vzbz9vq] @ 10, 90 BTNBMP FILE CurDir&#40;&#41; + "\cars&#46;bmp" ; SIZE 60, 60 ; ACTION oSay&#58;SetText&#40; "Accidentes de Circulación" &#41; [/code:2vzbz9vq] Saludos.
oSay:SetText no muestra todo el contenido.
Hola, Declara un tamaño del SAY @ 12, 17 SAY oSay PROMPT "Accidentes de Trafico" SIZE 200, 20 Siau. C.
oSay:SetText no muestra todo el contenido.
Gracies Carles... En que estaria yo pensando..... Saludos.
oSay:bKeyDown fiveres
Hello Antonio, Does say class support keydown method. fiveres sample Can you please show how to move the controls with the arrow keys. Thank in adance Otto
oSefl vs. ::
What is the difference between oSefl and :: ? Can someone please explain why oSelf is working and :: fails? [code=fw:3erq2ogz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">local</span> oSelf             := <span style="color: #00C800;">SELF</span><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oPanArt_WG</span>;<br />           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">80</span> ;<br />               <span style="color: #0000ff;">FONT</span> oFnt ; <br />            <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oSelf:<span style="color: #000000;">oPanArt_WG</span>:<span style="color: #000000;">hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> NOBORDER TRANSPARENT</div>[/code:3erq2ogz] is working and [code=fw:3erq2ogz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oPanArt_WG</span>:<span style="color: #000000;">hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> NOBORDER TRANSPARENT</div>[/code:3erq2ogz] fails. Thanks in advance Otto
oSefl vs. ::
Otto, When we use: ... BTNBMP ... ACTION ... ACTION ... gets preprocessed into: [{|Self|<uAction>}] But that "Self" will be provided to the codeblock as a parameter and it is not :: So when we do local oSelf := Self and then we use oSelf from the codeblock, we are using oSelf and not the provided parameter self Little confusing but its simple <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oServer:setRequestHeader
Dear, good afternoon! I need an aid in the following situation: When sending the oServer:setRequestHeader("Content-Type", "text/plain; charset=UTF-8" ) command to the server, it does not recognize some accents as ã and õ. Is there a command to be given before sending? I thank you for your help. Att., Oliveiros Junior
oSheet:Columns() range question
Hi, Now I'm using [code=fw:3no2msa5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#91;</span>code<span style="color: #000000;">&#93;</span>oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A:ZZ"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">AutoFit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>/code<span style="color: #000000;">&#93;</span></div>[/code:3no2msa5] to set the autofit. Is it possible to give instead of "A:ZZ" the range with numbers? Now I have to calculate the range to convert it to characters.
oSheet:Columns() range question
[quote="Marc Vanzegbroeck":apl8xuh5]Hi, Now I'm using [code=fw:apl8xuh5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#91;</span>code<span style="color: #000000;">&#93;</span>oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A:ZZ"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">AutoFit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>/code<span style="color: #000000;">&#93;</span></div>[/code:apl8xuh5] to set the autofit. Is it possible to give instead of "A:ZZ" the range with numbers? Now I have to calculate the range to convert it to characters.[/quote:apl8xuh5] you can calculate it this Way [code=fw:apl8xuh5]<div class="fw" id="{CB}" style="font-family: monospace;">numRows := oWorkBook:<span style="color: #000000;">workSheets</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> :<span style="color: #000000;">usedRange</span>:<span style="color: #000000;">Rows</span>:<span style="color: #0000ff;">Count</span><br />numColumns := oWorkBook:<span style="color: #000000;">workSheets</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> :<span style="color: #000000;">usedRange</span>:<span style="color: #000000;">Columns</span>:<span style="color: #0000ff;">Count</span></div>[/code:apl8xuh5] but you don't need it when use this [code=fw:apl8xuh5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Speed things up by creating an object containing the cells</span><br />oSheet := oExcel:<span style="color: #000000;">Worksheets</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> :<span style="color: #000000;">cells</span><br /><br /><span style="color: #B900B9;">// fit all Column to optimal size</span><br />oSheet:<span style="color: #000000;">EntireColumn</span>:<span style="color: #000000;">AutoFit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:apl8xuh5]
oSheet:Columns() range question
Jimmy, Thank you for your answer. Indeed, I can use oSheet:EntireColumn:AutoFit() for the complete excel, but what If I want to do it for column 1 to 30? Another example is if I want to set the cell-format for only column 1 to 30 [code=fw:2s6z30yi]<div class="fw" id="{CB}" style="font-family: monospace;">oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #ff0000;">"A:ZZ"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NumberFormat"</span>, &nbsp;<span style="color: #ff0000;">'@'</span> &nbsp; &nbsp; <span style="color: #000000;">&#41;</span></div>[/code:2s6z30yi]
oSheet:Columns() range question
Ok, I found a solution for it with the range() object. Thanks [quote="Marc Vanzegbroeck":2pvu1iqu]Jimmy, Thank you for your answer. Indeed, I can use oSheet:EntireColumn:AutoFit() for the complete excel, but what If I want to do it for column 1 to 30? Another example is if I want to set the cell-format for only column 1 to 30 [code=fw:2pvu1iqu]<div class="fw" id="{CB}" style="font-family: monospace;">oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span>  <span style="color: #ff0000;">"A:ZZ"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NumberFormat"</span>,  <span style="color: #ff0000;">'@'</span>     <span style="color: #000000;">&#41;</span></div>[/code:2pvu1iqu][/quote:2pvu1iqu]
oTabs:nHeight
Is there a way to cange the Height of a Tab control????
oTabs:nHeight
Hello Bayron, a placed Tab is moved and resized. [img:329gv1g7]http&#58;//www&#46;pflegeplus&#46;com/pictures/tabmove&#46;jpg[/img:329gv1g7] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
oTabs:nHeight
Cool Uwe, Thanks....
oTabs:nHeight
Uwe, even that approach did not work on FWH 10.2 [url:264ig0gl]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=20903#p110993[/url:264ig0gl]
oTimer:Deactivate()
Amigos, Tengo esto: [code:2lq0m7yp] oDlg&#58;= oDlgEnlace&#40; @oBrw, oTextos, oBtns, oBmp &#41; //----------&#40; Acción del botón &#41;---------- oBtns&#91;1&#93;&#58; bAction&#58;=&#123;|| oTimer&#58;deactivate&#40;&#41; &#125; oBtns&#91;2&#93;&#58; bAction&#58;=&#123;|| oTimer&#58;activate&#40;&#41; &#125; ACTIVATE DIALOG oDlg CENTERED ON init &#40;; BuildTimer&#40; @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg &#41;,; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; &#41; [/code:2lq0m7yp] Pero cuando se ejecuta y presiono el oBtns[1] o rl oBtns[2] me dice: [quote:2lq0m7yp] Error description: Error BASE/1004 Class: 'LOGICAL' has no exported method: ACTIVATE[/quote:2lq0m7yp] Por qué? solución? Gracias
oTimer:Deactivate()
Goos, Parece ser que oTimer no está iniciado, al no iniciarse no hay metodo activate() o deactivate(); hay que checar si se activa el timer o no. Will Morales [quote="goosfancito":2j926esf]Amigos, Tengo esto: [code:2j926esf] oDlg&#58;= oDlgEnlace&#40; @oBrw, oTextos, oBtns, oBmp &#41; //----------&#40; Acción del botón &#41;---------- oBtns&#91;1&#93;&#58; bAction&#58;=&#123;|| oTimer&#58;deactivate&#40;&#41; &#125; oBtns&#91;2&#93;&#58; bAction&#58;=&#123;|| oTimer&#58;activate&#40;&#41; &#125; ACTIVATE DIALOG oDlg CENTERED ON init &#40;; BuildTimer&#40; @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg &#41;,; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; &#41; [/code:2j926esf] Pero cuando se ejecuta y presiono el oBtns[1] o rl oBtns[2] me dice: [quote:2j926esf] Error description: Error BASE/1004 Class: 'LOGICAL' has no exported method: ACTIVATE[/quote:2j926esf] Por qué? solución? Gracias[/quote:2j926esf]
oTimer:Deactivate()
Amigo, si, el timer esta en funcionamiento, lo activo desde aca: [code:2ttn8gqo] ACTIVATE DIALOG oDlg CENTERED ON init &#40;; BuildTimer&#40; @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg &#41;,; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; &#41;[/code:2ttn8gqo]
oTimer:Deactivate()
[quote="goosfancito":rbxxk147]Amigo, si, el timer esta en funcionamiento, lo activo desde aca: [code:rbxxk147] ACTIVATE DIALOG oDlg CENTERED ON init &#40;; BuildTimer&#40; @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg &#41;,; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; &#41;[/code:rbxxk147][/quote:rbxxk147] Prueba con: BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, @oTimer, oDlg ) Saludos Carlos G.
oTimer:Deactivate()
[quote="FiveWiDi":3ixfnzuk][quote="goosfancito":3ixfnzuk]Amigo, si, el timer esta en funcionamiento, lo activo desde aca: [code:3ixfnzuk] ACTIVATE DIALOG oDlg CENTERED ON init &#40;; BuildTimer&#40; @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg &#41;,; oBrw&#58; SetFocus&#40;&#41;,; oBrw&#58; ResetBarPos&#40;&#41;,; oBrw&#58; UpStable&#40;&#41;,; oBrw&#58; Reset&#40;&#41;,; oBrw&#58; Refresh&#40;&#41;,; oBrw&#58; gobottom&#40;&#41;,; &#41;[/code:3ixfnzuk][/quote:3ixfnzuk] Prueba con: BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, @oTimer, oDlg ) Saludos Carlos G.[/quote:3ixfnzuk] Andubo, Gracias.
oToolbar:nWidth no me funciona en folders
Amigos: Alguna idea? Cuando pongo oToolbar:nWidth = 300 en un folder no respeta el tamaño. Estoy tratando de poner una toolbar en una pestaña del folder. Saludos y gracias. Ruben Fernandez.
oToolbar:nWidth no me funciona en folders
Ruben, FWH por defecto asigna el dato ::oTop del contenedor igual a la toolbar, por lo que esta ocupará todo el ancho del contenedor. Prueba a hacer oWnd:oTop := nil y así no redimensionará la toolbar automaticamente.
oToolbar:nWidth no me funciona en folders
Ruben, Tuve la misma necesidad que tu, tengo un folder con varias pestañas y cada pestaña tiene su propia toolbar ya que los botones son diferenets opciones, pero no he logrado que la toolbar se ajuste al tamaño del folder, esta se sale un poco y se ve mal, como le hiciste? [url=http&#58;//imageshack&#46;us:138azor4][img=http://img67.imageshack.us/img67/9148/barfldyd8.jpg][/url:138azor4] <!-- m --><a class="postlink" href="http://img67.imageshack.us/my.php?image=barfldyd8.jpg">http://img67.imageshack.us/my.php?image=barfldyd8.jpg</a><!-- m --> salu2 paco
oToolbar:nWidth no me funciona en folders
Paco, oToolBar:oWnd:oTop = nil oToolBar:nWidth -= ...
oToolbar:nWidth no me funciona en folders
Despues de definir la Toolbar y todos sus botones oFld:nOption:Resize()
oToolbar:nWidth no me funciona en folders
Gracias por su ayuda, pero fijate Antonio que no he podido acomodarlo, tengo un dialogo desde recurso con el folder y en la parte del activate on init uso una funcion para crear la toolbar, que estoy haciendo mal? pongo parte del codigo. ACTIVATE DIALOG oDlg CENTERED VALID lEnd ; ON INIT ( crea_barra(oDlg,oFld,oImageList,oReBar,oToolBar),; oToolBar[1]:oWnd:oTop:=nil, oToolBar[1]:nWidth:=100 ) STAT FUNC crea_barra(oDlg,oFld,oImageList,oReBar,oToolBar) DEFINE REBAR oReBar[1] OF oFld:aDialogs[1] DEFINE TOOLBAR oToolBar[1] OF oReBar[1] SIZE 26, 24 ; IMAGELIST oImageList[1] BALLOON DEFINE TBBUTTON OF oToolBar[1] ; TOOLTIP "Nueva partida" DEFINE TBBUTTON OF oToolBar[1] ; TOOLTIP "Elimina partida" DEFINE TBSEPARATOR OF oToolBar[1] DEFINE TBBUTTON OF oToolBar[1] ; TOOLTIP "Imprime relación" oReBar[1]:InsertBand( oToolBar[1] ) RETURN NIL ya probe metiendo tambien dentro de la funcion la opcion del nil y del nWidth y tampoco. Salu2 Paco
oToolbar:nWidth no me funciona en folders
Paco: No lo tengo solucionado. Lamentablemente saque la toolbar y puse botones Saludos Ruben Fernandez.
oToolbar:nWidth no me funciona en folders
Paco, Cambiale el ancho a la rebar: oRebar:nWidth := ...
oToolbar:nWidth no me funciona en folders
Antonio y Paco: Funciono perfecto. Además se le puede cambiar el color oRebar:SetColor(CLR_WHITE) // por ejemplo Gracias Maestro. Ruben Fernandez.
oToolbar:nWidth no me funciona en folders
Gracias a ambos, funciono ok., una pregunta mas antonio, como hago para en la toolbar posicionar un boton hasta la parte derecha de la barra?, ya que quedaria un espacio grande entre el penultimo y utlimo boton, y la clase los pone seguidos.. salu2 paco
oToolbar:nWidth no me funciona en folders
Paco, No me suena que el control ToolBar permita hacer eso. Habría que buscar en google...
oToolbar:nWidth no me funciona en folders
Bien, gracias Antonio Paco
oTop oLeft oBottom oRight oClient para redimensionar ??
HolaMe podrian orientar para saber como se usan los oTop, oLeft, oBottom, oRight , oClient para redimensionar automaticamente lo que se tenga dentro de una windowstengo el problema, donde usaran la aplicacion que estoy haciendo tienen monitores desde 14 pulgadas en adelante y en esos monitores se pierde el contenido. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> tengo dos xBrowser y unos folders dentro del windows nesesito que se redimensionen si minimisan el tamaño de la windows los xbrowse y el folder no estan en recursos es puro codigoalgun ejemplo que me puedan dar <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> muchos saluditos a todos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Aida
oTop oLeft oBottom oRight oClient para redimensionar ??
Aida, creo el problema no es de oTop y demas cosas.. te recomiendo trabajes con una resolucion minima para diseño de tu sistemas, normalmente uso 1024 x 768 pixel, asi puedes adaptar tus sistema a todo tipo d monitor. es solo una idea...que estes bien..saludos.... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
oTop oLeft oBottom oRight oClient para redimensionar ??
Tengo que rehacer todo otra vez?? <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
oTop oLeft oBottom oRight oClient para redimensionar ??
[quote="AIDA":lly2sn2g]Tengo que rehacer todo otra vez?? <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->[/quote:lly2sn2g]No aida, solo cuando programes coloca la resolucion de tu monitor en 1024x768 para que tus DLG y FLD veas como se adaptaran a la ventana, las WND no tienes problema ya que al MAXIMIZARLAS se adaptan a cualquier tamaño, ojo es solo una idea, lo mas seguro algun otro tendra una mejor solucion, si trabajaras con recurso solo adaptarias el tamaño del recurso y ya.saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
oTop oLeft oBottom oRight oClient para redimensionar ??
Hice lo que dijiste y ahora en un monitor de 17 pulgadas todo queda más chico y un espacio vacío dentro de la windows cuando está llenando el monitor, ahora el problema es al revés <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> SaludosAida
oTop oLeft oBottom oRight oClient para redimensionar ??
Aida,Puedes poner una imagen de tu pantalla aqui ? graciasUsa <!-- w --><a class="postlink" href="http://www.imageshack.us">www.imageshack.us</a><!-- w -->
oTop oLeft oBottom oRight oClient para redimensionar ??
Hola Antonio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> aqui esta un ejemplo en la primera imagen es como se ve en un monitor de 17 pulgadas[img:247j9pc2]http&#58;//img243&#46;imageshack&#46;us/img243/6668/monitor17aj9&#46;jpg[/img:247j9pc2]en la segunda imagen es como se ve en un monitor de 14 pulgadas[img:247j9pc2]http&#58;//img227&#46;imageshack&#46;us/img227/6563/monitor14wl6&#46;jpg[/img:247j9pc2]en la tercera imagen lo modifique como me dijeron pero tampoco ajusta al tamaño de la windows[img:247j9pc2]http&#58;//img146&#46;imageshack&#46;us/img146/2056/monitor17aq4&#46;jpg[/img:247j9pc2]lo que nesecito es que se ajuste (redimensione) todo si minimiso la windows o la maximiso ya busque ejemplos y no encontre nada <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Te mando muchos Saludosy que estes muy bien <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> AidaPD. encontre el ejemplo testspl5.prg creo que es lo que nesecito lo checare <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
oTop oLeft oBottom oRight oClient para redimensionar ??
use de ejemplo testspl5.prgya me funciono ajustar los SPLITTER pero cuando es con el xbrowse me tira un error , que me faltara?SaludosAida[code:1u2omx9f] Error description&#58; Error BASE/1004 Message not found&#58; TMDIFRAME&#58;ADJCLIENT Stack Calls =========== Called from&#58; source\rtl\tobject&#46;prg => TMDIFRAME&#58;ERROR&#40;172&#41; Called from&#58; source\rtl\tobject&#46;prg => TMDIFRAME&#58;MSGNOTFOUND&#40;205&#41; Called from&#58; source\rtl\tobject&#46;prg => TMDIFRAME&#58;ADJCLIENT&#40;0&#41; Called from&#58; &#46;\source\classes\WINDOW&#46;PRG => TXBROWSE&#58;RESIZE&#40;0&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; &#46;\source\classes\CONTROL&#46;PRG => TXBROWSE&#58;HANDLEEVENT&#40;0&#41; Called from&#58; &#46;\source\classes\WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; => MOVEWINDOW&#40;0&#41; Called from&#58; &#46;\source\classes\WINDOW&#46;PRG => TWINDOW&#58;MOVE&#40;0&#41; Called from&#58; &#46;\source\classes\CONTROL&#46;PRG => TXBROWSE&#58;MOVE&#40;0&#41; Called from&#58; &#46;\source\classes\SPLITTER&#46;PRG => TSPLITTER&#58;ADJUSTCTROLS&#40;0&#41; Called from&#58; &#46;\source\classes\SPLITTER&#46;PRG => TSPLITTER&#58;LBUTTONUP&#40;0&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; &#46;\source\classes\CONTROL&#46;PRG => TCONTROL&#58;HANDLEEVENT&#40;0&#41; Called from&#58; &#46;\source\classes\SPLITTER&#46;PRG => TSPLITTER&#58;HANDLEEVENT&#40;0&#41; Called from&#58; &#46;\source\classes\WINDOW&#46;PRG => _FWH&#40;0&#41; Called from&#58; C&#58;\FWH\BITACORA\PRG\TEST2003&#46;PRG => NOGPF&#40;0&#41; Called from&#58; C&#58;\FWH\BITACORA\PRG\TEST2003&#46;PRG => WINRUN&#40;6564&#41; Called from&#58; &#46;\source\classes\WINDOW&#46;PRG => TMDIFRAME&#58;ACTIVATE&#40;0&#41; Called from&#58; C&#58;\FWH\BITACORA\PRG\TEST2003&#46;PRG => MAIN&#40;1137&#41;[/code:1u2omx9f]
oTop oLeft oBottom oRight oClient para redimensionar ??
Si aún no has resuelto el problema, te comento como lo hago:1) Con recursos, aplicando al ACTIVATE la función AUTRESIZ de Fivewidi, a la que he hecho algunas modificaciones.2) Con código, multiplicando los valores de los nCol, nFila, nAncho y nAlto por los siguientes coeficientes: nRancho := GetSysMetrics(0)/800 nRalto := GetSysMetrics(1)/600800/600 hace referencia a la resolución de pantalla del ordenador donde has programado la aplicación. Si fuera diferete, habria que cambiar estos parámetros.
oTop oLeft oBottom oRight oClient para redimensionar ??
Hola Manuel <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Gracias por tu nota pero que es el Fivewidi <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> SaludosAida
oTop oLeft oBottom oRight oClient para redimensionar ??
[quote="AIDA":3c7rushl]que es el Fivewidi[/quote:3c7rushl]Fivewidi es un colega que publicó la funcion AUTRESIZE en este foro al que de nuevo le doy las gracias por la misma. Si la buscas en el foro, la encontrarás. En base a dicha función, he creado la función Auto800() que es la que utilizo con éxito://////////////////////////////////////////////////////////////////////FUNCTION Auto800 ( oWnd, lRepaint, lFolder )Local nOriWidth := 800, nOriHeight := 600, nWidth := 0, nHeight := 0, ; nContador, nRancho, nRaltoDEFAULT lRepaint := .T., lFolder := .t.ScrResolution( @nWidth, @nHeight ) // importanteIf nOriHeight < nHeight nRancho := nWidth / nOriWidth nRalto := nHeight / nOriHeight // solo para Tdialog If lRepaint oWnd:Hide() EndIf If nRalto > 1 If oWnd:ClassName() == "TLISTBOX" .OR. oWnd:ClassName() == "TCOMBOBOX" oWnd:Move( oWnd:nTop * nRalto , ; (oWnd:nLeft * nRancho), ; (oWnd:nWidth * nRancho), ; oWnd:nHeight , ; .F. ) Else oWnd:Move( oWnd:nTop * nRalto , ; oWnd:nLeft * nRancho, ; oWnd:nWidth * nRancho, ; oWnd:nHeight * nRalto , ; .F. ) EndIf EndIf If oWnd:ClassName() == "xTFOLDER" If ValType( oWnd:aDialogs ) = "A" .AND. lFolder For nContador := 1 To Len( oWnd:aDialogs ) Auto800( oWnd:aDialogs[nContador], .F. ) EndFor EndIf ElseIF oWnd:Classname() == "TWBROWSE" FOR nContador=1 TO LEN (oWnd:aColSizes) oWnd:AcolSizes[nContador] *= nRancho NEXT ElseIF oWnd:Classname() == "TCOMBOBOX" Else If ValType( oWnd:aControls ) = "A" // dialogo For nContador := 1 To Len( oWnd:aControls ) Auto800( oWnd:aControls[nContador], .F. ) EndFor EndIf If oWnd:ClassName() == "TFOLDER" If lFolder For nContador := 1 To Len( oWnd:aDialogs ) Auto800( oWnd:aDialogs[nContador], .F. ) EndFor EndIf EndIf EndIf If lRepaint If( ( "DIALOG" $ oWnd:Classname() ) .and. oWnd:lCentered, WndCenter( oWnd:hWnd ) , Nil ) oWnd:Show() EndIf EndIfReturn Nil//////////////////////////////////Una vez que incluyas esta función en tus fuentes, solo tienes en los diálogos que añadir en el ACTIVATE ON INIT AUTO800(oDlg,.t.)Observa que esta diseñada en base a que la pantalla del programador sea de 800x600. Si tu resolución es mayor, debes cambiar en la función las medidas. Por otra parte recuerda que el anterior mensaje te comente que esta función es válida solo para diálogos desde recursos. Si los diálogos son con código, el cambio es mas laborioso. Tienes que multiplicar los valores de los nCol, nFila, nAncho y nAlto por los siguientes coeficientes: nRancho := GetSysMetrics(0)/800 nRalto := GetSysMetrics(1)/600
oTop oLeft oBottom oRight oClient para redimensionar ??
Hola Manuel <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> por tu ayuda me pondre a leer con cuidado lo que me diste para poder aplicarlo espero que me funcione ya me siento algo frustrada <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Gracias por todoSaludosAida
oTop oLeft oBottom oRight oClient para redimensionar ??
Sr. Manuel,Como fazer para esta função aplicar tambem a GROUP BOX ? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
oTop oLeft oBottom oRight oClient para redimensionar ??
[quote="SGS":2obtafn1]Como fazer para esta função aplicar tambem a GROUP BOX ?[/quote:2obtafn1]La única condición es que hay siempre que REDEFINE el grupo (o cualquier otro objeto) en nuestro código:REDEFINE GROUP oGrupo ID 14 OF oDlg TRANSPARENT..........REDEFINE SAY oSay2 VAR cM[7] ID 9 OF oDlgACTIVATE DIALOG oDlg CENTERED ON INIT ; Auto800( oDlg, .t. )Si es con código:@ 0.1*nRalto,1.5*nRancho GROUP oGrupo TO 6.0*nRalto, 35.1*nRancho OF oDlg TRANSPARENT
oTop oLeft oBottom oRight oClient para redimensionar ??
Sr. Manuel,Funciona perfeitamente com GROUP BOX. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Tentei fazer funcionar com TXBROWSE e TCBROWSE, não obtive exito: <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> ElseIF oWnd:Classname() == "TWBROWSE" .or. oWnd:Classname() == "TXBROWSE" FOR nContador=1 TO LEN (oWnd:aColSizes) oWnd:AcolSizes[nContador] *= nRancho NEXTO Sr. Acha que seria possível com estes dois browses?
oTop oLeft oBottom oRight oClient para redimensionar ??
[quote="SGS":1px1cof9]seria possível com estes dois browses?[/quote:1px1cof9]Me imagino que si. Pero yo opero solo con wBrowse y ese es el objeto que he implementado.No puedo hacer pruebas con xBrowse porque no lo utilizo.Desconozco si Fivewidi, colega del foro, podria ayudarte en algo,
oTop oLeft oBottom oRight oClient para redimensionar ??
muito obrigado Sr. Manuel.
oTop oLeft oBottom oRight oClient para redimensionar ??
NO funciona con xbrowse <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> ahora si toy atorada con eso hise lo que me dijeron de poner mi monitor en 1024 x 768 pixel pero cuando el programa esta en un monitor de 1880 x 1024 el windos lo maximisan y todo lo que esta dentro queda horrible todo chiquito y en partes de la windows en blanco <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> termianre haciendo dos programas, uno para monitores de 14 y otro para monitores de 17 pulgadas <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| --> pero muchas gracias por su ayuda Aida <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
oTop oLeft oBottom oRight oClient para redimensionar ??
Hola Aida , cómo estás?? Por qué no pruebas hacer en vez de dos programas enlazar dos archivos de recuros?? O si no otra alternativa es usar dos archivos DLL de recursos, o las que sean necesarias, y en tu main() del sistema haces lo siguiente: [code:3mkodzxj] #include "FiveWin&#46;ch" Function Main() Local ResH,ResV,oWnd DEFINE WINDOW oWnd Title "Prueba" ResH&#58;=oWnd&#58;nHorzRes() ResV&#58;=oWnd&#58;nVertRes() IF ResH=800 &#46;AND&#46; RESV=600 SET RESOURCES TO "R800x600&#46;dll" ENDIF IF ResH=1024 &#46;AND&#46; RESV=768 SET RESOURCES TO "R1024x768&#46;dll" ENDIF ACTIVATE WINDOW oWnd MAXIMIZED Return nil [/code:3mkodzxj] Donde en R800x600.dll tendrás todos los recursos que se adaptan a la resolución 800x600 y en R1024x768.Dll los que se adaptan a la resolución 1024x768. Quizá no sea el mejor método pero es solo algo que se me ocurriria hacer para no hacer dos sistemas. Saludos desde Argentina, Esteban.
oTop oLeft oBottom oRight oClient para redimensionar ??
Hola el problema que tengo no es con los recursos es con el windows principal Gracias de todas maneras <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Aida