topic
stringlengths
1
63
text
stringlengths
1
577k
Actualizar array en combobox
Compañeros del foro, nuevamente solicitando su ayuda. Tengo un combobox en el que tengo una lista de modelos para elegir, el ultimo elemento del array tiene el valor "AGREGAR", obviamente para dar de alta un nuevo modelo, el combobox tiene la clausula "ON CHANGE" que al elegir esta opción muestra una pequeña ventana pidiendo el nuevo modelo, hasta aqui todo perfecto, el problema es que cuando el usuario ha agregado un nuevo modelo necesito que el ultimo elemento del array cambie al valor que el usuario escribio y se actualize en el dialogo que lo llamó, cosa que no hace, es decir que una vez que el usuario escribe un nuevo modelo y da click para aceptar sigo viendo la lista original de elementos en el combobox. Espero haberme explicado correctamente y tambien espero contar con su ayuda. Muchas gracias. [code=fw:oc31ozrp]<div class="fw" id="{CB}" style="font-family: monospace;">   use &dbtmp1<br />   tregse=reccount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   regm1=tregse<span style="color: #000000;">+1</span><br />   declare aModel<span style="color: #000000;">&#91;</span>regm1<span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">for</span> urm=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> tregse<br />      goto urm<br />      aModel<span style="color: #000000;">&#91;</span>urm<span style="color: #000000;">&#93;</span> := model<br />      skip<br />   <span style="color: #00C800;">next</span><br />   aModel<span style="color: #000000;">&#91;</span>regm1<span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"AGREGAR"</span>........<br /><br />   <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDialna <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"DLGNUACT"</span> <span style="color: #0000ff;">of</span> oVentprinc<br />   <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">combobox</span> oCbox1na <span style="color: #0000ff;">var</span> cModel <span style="color: #0000ff;">items</span> aModel <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4</span> <span style="color: #0000ff;">of</span> oDialna <span style="color: #0000ff;">style</span> CBS_DROPDOWN <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span> vernm<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">update</span><br />   <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> odialna.......<br /><br /><span style="color: #00C800;">function</span> vernm<br />   <span style="color: #00C800;">local</span> oDialnmm, oBtn1nm<br />   <span style="color: #00C800;">if</span> cModel=<span style="color: #ff0000;">"AGREGAR"</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">dialog</span> oDialnm <span style="color: #0000ff;">from</span> <span style="color: #000000;">5</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">50</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Adición de modelo"</span> <span style="color: #0000ff;">of</span> odialna<br />      @.<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">Say</span><span style="color: #ff0000;">"Indica el modelo a agregar"</span><br />      @.<span style="color: #000000;">5</span>,<span style="color: #000000;">13</span> <span style="color: #0000ff;">get</span> oGet1nm <span style="color: #0000ff;">var</span> cModel <span style="color: #0000ff;">of</span> oDialnm <span style="color: #0000ff;">picture</span> <span style="color: #ff0000;">"!!!!!!!!!!"</span><br />      @<span style="color: #000000;">1.2</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> oBtn1inm <span style="color: #0000ff;">prompt</span><span style="color: #ff0000;">"&Aceptar"</span> <span style="color: #0000ff;">of</span> oDialnm <span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span>odialnm:<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;">50</span>,<span style="color: #000000;">12</span><br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">dialog</span> oDialnm <span style="color: #0000ff;">center</span><br />      aModel<span style="color: #000000;">&#91;</span>regm1<span style="color: #000000;">&#93;</span> := cModel<br />      oCbox1na:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oDialna:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span>cModel<span style="color: #000000;">&#41;</span><br /><br /><br /><br /> </div>[/code:oc31ozrp]
Actualizar array en combobox
Hola... Luego de agregar, eliminar o modificar un item en el array debes nuevamente cargar el combo. Prueba de esta forma: [code=fw:ghmvoslw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FOR</span> Q=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>aModel<span style="color: #000000;">&#41;</span><br />   oCbox1na:<span style="color: #000000;">Modify</span><span style="color: #000000;">&#40;</span> aModel<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span> , Q <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br />oCbox1na:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:ghmvoslw] Espero te sirva. Saludos, Esteban.
Actualizar array en combobox
Hola, prueba con: [code=fw:g52hcydk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />aModel<span style="color: #000000;">&#91;</span>last<span style="color: #000000;">&#93;</span> := newmodel<br />...<br />oCbox1na:<span style="color: #000000;">SetItems</span><span style="color: #000000;">&#40;</span> aModel <span style="color: #000000;">&#41;</span><br />oCbox1na:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />...<br /> </div>[/code:g52hcydk] saludos Marcelo
Actualizar array en combobox
Muchas gracias por su valiosa ayuda. Lo voy a probar.
Actualizar contenido de ComboBox
Buenos días compañeros, tengo dos ComboBox, uno de sección, y otro de curso. La idea es que primero el usuario seleccione la sección, y que el ComboBox de curso se actualice con los cursos que corresponden a la sección selecionada. Metí un On Change en el ComboBox de sección, donde llamo a una función que construye el array que desplegará los items en el ComboBox de curso. A esta función le paso como parámetro la variable del ComboBox de curso, y en esta función la actualizo con un Refresh, pero el ComboBox no se actualiza. Gracias de antemano.
Actualizar contenido de ComboBox
Hola, en lugar de hacer el refres, prueba a utilizar el método con el array que has modificado en el on change del anterior. [code=fw:3p2chhj4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> SetItems<span style="color: #000000;">&#40;</span> aItems, lChanged <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3p2chhj4]
Actualizar contenido de ComboBox
Mil gracias Cristobal, me sirvió. Saludos!
Actualizar controles.
Hola foro. Tengo una aplicación tipo MDI. Una de las ventanas (child) es un cliente telnet, y dependiendo de los datos recibidos en esta ventana, tengo que dar de alta un registro, y actualizar un browse en otra ventana. Ahora lo hago recorriendo el array de la ventana principal oWnd:oClient:aWnd, para detectar si la ventana a actualizar esta abierta, y luego recorro el array de controles de la ventana, y detecto el control a acutalizar con ClassName(). Aunque esto funciona bien, la pregunta es, existe alguna otra forma más directa para poder hacerlo.
Actualizar controles.
Biel, Es correcto como lo haces. Podría simplificarse si usas una variable donde tienes la ventana del terminal e igual para los controles a actualizar, así no tienes que buscarlos
Actualizar datos en MySql con TDolphin
Amigos Necesito actualizar los datos de una tabla de 1300 registros y mucho tarda, antes lo hacia con REPLACE con DBF y es rápido Ahora lo hago asi: [code=fw:3vg7iqaq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; <br />&nbsp;oDATA:=oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM DATPER ORDER BY CODIGO FOR UPDATE"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oDATA:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Vacacion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Obtengo los valores</span><br />&nbsp; &nbsp; &nbsp; nPend:=nTiene-nTomodas<br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">TIENE</span>:=nTiene;oDATA:<span style="color: #000000;">TOMADAS</span>:=nTomadas;oDATA:<span style="color: #000000;">PEND</span>:=nPend<br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oDATA:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp;</div>[/code:3vg7iqaq] He encontrado un ejemplo de Daniel usando UPDATE pero le pone el mismo valor a todos los registros y también tarda, lo hago asi [code=fw:3vg7iqaq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; oDATA:=oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM DATPER ORDER BY CODIGO FOR UPDATE"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oDATA:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Vacacion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Obtengo los valores</span><br />&nbsp; &nbsp; &nbsp; nPend:=nTiene-nTomodas<br />&nbsp; &nbsp; &nbsp; &nbsp;cQry:=<span style="color: #ff0000;">"UPDATE datper SET TIENE = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTiene<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"TOMADAS = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTomadas<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" PEND = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nPend<span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">SqlQuery</span><span style="color: #000000;">&#40;</span> cQry <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">LoadQuery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp;</div>[/code:3vg7iqaq] Quizás hay otra manera de hacer la actualización más rápida. Gracias por la ayuda. Saludos, Adhemar
Actualizar datos en MySql con TDolphin
Acuellar,la forma de usar UPDATE para que no te coloque todos los registros con el mismo valor es usarlo conjuntamente con la condicion WHERE, ya que el UPDATE recorre toda la tabla sino la condicionas, fue mi primera leccion con mysql, cualquier duda estamos a la orden, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Actualizar datos en MySql con TDolphin
Prueba asi:, EL UPDATE se debe condicionar, de otro modo se barre toda la tabla, ahora depende de como este estructurado tu tabla [code=fw:1ks4vmzl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oDATA:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Vacacion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Obtengo los valores</span><br />&nbsp; &nbsp; &nbsp; cCodigo := oData:<span style="color: #000000;">AlgunCodigo</span><br />&nbsp; &nbsp; &nbsp; nPend:=nTiene-nTomodas<br />&nbsp; &nbsp; &nbsp; &nbsp;cQry:=<span style="color: #ff0000;">"UPDATE datper SET TIENE = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTiene<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"TOMADAS = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTomadas<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" PEND = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nPend<span style="color: #000000;">&#41;</span> &nbsp;+ &nbsp;<span style="color: #ff0000;">" WHERE código = '"</span> + cCodigo + <span style="color: #ff0000;">"'"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">SqlQuery</span><span style="color: #000000;">&#40;</span> cQry <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">LoadQuery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp;</div>[/code:1ks4vmzl]
Actualizar datos en MySql con TDolphin
Gracias amigos por las respuestas Con UPDATE lo he logrado agregando [code=fw:3ndpj610]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nRowID:=oDATA:=sql_rowid<br /><span style="color: #ff0000;">" WHERE sql_rowid = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nRowID<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3ndpj610] Pero no hay mucha diferencia en velocidad y se tiene que escribir mucho más código. Saludos, Adhemar
Actualizar datos en MySql con TDolphin
[quote="acuellar":1tr0kx5l]Gracias amigos por las respuestas Con UPDATE lo he logrado agregando [code=fw:1tr0kx5l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nRowID:=oDATA:=sql_rowid<br /><span style="color: #ff0000;">" WHERE sql_rowid = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nRowID<span style="color: #000000;">&#41;</span><br /> </div>[/code:1tr0kx5l] Pero no hay mucha diferencia en velocidad y se tiene que escribir mucho más código. Saludos, Adhemar[/quote:1tr0kx5l] Como dicen por alli, esto es MYSQL, hay que olvidar la mentalidad de DBF y nada es perfecto, pero aun sigo creyendo que es mucho mas rapido y seguro que usar DBF, intenta depurar tu query, que no estes cargando y relacionando tablas innecesariamente, a mi me trabaja el UPDATE/WHERE a buena velocidad...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Actualizar datos en MySql con TDolphin
[code=fw:2osim7kd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oDATA:=oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM DATPER ORDER BY CODIGO FOR UPDATE"</span><span style="color: #000000;">&#41;</span><br />oData:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">BeginTransaction</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">///<----</span><br />  <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oDATA:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      Vacacion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Obtengo los valores</span><br />      nPend:=nTiene-nTomodas<br />       cQry:=<span style="color: #ff0000;">"UPDATE datper SET TIENE = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTiene<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"TOMADAS = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nTomadas<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" PEND = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span>nPend<span style="color: #000000;">&#41;</span> <br />       oDATA:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">SqlQuery</span><span style="color: #000000;">&#40;</span> cQry <span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">// oDATA:LoadQuery() //Creo que no es necesario</span><br />       oDATA:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Enddo</span><br />oData:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">CommitTransaction</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">//<----</span><br /> </div>[/code:2osim7kd] En tu caso hacerlo con un update o directamente sobre oData, no creo que varie mucho, ya que el update afecta unicamente a un registro, y en el fondo eso mismo es lo que va a hacer la clase. Prueba a quitar el loadQuery, y añadir transaccionabilidad si tu base de datos es InnoDB.
Actualizar datos en MySql con TDolphin
[code=fw:26muw0cb]<div class="fw" id="{CB}" style="font-family: monospace;"> oDATA:=oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM DATPER ORDER BY CODIGO FOR UPDATE"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oDATA:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Vacacion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Obtengo los valores // <<=== Muestra que hay aqui.. es otro Query ???</span><br />&nbsp; &nbsp; &nbsp; nPend:=nTiene-nTomodas<br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">TIENE</span>:=nTiene;oDATA:<span style="color: #000000;">TOMADAS</span>:=nTomadas;oDATA:<span style="color: #000000;">PEND</span>:=nPend<br />&nbsp; &nbsp; &nbsp; &nbsp;oDATA:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oDATA:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Enddo</span></div>[/code:26muw0cb]
Actualizar datos en MySql con TDolphin
Gracias distinguidos Con la recomendación de Biel funciona bien rápido. Gracias una vez más. Saludos, Adhemar
Actualizar el Ejecutable automáticamente
Hola a todos. Siguiendo algunos consejos en el foro de que es mejor tener el ejecutable el las terminales, y con el aporte de varios. les envio como actualizar el EXE y la DLL (por si están usando) [code=fw:26uyqw33]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #00C800;">If</span> File<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FACTURAS.DLL"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DllOn:=<span style="color: #ff0000;">"FACTURAS.DLL"</span><br />&nbsp; &nbsp; &nbsp; DllNew:=<span style="color: #ff0000;">"<span style="color: #000000;">\\</span>SERVER<span style="color: #000000;">\F</span>ACTURAS<span style="color: #000000;">\F</span>ACTURAS.DLL"</span><br />&nbsp; &nbsp; &nbsp; HoraNew:=FILETIME<span style="color: #000000;">&#40;</span>DllNew<span style="color: #000000;">&#41;</span>; HoraOn:=FILETIME<span style="color: #000000;">&#40;</span>DllOn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;FecDllOn:=dToS<span style="color: #000000;">&#40;</span>FILEDATE<span style="color: #000000;">&#40;</span>DllOn<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+Subs<span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;FecDllNew:=dToS<span style="color: #000000;">&#40;</span>FILEDATE<span style="color: #000000;">&#40;</span>DllNew<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+Subs<span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> FecDllNew > FecDllOn<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COPY FILE \\<span style="color: #00C800;">SERVER</span>\FACTURAS\FACTURAS.DLL <span style="color: #0000ff;">TO</span> FACTURAS.DLL<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp;Endi<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;ExeOn:=<span style="color: #ff0000;">"FACTURAS.EXE"</span><br />&nbsp; &nbsp;ExeNew:=<span style="color: #ff0000;">"<span style="color: #000000;">\\</span>SERVER<span style="color: #000000;">\F</span>ACTURAS<span style="color: #000000;">\F</span>ACTURAS.EXE"</span><br />&nbsp; &nbsp;HoraNew:=FILETIME<span style="color: #000000;">&#40;</span>ExeNew<span style="color: #000000;">&#41;</span>; HoraOn:=FILETIME<span style="color: #000000;">&#40;</span>ExeOn<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FecExeOn:=dToS<span style="color: #000000;">&#40;</span>FILEDATE<span style="color: #000000;">&#40;</span>ExeOn<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+Subs<span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>HoraOn,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FecExeNew:=dToS<span style="color: #000000;">&#40;</span>FILEDATE<span style="color: #000000;">&#40;</span>ExeNew<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+Subs<span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>HoraNew,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> FecExeNew > FecExeOn<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RENAME FACTURAS.EXE <span style="color: #0000ff;">TO</span> FACTURAx.EXE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COPY FILE \\<span style="color: #00C800;">SERVER</span>\FACTURAS\FACTURAS.EXE <span style="color: #0000ff;">To</span> FACTURAS.EXE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WinExec<span style="color: #000000;">&#40;</span>ExeOn<span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Quit<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">If</span> File<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FACTURAx.EXE"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DELETE FILE FACTURAx.EXE&nbsp; &nbsp;<br />&nbsp; &nbsp; Endi<br />&nbsp;</div>[/code:26uyqw33] Saludos para todos Adhemar Cuéllar
Actualizar el Ejecutable automáticamente
Adhemar, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Actualizar el programa desde FTP.
Hola a todos, Estoy intentando usar una rutina de Biel Maimó (muchas gracias Biel !!) para actualizar el programa que he desarrollado a través de una conexión FTP. El caso es que la rutina de Biel me da estos errores al compilar: c:\desarrol\treball\Ampa1507\obj\UPDATE00.c: Warning W8075 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 151: Suspicious pointer conversion in function HB_FUN_FILETIMES Warning W8065 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 152: Call to function 'ISNUM' with no prototype in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 183: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 184: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 185: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 186: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 187: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Error E2227 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 188: Ex tra parameter in call to hb_storni in function HB_FUN_FILETIMES Warning W8065 c:\\desarrol\\treball\\Ampa1507\\prg\\arquitec\\UPDATE00.PRG 208: Call to function 'ISNUM' with no prototype in function HB_FUN_FILESIZE *** 6 errors in Compile *** línea 151 LPSTR cFileName = hb_parc( 1 ) ; línea 152 int nTime = ( ISNUM( 2 ) ? hb_parni( 2 ) : 1 ) ; // defaults to 1 línea 183 hb_storni( stTime.wYear, -1, 1 ) ; línea 184, 185, 186, 187 y 188 similares a la 183 El código es: [code=fw:15988mby]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <Windows.h><br /><span style="color: #00D7D7;">#include</span> <mapiwin.h><br /><span style="color: #00D7D7;">#include</span> <hbApi.h><br />                     <span style="color: #B900B9;">//nTime 1=Last Update, 2=Last Acces, 3=Creation, defecto last update</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FILETIMES <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// params cFileName, nTime --> { nYear, nMonth, nDay, nHour, nMin, nSec }</span><br /><span style="color: #000000;">&#123;</span><br />   LPSTR cFileName = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int nTime       = <span style="color: #000000;">&#40;</span> ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> :  <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// defaults to 1</span><br /><br />   FILETIME ftCreate, ftAccess, ftWrite ;<br />   SYSTEMTIME stTime ;<br />   BOOL bRet ;<br />   HANDLE hFile = CreateFile<span style="color: #000000;">&#40;</span> cFileName, GENERIC_READ, FILE_SHARE_READ, <span style="color: #000000;">0</span>, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hFile <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> ;<br /><br />   GetFileTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HANDLE<span style="color: #000000;">&#41;</span> hFile, &ftCreate, &ftAccess, &ftWrite <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nTime <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span> : <span style="color: #B900B9;">// last update</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftWrite, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span> : <span style="color: #B900B9;">// last access</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftAccess, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span> : <span style="color: #B900B9;">// creation</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftCreate, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">default</span> : <span style="color: #B900B9;">// last update</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftWrite, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   SystemTimeToTzSpecificLocalTime<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span>, &stTime, &stTime <span style="color: #000000;">&#41;</span> ;<br />   CloseHandle<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span> ;<br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wYear,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wMonth,  <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wDay,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wHour,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wMinute, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storni<span style="color: #000000;">&#40;</span> stTime.wSecond, <span style="color: #000000;">-1</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:15988mby] Que está mal y cómo se arregla? Muchas gracias,
Actualizar el programa desde FTP.
Olá, Procure por uma rotina do José Javier Lloris - PFtp ela mostra tudo como fazer ftp de uma arquivo. Bastante detalhada. Att., Oliveiros Junior
Actualizar el programa desde FTP.
Carlos, prueba asi [code=fw:3nfm9097]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #B900B9;">//#include "hbapierr.h"</span><br /><span style="color: #B900B9;">//#include "hbapifs.h"</span><br /><br />                     <span style="color: #B900B9;">//nTime 1=Last Update, 2=Last Acces, 3=Creation, defecto last update</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FILETIMES <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// params cFileName, nTime --> { nYear, nMonth, nDay, nHour, nMin, nSec }</span><br /><span style="color: #000000;">&#123;</span><br />   LPSTR cFileName = <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int nTime       = <span style="color: #000000;">&#40;</span> HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> :  <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// defaults to 1</span><br /><br />   FILETIME ftCreate, ftAccess, ftWrite ;<br />   SYSTEMTIME stTime ;<br />   BOOL bRet ;<br />   HANDLE hFile = CreateFile<span style="color: #000000;">&#40;</span> cFileName, GENERIC_READ, FILE_SHARE_READ, <span style="color: #000000;">0</span>, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hFile <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> ;<br /><br />   GetFileTime<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HANDLE<span style="color: #000000;">&#41;</span> hFile, &ftCreate, &ftAccess, &ftWrite <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nTime <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span> : <span style="color: #B900B9;">// last update</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftWrite, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span> : <span style="color: #B900B9;">// last access</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftAccess, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span> : <span style="color: #B900B9;">// creation</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftCreate, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />      <span style="color: #00C800;">default</span> : <span style="color: #B900B9;">// last update</span><br />         FileTimeToSystemTime<span style="color: #000000;">&#40;</span> &ftWrite, &stTime <span style="color: #000000;">&#41;</span> ;<br />         <span style="color: #00C800;">break</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   SystemTimeToTzSpecificLocalTime<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span>, &stTime, &stTime <span style="color: #000000;">&#41;</span> ;<br />   CloseHandle<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span> ;<br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wYear,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wMonth,  <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wDay,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wHour,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wMinute, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ;<br />   hb_storvni<span style="color: #000000;">&#40;</span> stTime.wSecond, <span style="color: #000000;">-1</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /> <br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:3nfm9097] Aunque no sé si te servirán, también tienes las funciones [code=fw:3nfm9097]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? FDate<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span>, FTime<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3nfm9097]
Actualizar el programa desde FTP.
Gracias Cristobal, Al final he optado por no usar esta función. Esta función en el código de Biel se utiliza para obtener la fecha y hora de la versión que está disponible en la red, y con ello saber si es más actual que la que se está ejecutando. Entiendo que esto implica que sólo puede haber una actualización disponible en la red, con lo cual las versiones distribuídas en los usuarios se actualizarían directamente a esta última versión. Yo he optado por que el nombre de la distribución contenga el número de versión, con lo cual puede haber 'n' actualizaciones disponibles en la red y con ello iría actualizando paso a paso; pero claro si uso la manera de Biel de comprobar la fecha del fichero, cuando bajo éste desde la red a local, la fecha será la del momento de bajada, y esta fecha sería siempre superior al resto de versiones que quedan disponibles para actualizar en la red. Creo que me he enrollado; es viernes y las neuronas van como quieren. Buen fin de semana,
Actualizar en un BMP
Hola necesito poner una imagen como fondo de una ventana, en una parte de ella necesito tener texto Fijo transparente pero también necesito colocar una variable que deberá actualizarse cada determinado tiempo por ejemplo: @ 5, 5 BITMAP oBmp2 FILENAME "c:\conteo\logo.bmp" SIZE 500, 400 OF oWnd NOBORDER oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),; SetTextColor( oBmp:hDC, CLR_YELLOW ),; TextOut( oBmp:hDC, 50, 15, "Actualmente con nosotros" ) } //¿ Se puede cambiar el tamaño de la fuente ? ¿ Como se haría para que en otra parte de la misma ventana muestre una variable que cambiará de valor por medio de un timer ? Gracias a todos, saludos
Actualizar en un BMP
No sé si te he entendido bien Construye este ejemplo <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/fivewin-contributions/downloads/TESTGDI.prg">https://bitbucket.org/fivetech/fivewin- ... ESTGDI.prg</a><!-- m -->
Actualizar en un BMP
Gracias por contestar, necesito mostrar una imagen en una ventana maximizada, arriba de la imagen necesito escribir digamos: Numero de Clientes: [48] "ese numero variará cada 5 minutos" Lugares disponibles: [152] "ese numero variará cada 5 minutos" lo que requiero es que se vean de forma "Transparente", como lo hace: oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),; SetTextColor( oBmp:hDC, CLR_BLACK ),; TextOut( oBmp:hDC, 20, 540, "Numero de Clientes:" ) } Pero necesito cambiarle, el color, el tamaño y la fuente, y poner varios textos, Constantes y Variables, Se puede hacer ? Gracias, Saludos
Actualizar en un BMP
[code=fw:sanclwsw]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; oBmp:<span style="color: #000000;">bPainted</span> := <|hDC|<br />&nbsp; &nbsp; &nbsp; SetBkMode<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, CLR_YELLOW <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oFont1:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; TextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span>, <span style="color: #ff0000;">"Actualmente con nosotros"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oFont1:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">&#40;</span> hDC <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; &nbsp; ><br />&nbsp;</div>[/code:sanclwsw]
Actualizar fivewin
Antonio y todos los compañeros del foro, después de mucho tiempo de estar usando Fivewin, por fin me autorizaron a comprar la nueva versión (sigo usando la versión 2.7 <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> ) también estoy por comprar el Uestudio, que según he leído es una maravilla, actualmente estoy usando el XDevStudio y me ha funcionado bien (aunque mi Portugués es tan bueno como mi Ruso), mi duda es si al adquirir la nueva versión de Fivewin recibiré las versiones adecuadas de todas las librerías necesarias o tengo que adquirir algo mas. Gracias y saludos.
Actualizar fivewin
Mario, Al adquirir FWH recibes todo lo que necesitas, a falta del compilador de C, que puedes usar el que prefieras entre Borland, Microsoft y el MinGW. El más popular y el que más se usa es Borland que puedes conseguir gratuitamente desde las páginas web de Embarcadero. Si tienes problema en localizarlo aqui te indicaremos como obtenerlo. Por lo demás, solo necesitas un editor de recursos. Hay bastantes y buenos. A nivel gratuito, el PellesC, y a nivel comercial el ResEdit. Ambas son muy buenas opciones. Y en cuanto al editor de código fuente, tienes la libertad de usar el que prefieras (que suele ser el que mejor sabemos usar). Yo llevo años usando el UEStudio y de momento sigo con él. FiveWin se programa desde hace años con él <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Puedes adquirir FWH desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Actualizar mis librerias
Saludos a todos Amigos, deseo por razones de actualizacion realizar la generacion de mis librerias en general Las versiones que tengo son: Fwh 8.11, xH 1.1.0, Bcc 5.5, Tsbrowse 6.0, tsbutton 4.0 y lo que quiero actualizar es xH ?, Bcc ? y Tsbrowse 8.0, Tsbutton 6.0 pero necesiria general las librerias necesarias. Ademas, que aplicacion me funcionaria en lugar RMAKE porque trato de generar las librerias de tsbrowse y tsbutton y me marca: Error rmake/r2001 Exit 12: 'harbour ... Alguien me podria oriantar que versiones me convienen ecepto la de fwh 8.11?
Actualizar mis librerias
Noe, La versión actual de FWH es la 10.3 <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=18455">viewtopic.php?f=16&t=18455</a><!-- l -->
Actualizar mod_habour a mod_harbour.v2
Saludos a todos Instalé mod_harbour hace dos años, desde entonces he compilado pequeños programas con ADS sin problemas. Ahora deseo usar mod_harbour.vw, seguí las intrucciones para descargalo e instalarlo. Pero cuando inició apache desde xampp con la nueva configuración, apache no corre <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Si regreso la configuración con mod_harbour, trabaja muy bien. Alguna sugerencia ? Saludos
Actualizar mod_habour a mod_harbour.v2
<!-- m --><a class="postlink" href="https://discord.gg/Hv7wRrKJ">https://discord.gg/Hv7wRrKJ</a><!-- m -->
Actualizar oGet
Hola tengo una linea nDato:=123.44 @ 3.2, 9 GET oGet3 VAR nImp1 PICTURE "999,999.99" SIZE 40, 12 COLOR "B+/W/" FONT fntArial RIGHT oGet3:Disable() Despues de una evaluacion la VAR nImp1 se tiene que activar y tomar un valor de nDato y activar el oGet3 En una funcion hago nImp1:=nDato oGet3:Enable() oGet3:Refresh() Pero no pasa el valor, si habilita el get pero no pasa el valor, alguna forma de forzarlo ?? como en el oSay:Settext(nValor) ? Alguna sugerencia ? Gracias
Actualizar oGet
Probastes con con Valput.? creo es asi que se llama, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Actualizar oGet
servicomver: Intenta con la clausula UPDATE [code=fw:3icthqwm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">3.2</span>, <span style="color: #000000;">9</span> <span style="color: #0000ff;">GET</span> oGet3 <span style="color: #0000ff;">VAR</span> nImp1 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999,999.99"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"B+/W/"</span> <span style="color: #0000ff;">FONT</span> fntArial <span style="color: #0000ff;">RIGHT</span> &nbsp;<span style="color: #0000ff;">UPDATE</span><br /> </div>[/code:3icthqwm] Saludos
Actualizar un SAY al estar modificando un GET
Holas, tengo un problemita, tengo definido un GET REDEFINE GET oGet VAR cNota ID 101 OF oDlg REDEFINE SAY oSay VAR cLen ID 102 OF oDlg oGet:bChange := {|| cLne := STR( 300 - LEN( ALLTRIM( cNota ))), oSay:refresh() } he probado oSay:setText( cLen ) mas sysrefresh() tambien say:paint() todo en el bloque bChange del GET pero el SAY no se actualiza, pero si pongo un msginfo() dentro el bloque recien se actualiza, alguna sugerencia para que funcione esto saludos Marcelo
Actualizar un SAY al estar modificando un GET
Marcelo, La clase TGET (creo) actualiza un Get despues del siguiente GET.- Si te parece, prueba a ponerle un Get a continuación de prueba. Si te actualiza el SAY una vez pasado este Get de prueba, hemos dado en el clavo. En este caso tienes que modificar la clase TGET. Si este fuera el caso, dímelo y comentamos que lineas hay que modificar en el TGET.
Actualizar un SAY al estar modificando un GET
Manuel, gracias por responder, pero mi problema es de actualizacion del SAY en el momento que escribo en el GET, lo que especificamente deseo hacer es que mientras escriben en el GET se informe cuantos caracteres quedan libres para escribir en la variable asociada al GET. saludos Marcelo [quote="Manuel Valdenebro":3arw1mpq]Marcelo, La clase TGET (creo) actualiza un Get despues del siguiente GET.- Si te parece, prueba a ponerle un Get a continuación de prueba. Si te actualiza el SAY una vez pasado este Get de prueba, hemos dado en el clavo. En este caso tienes que modificar la clase TGET. Si este fuera el caso, dímelo y comentamos que lineas hay que modificar en el TGET.[/quote:3arw1mpq]
Actualizar un SAY al estar modificando un GET
Marcelo, El siguiente código lo he probado y funciona perfectamente. A medida que voy escribiendo el GET simultaneamente me dice en el SAY cuantos caracteres quedan. Si a tí no te funciona, tienes que cambiar la clase TGET: @ 0.8, 1.0 SAY "TITULAR 1:" @ 1.0, 8.0 GET oGet1 VAR cNombre OF oDlg ; ON CHANGE (cLen := STR (300-LEN(ALLTRIM(cNombre))), ; oDlg:UPDATE()) @ 2.0, 1.0 SAY cLen OF oDlg SIZE 40,10 UPDATE
Actualizar un SAY al estar modificando un GET
Manuel, gracias, pero tu ejemplo no funciona aqui, seguro mi problema es la version de FWH que estoy utilizando, la mia es la version 2.6 de abril de 2005. Bueno ni modo, vere que puedo encontrar en el codigo fuente gracias Marcelo [quote="Manuel Valdenebro":2fdouf9x]Marcelo, El siguiente código lo he probado y funciona perfectamente. A medida que voy escribiendo el GET simultaneamente me dice en el SAY cuantos caracteres quedan. Si a tí no te funciona, tienes que cambiar la clase TGET: @ 0.8, 1.0 SAY "TITULAR 1:" @ 1.0, 8.0 GET oGet1 VAR cNombre OF oDlg ; ON CHANGE (cLen := STR (300-LEN(ALLTRIM(cNombre))), ; oDlg:UPDATE()) @ 2.0, 1.0 SAY cLen OF oDlg SIZE 40,10 UPDATE[/quote:2fdouf9x]
Actualizar un SAY al estar modificando un GET
Marcelo, Si el código anterior no funciona, estoy casi seguro, que el problema está en la clase TGET. Yo lo tuve hace tiempo y lo solucione gracias a LKM, añadiendo una línea en TGET en el Method EditUpdate(): METHOD EditUpdate() CLASS TGet if ::oGet:HasFocus ::DispText() [b:3kjijdsc]::oGet:Assign() //LKM actualiza buffer actual[/b:3kjijdsc] endif ::SetPos( ::oGet:Pos ) return nil
Actualizar un SAY al estar modificando un GET
Manuel, gracias, esta modifcacion al la clase qet soluciono mi problema, seguro que en las versiones mas actuales de FW, ya esta solucionado saludos Marcelo [quote="Manuel Valdenebro":3frmggbp]Marcelo, Si el código anterior no funciona, estoy casi seguro, que el problema está en la clase TGET. Yo lo tuve hace tiempo y lo solucione gracias a LKM, añadiendo una línea en TGET en el Method EditUpdate(): METHOD EditUpdate() CLASS TGet if ::oGet:HasFocus ::DispText() [b:3frmggbp]::oGet:Assign() //LKM actualiza buffer actual[/b:3frmggbp] endif ::SetPos( ::oGet:Pos ) return nil[/quote:3frmggbp]
Actualizar un SAY al estar modificando un GET
Yo creo que el problema está en que evaluas cNote. Prueba a evaluar [b:3emo39ok]oGet:cText[/b:3emo39ok]. O sea: oGet:bChange := {|| cLne := STR( 300 - LEN( ALLTRIM( [u:3emo39ok][b:3emo39ok]oGet:cText[/b:3emo39ok][/u:3emo39ok] ))) } En cuanto a "oSay:refresh()", creo que no es necesario, no lo he probado, pero nunca me ha hecho falta cuando he actualizado algún SAY.
Actualizar un SAY al estar modificando un GET
Manuramos, lo que dices es cierto, pero tambien esta bien para mi la correccion de LKM que especifico Manuel gracias Marcelo [quote="manuramos":189ftmmw]Yo creo que el problema está en que evaluas cNote. Prueba a evaluar [b:189ftmmw]oGet:cText[/b:189ftmmw]. O sea: oGet:bChange := {|| cLne := STR( 300 - LEN( ALLTRIM( [u:189ftmmw][b:189ftmmw]oGet:cText[/b:189ftmmw][/u:189ftmmw] ))) } En cuanto a "oSay:refresh()", creo que no es necesario, no lo he probado, pero nunca me ha hecho falta cuando he actualizado algún SAY.[/quote:189ftmmw]
Actualizar xBrowse con nueva base
Distinguidos, Guardo información en bases por mes, muestro la actual y necesito ver un mes anterior carga la nueva base pero me desactivan los indices Cómo se actualiza el xbrowse, he intentado con [code=fw:1zacqtp8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />xBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />xBrw:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">DrawSelect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1zacqtp8] Gracias por la ayuda Saludos, Adhemar
Actualizar xBrowse con nueva base
Can you make a small sample which we can compile here?
Actualizar xBrowse con nueva base
Si actalizas el oBrw:CALIAS ?
Actualizar xBrowse con nueva base
Gracias amigos Lo solucione asi: [code=fw:2xxvaqsf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cSortOrder</span>:=<span style="color: #ff0000;">"INDICE1"</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cSortOrder</span>:=<span style="color: #ff0000;">"INDICE2"</span><br />&nbsp;</div>[/code:2xxvaqsf] Saludos, Adhemar
Actualizar xBrowse con un Clic del ratón?
Saludos amigos del foro: Es posible actualizar la celda de un xBrowse (FastEdit) con solo un clic del ratón? Pretendo que con un solo clic se actualice la celda con el valor que traigo en una variable. No me vale utilizar el RETURN para entrar a la celda, teclear el valor y luego RETURN para salir de la celda editada. Saludos y muchas gracias de antemano
Actualizar xBrowse con un Clic del ratón?
Armando, y como truco el copy/paste no te funcionara? si no estoy mal el xbrowse tiene métodos para pegar el contenido del portapapeles a una celda.
Actualizar xBrowse con un Clic del ratón?
Carlos: Suena bien, agradeceré un ejemplo pues aún soy ñoño en el tema. Mientras tanto, voy a buscar en el foro. Saludos
Actualizar xBrowse con un Clic del ratón?
[code=fw:2ikmpw8a]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> newValie _</div>[/code:2ikmpw8a] For pasting initially set [code=fw:2ikmpw8a]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lCanPaste</span> := .t.</div>[/code:2ikmpw8a] Then, you can copy any text any where and then press Ctrl-V in the active cell. The value is pasted and browse updated. This applies even for pasting images in memo fields.
Actualizar xBrowse con un Clic del ratón?
[quote:2zatrzna]Then, you can copy any text any where and then press Ctrl-V in the active cell. The value is pasted and browse updated. This applies even for pasting images in memo fields.[/quote:2zatrzna] Aprovechado el hilo, como debería definirse si quiero hacerlo con un Xbrowse con Array?
Actualizar xBrowse con un Clic del ratón?
Mr. Rao: Thank you so much, I'll try it. With best regards
Actualizar xBrowse con un Clic del ratón?
[quote:24cau5e7]Aprovechado el hilo, como debería definirse si quiero hacerlo con un Xbrowse con Array?[/quote:24cau5e7] [code=fw:24cau5e7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> XbrPaste<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> aData := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"olga     "</span>, MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                    <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Two      "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Three      "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />   XBROWSER aData FASTEDIT SETUP <span style="color: #000000;">&#40;</span> ;<br />      oBrw:<span style="color: #000000;">lCanPaste</span>    := .t., ;<br />      oBrw:<span style="color: #000000;">nRowHeight</span>   := <span style="color: #000000;">100</span>, ;<br />      oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span>:= <span style="color: #ff0000;">"P"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:24cau5e7] [url=https&#58;//imageshack&#46;com/i/po9zntyGg:24cau5e7][img:24cau5e7]https&#58;//imagizer&#46;imageshack&#46;com/img924/377/9zntyG&#46;gif[/img:24cau5e7][/url:24cau5e7]
Actualizar xBrowse con un Clic del ratón?
Excelente, como siempre Mr. Rao. Muchas gracias! Consulta. Si el arreglo inicial esta vacio, puede ser que no me deje pegar?
Actualizar xBrowse con un Clic del ratón?
Si lo quiero hacer desde un xbrowse por codigo me da este error [code=fw:2ct74cmr]<div class="fw" id="{CB}" style="font-family: monospace;">Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">44</span> &nbsp;Assigned value is wrong <span style="color: #00C800;">class</span>: <span style="color: #000000;">TXBRWCOLUMN</span>:<span style="color: #000000;">HEDITTYPE</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = C &nbsp; P<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TXBRWCOLUMN:_HEDITTYPE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBRWCOLUMN:_NEDITTYPE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15905</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">prueba</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span></div>[/code:2ct74cmr] Con este codigo [code=fw:2ct74cmr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br />*****************************************************************<br />** Importar Articulos<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> oDlg1, acor:= ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>, mrta:=.F., oBot1, oBot2, oBrwTmp,;<br />&nbsp; &nbsp; &nbsp; aCols := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>,SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</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;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; i, cError, cSql,cSql2<br />&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Importar"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">03</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">140</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">465</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg1 ARRAY aCols ;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Codigo"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Costo"</span>,<span style="color: #ff0000;">"Utilidad"</span>,<span style="color: #ff0000;">"Precio Venta"</span>,<span style="color: #ff0000;">"Stock"</span>,<span style="color: #ff0000;">"Depto"</span>,<span style="color: #ff0000;">"IVA"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> ,<span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">8</span>, <span style="color: #000000;">9</span>;<br />&nbsp; &nbsp; &nbsp; SIZES <span style="color: #000000;">60</span>,<span style="color: #000000;">250</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">100</span>;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER FASTEDIT<br />&nbsp; &nbsp;WITH OBJECT oBrwTmp<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lCanPaste</span> &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; := <span style="color: #000000;">100</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> &nbsp;:= <span style="color: #ff0000;">"P"</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>nKey == VK_DELETE,oBrwTmp:<span style="color: #000000;">Delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;END &nbsp; &nbsp; <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTER</span> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span> <br />&nbsp;</div>[/code:2ct74cmr] Algo estoy haciendo mal pero no puedo darme cuenta que
Actualizar xBrowse con un Clic del ratón?
Not [code=fw:3mtshwbk]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> &nbsp;:= <span style="color: #ff0000;">"P"</span> &nbsp;<br />&nbsp;</div>[/code:3mtshwbk] Correct: [code=fw:3mtshwbk]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> &nbsp;:= <span style="color: #ff0000;">"P"</span> &nbsp;<br />&nbsp;</div>[/code:3mtshwbk]
Actualizar xBrowse con un Clic del ratón?
[quote:31lufrup]Consulta. Si el arreglo inicial esta vacio, puede ser que no me deje pegar? [/quote:31lufrup] Sorry, this was due to the mistake in my post. Now corrected. It will work now. Set [quote:31lufrup]oCol:cDataType := "P"[/quote:31lufrup]
Actualizar xBrowse con un Clic del ratón?
Perfecto, ahi funciona. Tuve que agregar la clausula :nEditTypes := 1 para que permitiera editar y pegar [code=fw:1l9tzsvn]<div class="fw" id="{CB}" style="font-family: monospace;"><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 />** Importar Articulos<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> oDlg1, acor:= ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>, mrta:=.F., oBot1, oBot2, oBrwTmp,;<br />&nbsp; &nbsp; &nbsp; aCols := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>,SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</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;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; i, cError, cSql,cSql2<br />&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Importar"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">03</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">140</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">465</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg1 ARRAY aCols ;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Codigo"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Costo"</span>,<span style="color: #ff0000;">"Utilidad"</span>,<span style="color: #ff0000;">"Precio Venta"</span>,<span style="color: #ff0000;">"Stock"</span>,<span style="color: #ff0000;">"Depto"</span>,<span style="color: #ff0000;">"IVA"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> ,<span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">8</span>, <span style="color: #000000;">9</span>;<br />&nbsp; &nbsp; &nbsp; SIZES <span style="color: #000000;">60</span>,<span style="color: #000000;">250</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">100</span>;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER FASTEDIT<br />&nbsp; &nbsp;WITH OBJECT oBrwTmp<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lCanPaste</span> &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nEditTypes</span> &nbsp; := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; := <span style="color: #000000;">100</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> &nbsp;:= <span style="color: #ff0000;">"P"</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>nKey == VK_DELETE,oBrwTmp:<span style="color: #000000;">Delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;END &nbsp; &nbsp; <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTER</span> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:1l9tzsvn]
Actualizar xBrowse con un Clic del ratón?
Mr. Rao, abusando de su conocimiento, como puedo hacer para que si pongo una url en una celda para que traiga una imagen, y esa imagen no existe en el servidor web, que me muestre una imagen por default (o nada), ya que sino, da error Este es el ejemplo: [code=fw:33igf85p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br />*****************************************************************<br />** Vista de articulos<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> oDlg1, oBrwTmp,;<br />      aCols := <span style="color: #000000;">&#123;</span>;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA'</span>,  <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010110.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA 2'</span>,  <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010114.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MIX'</span>,  <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Huevo Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000020.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CHEESE ONION'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Cebolla Caramelizada Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000021.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MEGA'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120grs. Cheddar, lechuga, pepinos, cebolla picada y salsa mil islas. Incluye papas fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000022.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA NAPO'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Jamón, Queso, Tomate y Mayonesa. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000023.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 1 L.'</span>, <span style="color: #000000;">300.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>;<br /><span style="color: #000000;">&#125;</span><br />       <br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Visor de productos"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">03</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">140</span> <br />   @ <span style="color: #000000;">20</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">465</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg1 ARRAY aCols  ;<br />      HEADERS <span style="color: #ff0000;">"Producto"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Precio"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />      COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>;<br />      SIZES <span style="color: #000000;">250</span>,<span style="color: #000000;">250</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">250</span>;<br />      CELL LINES NOBORDER <br />   WITH OBJECT oBrwTmp<br />      :<span style="color: #000000;">nRowHeight</span>   := <span style="color: #000000;">100</span> <br />      :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"P"</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <br />   END   <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:33igf85p] El error lo da aqui [code=fw:33igf85p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1109</span> &nbsp;Argument error: $<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = C &nbsp; base64<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\IMGTXTIO.PRG => WEBIMAGE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2615</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\IMGTXTIO.PRG => FW_READIMAGE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1359</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">602</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TXBROWSE:<span style="color: #000000;">READIMAGE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:33igf85p]
Actualizar xBrowse con un Clic del ratón?
First thing is to fix the runtime error in our library function. It is failing with non-existent URLs. Please apply this fix in the file \fwh\source\function\imgtxtio.prg: Please locate [code=fw:7eu249b2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> WebPageContents<span style="color: #000000;">&#40;</span> cUrl, lText <span style="color: #000000;">&#41;</span></div>[/code:7eu249b2] At the end of this function, you will see: [code=fw:7eu249b2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">return</span> cContents</div>[/code:7eu249b2] Please change this like as: [code=fw:7eu249b2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">return</span> IfNil<span style="color: #000000;">&#40;</span> cContents, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span></div>[/code:7eu249b2] Now, this fixes the runtime error. Instead of getting runtime error, you will see a blank space instead of image. Now how to use a default image? Please wait for my next post.
Actualizar xBrowse con un Clic del ratón?
[code=fw:whzctfcz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> cmsoft<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oDlg1, oBrwTmp,;<br />&nbsp; &nbsp; &nbsp; aCols := <span style="color: #000000;">&#123;</span>;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010110.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA 2'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010114.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MIX'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Huevo Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000020.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CHEESE ONION'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Cebolla Caramelizada Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000021.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MEGA'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120grs. Cheddar, lechuga, pepinos, cebolla picada y salsa mil islas. Incluye papas fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000022.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA NAPO'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Jamón, Queso, Tomate y Mayonesa. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000023.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 1 L.'</span>, <span style="color: #000000;">300.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cDefault := MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ea.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aCols, <span style="color: #000000;">&#123;</span> |a,i| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := WebPageContents<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := cDefault, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Visor de productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE<br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg1 ARRAY aCols &nbsp;;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Producto"</span>, <span style="color: #ff0000;">"Precio"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; &nbsp; SIZES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">150</span>,<span style="color: #000000;">200</span>;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br />&nbsp; &nbsp;WITH OBJECT oBrwTmp<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp;:= <span style="color: #000000;">150</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"P"</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:whzctfcz]
Actualizar xBrowse con un Clic del ratón?
Gracias por su tiempo Mr. Rao Esto solucionó el error en tiempo de ejecucion [quote:268uns58]return IfNil( cContents, "" )[/quote:268uns58] [quote:268uns58]local cDefault := MEMOREAD( "c:\fwh\bitmaps\sea.bmp" ) AEval( aCols, { |a,i| a[ 4 ] := WebPageContents( a[ 4 ] ), ; If( Empty( a[ 4 ] ), a[ 4 ] := cDefault, nil ) } )[/quote:268uns58] Esto muestra solamente la primer foto faltante, pero si hay muchas, las otras no las muestra Pruebe este ejemplo: [code=fw:268uns58]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00C800;">FUNCTION</span> cmsoft<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oDlg1, oBrwTmp,;<br />&nbsp; &nbsp; &nbsp; aCols := <span style="color: #000000;">&#123;</span>;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010110.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA 2'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010114.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MIX'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Huevo Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000020.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CHEESE ONION'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Cebolla Caramelizada Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000021.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MEGA'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120grs. Cheddar, lechuga, pepinos, cebolla picada y salsa mil islas. Incluye papas fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000022.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA NAPO'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Jamón, Queso, Tomate y Mayonesa. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000023.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 1 L.'</span>, <span style="color: #000000;">300.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 2 L.'</span>, <span style="color: #000000;">400.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000055.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 3 L.'</span>, <span style="color: #000000;">500.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000056.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 4 L.'</span>, <span style="color: #000000;">600.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000057.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 5 L.'</span>, <span style="color: #000000;">700.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000058.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 6 L.'</span>, <span style="color: #000000;">800.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000059.jpg'</span><span style="color: #000000;">&#125;</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cDefault := MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh21<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ea.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aCols, <span style="color: #000000;">&#123;</span> |a,i| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := WebPageContents<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := cDefault, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Visor de productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE<br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrwTmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg1 ARRAY aCols &nbsp;;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Producto"</span>, <span style="color: #ff0000;">"Precio"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; &nbsp; SIZES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">150</span>,<span style="color: #000000;">200</span>;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br />&nbsp; &nbsp;WITH OBJECT oBrwTmp<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp;:= <span style="color: #000000;">150</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"P"</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:268uns58] Tambien, ya que en realidad los datos los obtengo de una consulta sql, en caso de usar DATASOURCE en lugar de ARRAY habia intentado esto [code=fw:268uns58]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>EMPTY<span style="color: #000000;">&#40;</span>WebPageContents<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">url</span>, .f. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,MemoRead<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".<span style="color: #000000;">\l</span>ogo.jpg"</span><span style="color: #000000;">&#41;</span>,WebPageContents<span style="color: #000000;">&#40;</span>oQry:<span style="color: #000000;">url</span>,.f.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:268uns58] Y obtenia el mismo efecto, solo mostraba en la primer imagen faltante Por que puede ser? Agradezco su interes en el tema
Actualizar xBrowse con un Clic del ratón?
[quote:18c9o17e]This shows only the first missing photo, but if there are too many, it doesn't show the others.[/quote:18c9o17e] But here it is working fine. I got the default image in all cases. I extended the array like this: [code=fw:18c9o17e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA NAPO'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Jamón, Queso, Tomate y Mayonesa. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000023.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 1 L.'</span>, <span style="color: #000000;">300.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>, ;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 2 L.'</span>, <span style="color: #000000;">500.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>, ;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 3 L.'</span>, <span style="color: #000000;">600.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>, ;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 4 L.'</span>, <span style="color: #000000;">700.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:18c9o17e] I see the default image in all the 4 last rows. [url=https&#58;//imageshack&#46;com/i/pmiNTMrcp:18c9o17e][img:18c9o17e]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/922/iNTMrc&#46;png[/img:18c9o17e][/url:18c9o17e] Wondering why is not working for you. May I know your FWH version? Let me check with your version at my end.
Actualizar xBrowse con un Clic del ratón?
Compiler version: Harbour 3.2.0dev (r2008190002) FiveWin version: FWH 22.06 C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
Actualizar xBrowse con un Clic del ratón?
Mr. Rao: [quote:e3a5g79n]I extended the array like this:[/quote:e3a5g79n] En la extension del array puso siempre la misma url Cambie por [code=fw:e3a5g79n]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;aCols := <span style="color: #000000;">&#123;</span>;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010110.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CLASICA 2'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Lechuga, Tomate y Mayonesa, Mostaza y Kétchup. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00010114.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MIX'</span>, &nbsp;<span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Huevo Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000020.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA CHEESE ONION'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Cheddar, Cebolla Caramelizada Bacon y BBQ. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000021.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA MEGA'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120grs. Cheddar, lechuga, pepinos, cebolla picada y salsa mil islas. Incluye papas fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000022.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'VIRTUOSA NAPO'</span>, <span style="color: #000000;">1900.00</span>, <span style="color: #ff0000;">'Carne 120 grs. Jamón, Queso, Tomate y Mayonesa. Incluye Papas Fritas.'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000023.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 1 L.'</span>, <span style="color: #000000;">300.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000054.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 2 L.'</span>, <span style="color: #000000;">400.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000055.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 3 L.'</span>, <span style="color: #000000;">500.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000056.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 4 L.'</span>, <span style="color: #000000;">600.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000057.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 5 L.'</span>, <span style="color: #000000;">700.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000058.jpg'</span><span style="color: #000000;">&#125;</span>,;<br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'BRAHMA 6 L.'</span>, <span style="color: #000000;">800.00</span> , <span style="color: #ff0000;">'Bien fria'</span>,<span style="color: #ff0000;">'https://bcnresto.com/img/000010/00000059.jpg'</span><span style="color: #000000;">&#125;</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:e3a5g79n] El error fue mio al copiar y pegar las urls Puede decirme si esto le muestra todas las imagenes por default?
Actualizar xBrowse con un Clic del ratón?
You are right. Please use this: [code=fw:z44kplxg]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; AEval<span style="color: #000000;">&#40;</span> aCols, <span style="color: #000000;">&#123;</span> |a,i| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := WebPageContents<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, .f. <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> IsBinaryData<span style="color: #000000;">&#40;</span> a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span>, a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> := cDefault <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:z44kplxg]
Actualizar xBrowse con un Clic del ratón?
Excelente Mr. Rao!! Ahora si funciona perfecto! Aprovechando la sugerencia, también hice para el caso de que quiera leer directamente desde la Query [code=fw:15io6zwp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>!IsBinaryData<span style="color: #000000;">&#40;</span>WebPageContents<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">url</span>, .f. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />                               MemoRead<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".<span style="color: #000000;">\l</span>ogo.jpg"</span><span style="color: #000000;">&#41;</span>,WebPageContents<span style="color: #000000;">&#40;</span>oQry:<span style="color: #000000;">url</span>,.f.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span><br /> </div>[/code:15io6zwp] Y tambien funcionó perfecto! Si bien, funciona, si quiero hacer un oBrw:Report() luego, no pone las imagenes de los url vacios Si funciona perfecto si lo hago desde array. Pero seguire investigando para ver como poder hacerlo. Muchas gracias por el tiempo dedicado!
Actualizar xBrowse con un Clic del ratón?
Please try this code as it is and then modify to Dolphin You need to change the default image to your default image in this sample. [code=fw:39ohy8i6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> cmsoft<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cDefault<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oCn, oRs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hImages<br /><br />&nbsp; &nbsp;oCn &nbsp; := maria_Connect<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"208.91.198.197:3306,fwhdemo,gnraofwh,Bharat@1950"</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oCn == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"can not connect to server"</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; &nbsp;oRs &nbsp; := oCn:<span style="color: #000000;">cmsoft_images</span><br /><br />&nbsp; &nbsp;cDefault := MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ea.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cDefault := cValToChar<span style="color: #000000;">&#40;</span> FW_ReadImage<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, cDefault <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Reading"</span>, <span style="color: #ff0000;">"Images"</span>, <span style="color: #000000;">&#123;</span> || hImages := ReadImages<span style="color: #000000;">&#40;</span> oRs, cDefault <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Visor de productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">730</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL RESIZABLE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oRs &nbsp;;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"Producto"</span>, <span style="color: #ff0000;">"Precio"</span>, <span style="color: #ff0000;">"Descripcion"</span>,<span style="color: #ff0000;">"Foto"</span>;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"Foto"</span> ;<br />&nbsp; &nbsp; &nbsp; SIZES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">150</span>,<span style="color: #000000;">200</span>;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp;:= <span style="color: #000000;">150</span><br />&nbsp; &nbsp; &nbsp; WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">cDataType</span> := <span style="color: #ff0000;">"P"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> || hImages<span style="color: #000000;">&#91;</span> oRs:<span style="color: #000000;">foto</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"REPORT"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;PalBmpFree<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span> cDefault <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HEval<span style="color: #000000;">&#40;</span> hImages, <span style="color: #000000;">&#123;</span> |k,v| PalBmpFree<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span> v <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</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: #00C800;">static</span> <span style="color: #00C800;">function</span> ReadImages<span style="color: #000000;">&#40;</span> oRs, cDefault <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hImages, c, n, nRecs<br /><br />&nbsp; &nbsp;nRecs := oRs:<span style="color: #000000;">RecCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRs:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;hImages &nbsp;:= <span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nRecs<br />&nbsp; &nbsp; &nbsp; c &nbsp;:= WebPageContents<span style="color: #000000;">&#40;</span> oRs:<span style="color: #000000;">foto</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsBinaryData<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hImages<span style="color: #000000;">&#91;</span> oRs:<span style="color: #000000;">foto</span> <span style="color: #000000;">&#93;</span> := cValToChar<span style="color: #000000;">&#40;</span> FW_ReadImage<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, c <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hImages<span style="color: #000000;">&#91;</span> oRs:<span style="color: #000000;">foto</span> <span style="color: #000000;">&#93;</span> := cDefault<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oRs:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;oRs:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> hImages</div>[/code:39ohy8i6] Click on "REPORT" button on the top to generate report
Actualizar xBrowse con un Clic del ratón?
Excelente Mr. Rao! Funcionó perfecto! Muchas gracias por su tiempo!
Actuliza Pantalla de XBrowse
Hol Amigos Tengo un Xbrowse con los datos de una Dbf, los cuales se muestran con un filtro, tengo una opcion para activar o desactivar cada profesional, para lo cual debe dar doble click. El problema que el Xbrowse se actuliza solo si muevo el mouse sobre la lista. Muchos Saludos Antonio Codigo: [code=fw:3np64sge]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">00</span>,<span style="color: #000000;">90</span> &nbsp;<span style="color: #0000ff;">SAY</span> otitu1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" MAESTRO PROFESIONALES MEDICOS "</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg4 COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">27</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">018</span>,<span style="color: #000000;">103</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Seleccione"</span> &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg4 &nbsp;<span style="color: #0000ff;">RIGHT</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">018</span>,<span style="color: #000000;">190</span> <span style="color: #0000ff;">ComboBox</span> oPro <span style="color: #0000ff;">Var</span> nPro <span style="color: #0000ff;">Items</span> ArrTranspose<span style="color: #000000;">&#40;</span>aProfe<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg4 &nbsp;COLORS RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">55</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">153</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont5;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cPro:=ArrTranspose<span style="color: #000000;">&#40;</span>aProfe<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>oPro:<span style="color: #000000;">nAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>!Filtra_Conve<span style="color: #000000;">&#40;</span>cPro<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#40;</span>MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TODO BIEN"</span><span style="color: #000000;">&#41;</span>,oBrw2:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,.F.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw2:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">45</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">XBROWSE</span> oBrw2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-35</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg4 DATASOURCE <span style="color: #ff0000;">"Profe"</span> <span style="color: #0000ff;">FONT</span> oFont6;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HEADERS <span style="color: #ff0000;">'Código'</span>,<span style="color: #ff0000;">'Nombre Profesional'</span>,<span style="color: #ff0000;">'Espe.'</span>,<span style="color: #ff0000;">'R.u.t.'</span>,<span style="color: #ff0000;">'Estado'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">'Cod_Pro'</span>,<span style="color: #ff0000;">'Nom_Pro'</span>,<span style="color: #ff0000;">'Tip_Esp'</span>,<span style="color: #ff0000;">'Rut_Pro'</span>,<span style="color: #ff0000;">'Est_Pro'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PICTURES <span style="color: #ff0000;">"@!"</span>,<span style="color: #ff0000;">"@!"</span>,<span style="color: #ff0000;">"@!"</span>,<span style="color: #ff0000;">"@!"</span>,<span style="color: #ff0000;">"@!"</span>;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ColSizes <span style="color: #000000;">60</span>,<span style="color: #000000;">180</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">50</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AUTOSORT NOBORDER FOOTERS LINES CELL<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nMarqueeStyle</span> :=MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_INSET<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_INSET<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">140</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nOpacity</span> &nbsp; &nbsp;:= <span style="color: #000000;">230</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nHeaderHeight</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">35</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nFreeze</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; := STRETCHCOL_LAST<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; := STRETCHCOL_WIDEST<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// oBrw2:lSeekBar:= .t.</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol := oBrw2:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"#10"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"#14"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> = <span style="color: #ff0000;">"Agenda"</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">bBmpData</span> &nbsp; := <span style="color: #000000;">&#123;</span> || IIF<span style="color: #000000;">&#40;</span>Profe->Ate_Hor = <span style="color: #ff0000;">"S"</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bClrStd</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">bKeyNo</span>,,oBrw2<span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">198</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">198</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// Efecto Cebra</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oDataFont</span> := oFont6<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">248</span>,<span style="color: #000000;">220</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bClrSelFocus</span> &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">255</span>, &nbsp;<span style="color: #000000;">255</span>, &nbsp;<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span>, <span style="color: #000000;">178</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bClrSel</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">0</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">241</span>,<span style="color: #000000;">222</span>,<span style="color: #000000;">088</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// para barra de linea selecc cuando el control no tiene el foco</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">lAutoSort</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nFooterLines</span>:=<span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">lFooter</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">lHScroll</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">lIncrFilter</span> &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">lSeekWild</span> &nbsp; &nbsp; := .T. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; && &nbsp;.T. Busca Contenido, .F. Que comience con lo que digita<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">SetStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2018</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nColorPen</span> := CLR_RED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">18</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">&#123;</span>|| oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_HRED,CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Aplico Color a Una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_HRED,CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Aplico Color a Una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := &nbsp;oFont7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Aplico Font a una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := &nbsp;oFont7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Aplico Font a una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := &nbsp;oFont7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Aplico Font a una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := &nbsp;oFont7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Aplico Font a una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> := &nbsp;oFont7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Aplico Font a una Columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bFooter</span> &nbsp; := <span style="color: #000000;">&#123;</span> || Ltrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" / "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">KeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br /><br /><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oBrw2<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw2:<span style="color: #000000;">bLDblClick</span>:=<span style="color: #000000;">&#123;</span>||Cambia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw2:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br /><br /><br /><br />......<br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Cambia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Sele Profe<br />&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Case</span> Profe->Est_Pro=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">"N"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">"DESHABILITAR"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Case</span> Profe->Est_Pro#<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">"HABILITAR"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndCase</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" ¿ Desea "</span>+Estado+<span style="color: #ff0000;">"?"</span>,<span style="color: #ff0000;">"ATENCION"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> Rlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Repl Est_Pro with Est<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbCommit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndDo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> .T.<br /><br /><br />&nbsp;</div>[/code:3np64sge]
Actuliza Pantalla de XBrowse
Amigo pues según lo que entendí el xbrowse tiene el comportamiento correcto al igual que la dbf. Sugiero mostrar el estado del profesional en una columna, quitando el Set Filter to Est_Pro="S" [code=fw:1sttfgyz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bStrData</span> = <span style="color: #000000;">&#123;</span> || Estadoprofesional<span style="color: #000000;">&#40;</span> dbf->estado<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Estadoprofesional<span style="color: #000000;">&#40;</span> cEstd<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEtd := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> cEstd=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp;cEtd := <span style="color: #ff0000;">"activo"</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;cEtd := <span style="color: #ff0000;">"bloqueado"</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> cEtd <br />&nbsp;</div>[/code:1sttfgyz]
Actuliza Pantalla de XBrowse
Quizás te pueda ayudar si refrescas el xbrowse cada de tome el foco [code=fw:11td8jjs]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw2:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span>|| oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:11td8jjs]
Actuliza Pantalla de XBrowse
[quote="leandro":11tijo02]Quizás te pueda ayudar si refrescas el xbrowse cada de tome el foco [code=fw:11tijo02]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw2:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span>|| oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:11tijo02][/quote:11tijo02] Hola Amigo Leandro. Muchas gracias por responder. Lo aplique pero no funciona. La base entra con un filtro aplicado: Set Filter to Est_Pro="S" Al dar doble click sobre algun registro puedo cambiar el Est_Pro S o N, si esta con S, lo cambio a N, despues de cambiar el el estado en la base, vuelve a Xbrowse y este sigue manteniendo este registro, mostrando la ahora con N, pero al hacer click sobre el xbrowse este actuliza la pantalla sacando de la lista el registro modificado. Muchas gracias. Saludos Antonio
Actuliza Pantalla de XBrowse
Antonio, no sé con qué condición tienes hecho el tema del refresh del browse ( definiendo el bChange, etc. ) Si es asi, recuerda que la clase tiene una DATA lColChangeNotify ( por defecto en .F. ), que llama al bChange definido ( que habitualmente solo es ejecutado cuando cambias de posicion en el browse ), al detectar que se ha modificado un valor en una columna Aprovecho para indicarte por si lo necesitas ( quizás no en este caso ), que tienes el metodo RefreshCurrent que solo refresca la fila en la que te encuentras, no siendo necesario hacer el refresh de todo el browse ( que en el caso que describes si será necesario evidentemente )
Actuliza Pantalla de XBrowse
[quote="cnavarro":2u9p7rne]Antonio, no sé con qué condición tienes hecho el tema del refresh del browse ( definiendo el bChange, etc. ) Si es asi, recuerda que la clase tiene una DATA lColChangeNotify ( por defecto en .F. ), que llama al bChange definido ( que habitualmente solo es ejecutado cuando cambias de posicion en el browse ), al detectar que se ha modificado un valor en una columna Aprovecho para indicarte por si lo necesitas ( quizás no en este caso ), que tienes el metodo RefreshCurrent que solo refresca la fila en la que te encuentras, no siendo necesario hacer el refresh de todo el browse ( que en el caso que describes si será necesario evidentemente )[/quote:2u9p7rne] Hola Cristobal. Muchas gracias por responder. Como lo muestro en el codigo de arriba, tengo un xbrowse, que entra con un filtro de todos los registros que tienen estado "S", ademas de cuenta con un combobox que puede seleccionar otras condiciones como todos los registro o los con estado "N". En el xbrowse, tengo esta opcion que al dar click en la fila, esta manda a una rutina que puede cambiar el estado de ese registro en la DBF, que esta con el Set Filter, al volver, ese registro que se modifico su estado, debiera desaparecer de la lista al volver, pero esto no se realiza visualmente, mientras no me posecione en la pantalla o haga algun click. Muchas gracias. Saludos. Antonio Codigo de donde mando a realizar el cambio: [code=fw:2u9p7rne]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oBrw2<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw2:<span style="color: #000000;">bLDblClick</span>:=<span style="color: #000000;">&#123;</span>||Cambia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw2:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> &nbsp; <span style="color: #B900B9;">// <-----</span><br /><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br /><br />........<br />........<br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Filtra_Conve<span style="color: #000000;">&#40;</span>cPro2<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; Sele Profe<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Case</span> cPro2=<span style="color: #ff0000;">"T"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set Filter <span style="color: #0000ff;">to</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Case</span> cPro2=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set Filter <span style="color: #0000ff;">to</span> Est_Pro=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Case</span> cPro2=<span style="color: #ff0000;">"N"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set Filter <span style="color: #0000ff;">to</span> Est_Pro#<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndCase</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Go Top<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> .t.<br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Cambia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Sele Profe<br />&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Case</span> Profe->Est_Pro=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">"N"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">"DESHABILITAR"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Case</span> Profe->Est_Pro#<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Est:=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estado:=<span style="color: #ff0000;">"HABILITAR"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndCase</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" ¿ Desea "</span>+Estado+<span style="color: #ff0000;">"?"</span>,<span style="color: #ff0000;">"ATENCION"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> Rlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Repl Est_Pro with Est<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbCommit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndDo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> .T.<br /><br /><br /><br />&nbsp;</div>[/code:2u9p7rne]
Actuliza Pantalla de XBrowse
[quote="leandro":1ke6l2wf]Amigo pues según lo que entendí el xbrowse tiene el comportamiento correcto al igual que la dbf. Sugiero mostrar el estado del profesional en una columna, quitando el Set Filter to Est_Pro="S" [code=fw:1ke6l2wf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bStrData</span> = <span style="color: #000000;">&#123;</span> || Estadoprofesional<span style="color: #000000;">&#40;</span> dbf->estado<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Estadoprofesional<span style="color: #000000;">&#40;</span> cEstd<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cEtd := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> cEstd=<span style="color: #ff0000;">"S"</span><br />   cEtd := <span style="color: #ff0000;">"activo"</span><br /><span style="color: #00C800;">else</span><br />   cEtd := <span style="color: #ff0000;">"bloqueado"</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> cEtd <br /> </div>[/code:1ke6l2wf][/quote:1ke6l2wf] Hola Leandro. Muchas gracias por responder. Tengo la solicitud que el usuario pueda seleccionar en el combobox el estado de los profesionales que desea visualizar, en la columna 05 se muestra el estado de cada registro, en el Combo esta la opcion de Todos, Activos y Desactivados ("S","N","T"), motivo por lo cual debo usar un set filter, claro a menos que exista otra opcion que no sepa. Muchas gracias. Saludos Antonio.
Acutocompletar formulario WEB con clipboard
Buenas tardes, Debo completar un formulario en una Web. en dicho formulario se avanza entre los campos con TAB. Como tiene veinte campos y los datos los tengo en mi aplicación, normalmente los voy copiando al potapapeles y pasando de a uno. Esto resulta tedioso y estoy buscando el modo de "extraer" los datos de mi aplicación y para ello se me ocurrió copiarlos al clipboard así [code=fw:13zhewxx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> tab chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br /><br />... <span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span>oClp:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Campo1"</span> + tab + <span style="color: #ff0000;">"Campo2"</span> + tab + .....<span style="color: #000000;">&#41;</span><br /> </div>[/code:13zhewxx] En teoría debiera funcionar pero al posicionarme en el primer campo del formulario web y darle al CTRL+V para copiar, copia todos los datos en el primer campo y no en todos los campos del formulario como pretendo. Calculo que se debe a que el clipboard en FW sólo admite texto y no caracteres de control. ¿Hay alguna forma de hacerlo? Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Adaptación del tamaño de los diálogos
busca por DISPLAY3
Adaptación del tamaño de los diálogos
Buenos días, ¿Hay alguna forma de adaptar automáticamente el tamaño de los diálogos definidos en recursos a la resolución de pantalla? De esta forma, en resoluciones de pantalla altas se verían automáticamente ajustados a un tamaño más grande. Muchas gracias y feliz 2021
Adaptación del tamaño de los diálogos
Hola, el equipo de FW creo que está trabajado en eso. Sería una gran solución, hace tiempo la estoy esperando. Saludos
Adaptación del tamaño de los diálogos
[quote="D.Fernandez":22slfss3]Hola, el equipo de FW creo que está trabajado en eso. Sería una gran solución, hace tiempo la estoy esperando. Saludos[/quote:22slfss3] + 1 Salu2
Adaptive Server Ent.
Hi All, I'd like to know if anyone using SAP ASE in [x]Harbour + FiveWin? I am interested because my company will acquire SAP ECC and one of the option is using ASE as the database. Kind regards, Frances
Adaptive Server Ent.
Hi Anyone?
Adaptive Server Ent.
Frances, Give a look to adordd. You can work with it as any other rdd and/or with sql directly. There isnt any support for ASE although it supports other engines (Access, MySql, MsSql, etc). If you see any interest and you have con strings, field types,how autoincrement works it should be pretty easy to include in adordd support for it. Just an idea.
Adaptive Server Ent.
Hi Antonio, Thanks! I will look into it. Kind regards, Frances
Add 10 minutes to datetime()
How can I add 10minutes to a datetime() value? If I do datetime()+1, it add 1 day.
Add 10 minutes to datetime()
[code=fw:1s7usxpd]<div class="fw" id="{CB}" style="font-family: monospace;"><br />t := datetime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />t2 := t + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>/<span style="color: #000000;">24</span>/<span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span><br />? t,t2<br />&nbsp;</div>[/code:1s7usxpd]
Add 10 minutes to datetime()
Thank you. It's working fine.
Add Color to a Group Frame
To All How to I add Color to the Group Frame .. I can add color to the text .. but how can I make the frame stand out by defining it ( lets say ) White ?? I am also using the XPManifest if that makes any difference. Here is my Group Code: [code=fw:1yt78444]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> GROUP oGrp1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">of</span> oGrps<br />             oGrp1:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontB <span style="color: #000000;">&#41;</span><br />             oGrp1:<span style="color: #000000;">nClrText</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// blue</span><br /> </div>[/code:1yt78444] [img:1yt78444]http&#58;//i62&#46;tinypic&#46;com/30jmxki&#46;jpg[/img:1yt78444] Thanks Rick Lipkin
Add Color to a Group Frame
Rick, have a look at < TESTGROU.prg > in sample-folder. I think it will answer You question. ( my first time after 2 weeks in hospital, visiting the forum ) [img:1atvswwx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Group1&#46;jpg[/img:1atvswwx] best regards Uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Add Color to a Group Frame
Uwe, [quote="ukoenig":1p5vnwfj]( my first time after 2 weeks in hospital, visiting the forum )[/quote:1p5vnwfj] Hope you have had a good recovery! EMG
Add Color to a Group Frame
Uwe Unfortunately, I could not seem to adapt the code .. I made this change( added nClrPane ) , but the frame remained the same color with no change from my picture above <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Hope you are feeling better ! Rick Lipkin [code=fw:32jg7az9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> GROUP oGrp1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">of</span> oGrps<br />             oGrp1:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontB <span style="color: #000000;">&#41;</span><br />             oGrp1:<span style="color: #000000;">nClrText</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// blue</span><br />             oGrp1:<span style="color: #000000;">nClrPane</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// white</span><br /> </div>[/code:32jg7az9] ps .. I am also using SetDlgGradient(), which automatically sets the TransParent logical.
Add Color to a Group Frame
To All Here is the sample code .. please note that the Group Frame is all washed out and I have not been able to find the right combination to add color to the frame .. This only seems to occur with the XpManifest linked in .. Rick Lipkin [code=fw:3j1wy0hr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><br />Func Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oDlg,oGrp1,oGrp2,oFontB<br /><br />oFontB  := TFont<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: #ff0000;">"Ms Sans Serif"</span>,,<span style="color: #000000;">-6</span>,.F.,.T. ,,,,.F. <span style="color: #000000;">&#41;</span><br />SetDlgGradient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.01</span>,<span style="color: #000000;">9408399</span>,<span style="color: #000000;">14671839</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.01</span>,<span style="color: #000000;">14671839</span>,<span style="color: #000000;">9408399</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// light grey</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span><br /><br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> GROUP oGrp1 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">OF</span> oDlg<br />          oGrp1:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontB <span style="color: #000000;">&#41;</span><br />          oGrp1:<span style="color: #000000;">nClrText</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// blue</span><br />          oGrp1:<span style="color: #000000;">nClrPane</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// white</span><br /><br /><br />   @ <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span> GROUP oGrp2 <span style="color: #0000ff;">TO</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Second"</span> <span style="color: #0000ff;">OF</span> oDlg<br />          oGrp2:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontB <span style="color: #000000;">&#41;</span><br />          oGrp2:<span style="color: #000000;">nClrText</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// white</span><br />          oGrp2:<span style="color: #000000;">nClrPane</span> := nRgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// white</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFontB<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3j1wy0hr] WindowsXP.Manifest [code=fw:3j1wy0hr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"UTF-8"</span> standalone=<span style="color: #ff0000;">"yes"</span>?><br /><assembly xmlns=<span style="color: #ff0000;">"urn:schemas-microsoft-com:asm.v1"</span> manifestVersion=<span style="color: #ff0000;">"1.0"</span>><br /><assemblyIdentity<br />    version=<span style="color: #ff0000;">"1.0.0.0"</span><br />    processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />    <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveTech Software.FiveWin.32bits"</span><br />    type=<span style="color: #ff0000;">"win32"</span><br />/><br /><description>Your application description here.</description><br /><dependency><br />    <dependentAssembly><br />        <assemblyIdentity<br />            type=<span style="color: #ff0000;">"win32"</span><br />            <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"Microsoft.Windows.Common-Controls"</span><br />            version=<span style="color: #ff0000;">"6.0.0.0"</span><br />            processorArchitecture=<span style="color: #ff0000;">"X86"</span><br />            publicKeyToken=<span style="color: #ff0000;">"6595b64144ccf1df"</span><br />            language=<span style="color: #ff0000;">"*"</span><br />        /><br />    </dependentAssembly><br /></dependency><br /></assembly><br /> </div>[/code:3j1wy0hr] XpLook.Rc [code=fw:3j1wy0hr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Add this to your resources RC file</span><br /><br />#ifdef __FLAT__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">".<span style="color: #000000;">\W</span>indowsXP.Manifest"</span><br />#endif<br /> </div>[/code:3j1wy0hr]
Add Color to a Group Frame
Rick, Please move these lines to the ON INIT clause of the dialog: ACTIVATE DIALOG oDlg ; ON INIT ( oGrp1:SetFont( oFontB ), oGrp1:nClrText := nRgb( 7,7,224 ), oGrp1:nClrPane := nRgb( 255,255,255 ) ) Better if you use Method SetColor(): ACTIVATE DIALOG oDlg ; ON INIT ( oGrp1:SetFont( oFontB ), oGrp1:SetColor( nRgb( 7,7,224 ), nRgb( 255,255,255 ) ) )
Add Color to a Group Frame
Dear Uwe, Glad to know you are fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Add Color to a Group Frame
Antonio I removed the oGrp1 lines and added your second INIT line to my above example .. and the frame stayed the same color .. only the text changed Blue on White <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Again, this behavior seems to only happen with the XpManifest. Rick Lipkin [img:2hpqfgox]http&#58;//i62&#46;tinypic&#46;com/fmrric&#46;jpg[/img:2hpqfgox]
Add Color to a Group Frame
Rick, Surely with the manifest we are not allowed to change its color