topic
stringlengths
1
63
text
stringlengths
1
577k
se nos fue Ignacio Vizcaino Tapia
se nos adelanto, en Ciudad de Mexico don Ignacio Vizcaino Tapia un gran programador clipper Harbour Fwh padre del erp CressWin y excelente persona cuando le hice consulta jamás me negó sus conocimientos, era aficionado a la aviación y la avioneta que piloteaba se precipito a tierra PAZ en su tumba y un hasta luego Nacho !! un fuerte abrazo a sus familiares
se nos fue Ignacio Vizcaino Tapia
Caramba, No tuve el gusto de conocerlo pero siempre es lamentable la pérdida de un colega, QEPD Un abrazo a su familia y pronta resignación
se nos fue Ignacio Vizcaino Tapia
Ignacio: vuela alto a la morada del Señor. Paz en su descanso eterno y fortaleza a su familia.
se nos fue Ignacio Vizcaino Tapia
Mis sentido pésame a la familia Q.E.P.D.
se nos fue Ignacio Vizcaino Tapia
Q.E.P.D colega Resignación y fortaleza a su familia.
se nos fue Ignacio Vizcaino Tapia
RIP Colega, Dios dales Fuerza a la familia! salu2
se nos fue Ignacio Vizcaino Tapia
Descanse en paz Gracias por todo
se nos fue Ignacio Vizcaino Tapia
Descanse en Paz. El Señor lo tenga en su Gloria
se nos fue Ignacio Vizcaino Tapia
Acompaño a sus familia y amigos en el sentimiento de la perdida de un ser querido. Aunque no lo conociera personalmente, estoy seguro que era una gran persona si intervenía en este foro. Que su alma descanse en PAZ.
se nos fue Ignacio Vizcaino Tapia
D.E.P amigo.
se nos fue Ignacio Vizcaino Tapia
Descance en paz Ignacio Vizcaino Lamentable su fallecimiento. Fortaleza a su familia y amigos
se nos fue Ignacio Vizcaino Tapia
Triste noticia y circunstancias. Todo el consuelo para su familia, y mis respetos.
se nos fue Ignacio Vizcaino Tapia
Mis más sentidas condolencias para toda su familia y amigos
se nos fue Ignacio Vizcaino Tapia
D.E.P. mi más sentido pésame a la familia y amigos , el tiempo pasa y de ese lance no nos libraremos nadie. Jose Enviado desde mi Lenovo TB-J606F mediante Tapatalk
se nos fue Ignacio Vizcaino Tapia
Terrible, pobre familia. Fuerte abrazo para ellos!
se nos fue Ignacio Vizcaino Tapia
mi más sentido pésame a la familia y amigos
se nos fue Ignacio Vizcaino Tapia
QEPD CRESWIN
se nos fue Ignacio Vizcaino Tapia
QEPD, abrazo y consuelo a la flia.
se nos fue Ignacio Vizcaino Tapia
Ignacio, que la tierra te sea leve !!!!
se nos fue Ignacio Vizcaino Tapia
Q.E.P.D. mis condolencias a la familia.
se puede habilitar software
Estimados, me piden construir un programa que pueda usar un dispositivo de capturador de datos.. codigo de barras, se puede crear una aplicacion en fhw para Windows Mobile 6.5. Atte.,
se puede habilitar software
El uso de un lector de codigos de barra es transparente para Fivewin, es decir, solo necesitas definir un get y lo que leas con el lector aparecerá en el get exactamente igual que si lo hubieras tecleado
se puede habilitar software
Gracias, mi pregunta era si este equipo con esta versión de windows, soportaría y ejecutaría una aplicación hecha en FWH 13.2, con xHarbour.. sobre windows 7... se podrá en esta versión.. o hay que hacer algo especial.
se puede habilitar software
Creo recordar que mis primeras pruebas con lectores de codigos de barra fueron con una version bastante anterior a la que comentas
se puede habilitar software
Maestro para Windows Mobile 6.5? Saludos.
se puede habilitar software
Joao, creo que si funcionaría siempre que el driver y el lector esté correctamente instalado
se puede habilitar software
Con Escritorio Remoto!! haces una aplicación con las pantallas ajustadas al visor y listo!! Ejemplos: Este aparato tiene Windows CE 6.2 y un lector de codigo de barras 2-D, funciona perfectamente y veloz. [url=https://postimages.org/:jk6gf7ks][img:jk6gf7ks]https://s26.postimg.org/owf49yt21/IMG-20160621-_WA0001.jpg[/img:jk6gf7ks][/url:jk6gf7ks] [url=https://postimages.org/:jk6gf7ks][img:jk6gf7ks]https://s26.postimg.org/j9irchqjd/IMG-20160711-_WA0002.jpg[/img:jk6gf7ks][/url:jk6gf7ks] [url=https://postimages.org/:jk6gf7ks][img:jk6gf7ks]https://s26.postimg.org/gtgxyn8gp/IMG-20160711-_WA0003.jpg[/img:jk6gf7ks][/url:jk6gf7ks] si necesitas alguna ayuda con gusto la proporcionare... Saludos
se puede habilitar software
Nuestro producto FWPPC para Windows CE / Windows Mobile usa Harbour 3.4 y un FiveWin especialmente adaptado que no se corresponde con FWH 17.07, pero que te servirá correctamente para lo que necesitas hacer
se puede habilitar software
Estimado Armando, este es el sistema operativo del dispositivo que necesito trabajar, me habías comentado que lo has trabajado, favor de poder darme una idea o escuchar tu experiencia al respecto. Windows Embedded Handheld 6.5 Professional
se puede buscar archivo en red?
que tal amigos, solicitando su ayuda una vez mas, en esta ocasion me gustaria saber si es posible buscar automaticamente un archivo especifico dentro de mi red local, es decir, sin la intervencion de ningun dialogo como cgetfile32 o cgetdir32... gracias de antemano y un saludo. Alex.
se puede buscar archivo en red?
Si Amigo....es posible ! Usted podes, mapear la unidade via codigo....e ir directamente para la Carpeta donde se encontra el Archivo. [code:2jm19v9h] IF !File("S:\SB_SISTEMAS\Gerenciador\SB_Dados\*.dbf") MSGRUN( "Conectando ao Servidor de Arquivos... ", ; "Aguarde Um Momento, Por Favor! ", ; { || CONECTA_SERVIDOR() } ) ENDIF [/code:2jm19v9h] [code:2jm19v9h] ********************************************************************************************************** STATIC FUNCTION CONECTA_SERVIDOR() //-> Conecta a Rede ********************************************************************************************************** //->Memory(-1) /*limpia arreglo y llama al colecor de basura de xharbour*/ hb_gcAll() WNetAddCon( "\\TERMINAL01\C\SB_SISTEMAS\Gerenciador\SB_Dados,,"S:" ) SysWait(1) RETURN NIL ********************************************************************************************************** FUNCTION DESCONECTA_SERVIDOR() //-> Desconecta a Rede ********************************************************************************************************** //->Memory(-1) /*limpia arreglo y llama al colecor de basura de xharbour*/ hb_gcAll() wNetDelConnection( "S:", .T. ) SysWait(1) RETURN NIL [/code:2jm19v9h] Saluds
se puede comparar dos ARRAY multidimensionales?
Eso.
se puede comparar dos ARRAY multidimensionales?
[code=fw:111kphta]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> a1 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> a2 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> hb_ValToExp<span style="color: #000000;">&#40;</span> a1 <span style="color: #000000;">&#41;</span> == hb_ValToExp<span style="color: #000000;">&#40;</span> a2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:111kphta]
se puede en un SELECT insertar un IF?
Hola. Tengo una tabla con dos campos: cCampo1 que tiene un id cCampo2 un string que puede contener: 111 011 000 101 y quiero hacer un select sobre esta tabla pero que solo me devuelva los que en la posicion 2 del cCampo2 contenga un "1", o sea: 111 011 Se puede hacer eso en un select? gracias.
se puede en un SELECT insertar un IF?
algo asi: [code=fw:maufp2u7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">select</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>promedio><span style="color: #000000;">5</span>,<span style="color: #ff0000;">'Aprobado'</span>,<span style="color: #ff0000;">'Desaprobado'</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">from</span> notas<br />&nbsp;</div>[/code:maufp2u7] Salu2
se puede en un SELECT insertar un IF?
Un ejemplo usando IF y WHEN, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:gi5sgr8n]<div class="fw" id="{CB}" style="font-family: monospace;">cQryCerti := <span style="color: #ff0000;">"SELECT *, CASE certi_status WHEN 0 THEN 'Anulado' "</span> +;<br />      <span style="color: #ff0000;">"WHEN 1 THEN 'Pendiente' WHEN 2 THEN 'Retornado' "</span> +;<br />      <span style="color: #ff0000;">"WHEN 3 THEN 'En Mora' END AS cEstado, "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_1 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'PRIMERO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_2 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'SEGUNDO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_3 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'TERCERO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_4 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'CUARTO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_5 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'QUINTO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_6 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'SEXTO', "</span> +;<br />      <span style="color: #ff0000;">"IF(certi_7 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">", 'SEPTIMO', ''))))))) AS posicion FROM piramide_certificados "</span> +;<br />      <span style="color: #ff0000;">"WHERE"</span> +;<span style="color: #B900B9;">//(certi_status = 1 OR certi_status = 3) AND" +;</span><br />      <span style="color: #ff0000;">" (certi_1 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_2 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_3 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_4 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_5 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_6 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" OR"</span> +;<br />      <span style="color: #ff0000;">" certi_7 = "</span> + ClipValue2SQL<span style="color: #000000;">&#40;</span> Val2Escape<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">parti_cedula</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">") "</span> +;<br />      <span style="color: #ff0000;">"ORDER BY certi_fecha_impresion"</span> <span style="color: #B900B9;">// 0=Anulado, 1=Vendido, 2=Retornado, 3=En Mora</span></div>[/code:gi5sgr8n]
se puede en un SELECT insertar un IF?
(Y)
se puede en un SELECT insertar un IF?
Hola, dependiendo el DBMS puedes hacer algo asi SELECT * FROM tabla WHERE substr( campo2, 2, 1 ) = '1' revisa la función equivalente a substr del DBMS que estés utilizando, en MySQL SUBSTRING(str,pos,len) pero creo que SUBSTR es un sinónimo saludos Marcelo
se puede en un SELECT insertar un IF?
Hola... SELECT * FROM TUTABLA WHERE SUBSTRING(CAMPO2,2,1) LIKE "1" Eso debería salir con fritas!!
se puede en un SELECT insertar un IF?
perfecto! y salio nomas. gracias.
se puede hacer un COMBOBOX automatico?
Hola a todos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Se puede hacer que un conbobox se abra la lista de los datos que reciba de una busqueda <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> para que el usuario no tenga que darle clik al COMBOBOX y si se puede que tengo que hacer Gracias Aida <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
se puede hacer un COMBOBOX automatico?
Nadie después de todo este tiempo tiene alguna sugerencia ?
se puede hacer un COMBOBOX automatico?
Aida, [code=fw:nnzkxsda]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oComboBox:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span></div>[/code:nnzkxsda]
se puede hacer un COMBOBOX automatico?
[quote="Antonio Linares":11wth4b2]Aida, [code=fw:11wth4b2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />   <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oComboBox:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span></div>[/code:11wth4b2][/quote:11wth4b2] Si funciono gracias <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> [code=fw:11wth4b2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> xNnobre <span style="color: #0000ff;">VAR</span> xcCoVER <span style="color: #0000ff;">ITEMS</span> xaCoVER   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> osof  <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>listasC<span style="color: #000000;">&#40;</span> xcCoVER <span style="color: #000000;">&#41;</span>,xxaCoVER:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>,xxNnobre:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:11wth4b2]
se puede leer un archivo de excel desde fivewin
lo que pasa es que el usuario va a usar la hoja de excel a manera de base de datos y no la quiere estar grabando como texto o dbf por eso quiero saber si puede leer dos columna directamente desde fivewin y porocesarlas con la clase tfilexls, gracias
se puede leer un archivo de excel desde fivewin
Puedes abrir un archivo Excel con fivewin (libreria Ole2) y actualizar los datos de la hoja con la información del programa.
se puede leer un archivo de excel desde fivewin
saludos y gracias, ya probe la ole que me recominedas pero al parecer solo sirve para office 97, abra alguna para officed XP y 2003, gracias
se puede leer un archivo de excel desde fivewin
OLE debe de poder funcionar en todos los Office, al menos claro, que no hayas instalado todos los componentes en el disco duro.
se puede leer un archivo de excel desde fivewin
como saber si la tengo completa, me la podrias mandar, gracias
se puede leer un archivo de excel desde fivewin
Lo que tienes que revisar es que Office este instalado completamente en el disco duro. Cuando instalas office tienes oportunidad de quitar o agregar componentes, lo que tienes que mirar es que TODO Office este instalado con la opcion, INTALAR TODO EN EL DISCO DURO que te pone al momento de hacer la instalacion.
se puede leer un archivo de excel desde fivewin
lo siento pense te referias a si tenia toda la clase OLE no del office
se puede poner un scroll a un dialogo?
se puede poner un scroll a un dialogo u obligatoriamente tiene que ser un window, he probado con oDlg:oVScroll := .T. y nada gracias de antemano
se puede poner un scroll a un dialogo?
En Fivewin Brasil hay una clase para ese tema. Saludos
se puede poner un scroll a un dialogo?
Puedes usar WS_VSCROLL en el estilo del recurso y luego con cierto código conseguir el desplazamiento vertical del contenido del diálogo. Pero es más práctico usar un folder que obligar al usuario a desplazarse verticalmente
se puede poner un scroll a un dialogo?
¿Y como se hace? Con código y con folder.Gracias.
se puede poner un scroll a un dialogo?
Buenas tardes,Tengo en mi pc una clase TScrDlg de Eric Yang que, la verdad, no recuerdo de donde bajé. pero funciona bién[code:16rdpuyf] // Testing how to scroll a dialog with its contents #include "FiveWin&#46;ch" #define D_WIDTH 4 #define D_HEIGHT 13 FUNCTION Main&#40;&#41; LOCAL oDlg LOCAL cGet0101 &#58;= space&#40;10&#41;, ; //Row 1 cGet0102 &#58;= space&#40;10&#41;, ; cGet0103 &#58;= space&#40;10&#41;, ; cGet0104 &#58;= space&#40;10&#41;, ; cGet0105 &#58;= space&#40;10&#41;, ; cGet0201 &#58;= space&#40;10&#41;, ; //Row 2 cGet0202 &#58;= space&#40;10&#41;, ; cGet0203 &#58;= space&#40;10&#41;, ; cGet0204 &#58;= space&#40;10&#41;, ; cGet0205 &#58;= space&#40;10&#41;, ; cGet0301 &#58;= space&#40;10&#41;, ; //Row 3 cGet0302 &#58;= space&#40;10&#41;, ; cGet0303 &#58;= space&#40;10&#41;, ; cGet0304 &#58;= space&#40;10&#41;, ; cGet0305 &#58;= space&#40;10&#41;, ; cGet0401 &#58;= space&#40;10&#41;, ; //Row 4 cGet0402 &#58;= space&#40;10&#41;, ; cGet0403 &#58;= space&#40;10&#41;, ; cGet0404 &#58;= space&#40;10&#41;, ; cGet0405 &#58;= space&#40;10&#41;, ; cGet0501 &#58;= space&#40;10&#41;, ; //Row 5 cGet0502 &#58;= space&#40;10&#41;, ; cGet0503 &#58;= space&#40;10&#41;, ; cGet0504 &#58;= space&#40;10&#41;, ; cGet0505 &#58;= space&#40;10&#41;, ; cGet0601 &#58;= space&#40;10&#41;, ; //Row 6 cGet0602 &#58;= space&#40;10&#41;, ; cGet0603 &#58;= space&#40;10&#41;, ; cGet0604 &#58;= space&#40;10&#41;, ; cGet0605 &#58;= space&#40;10&#41;, ; cGet0701 &#58;= space&#40;10&#41;, ; //Row 7 cGet0702 &#58;= space&#40;10&#41;, ; cGet0703 &#58;= space&#40;10&#41;, ; cGet0704 &#58;= space&#40;10&#41;, ; cGet0705 &#58;= space&#40;10&#41;, ; cGet0801 &#58;= space&#40;10&#41;, ; //Row 8 cGet0802 &#58;= space&#40;10&#41;, ; cGet0803 &#58;= space&#40;10&#41;, ; cGet0804 &#58;= space&#40;10&#41;, ; cGet0805 &#58;= space&#40;10&#41;, ; cGet0901 &#58;= space&#40;10&#41;, ; //Row 9 cGet0902 &#58;= space&#40;10&#41;, ; cGet0903 &#58;= space&#40;10&#41;, ; cGet0904 &#58;= space&#40;10&#41;, ; cGet0905 &#58;= space&#40;10&#41;, ; cGet1001 &#58;= space&#40;10&#41;, ; //Row 10 cGet1002 &#58;= space&#40;10&#41;, ; cGet1003 &#58;= space&#40;10&#41;, ; cGet1004 &#58;= space&#40;10&#41;, ; cGet1005 &#58;= space&#40;10&#41;, ; cGet1101 &#58;= space&#40;10&#41;, ; //Row 11 cGet1102 &#58;= space&#40;10&#41;, ; cGet1103 &#58;= space&#40;10&#41;, ; cGet1104 &#58;= space&#40;10&#41;, ; cGet1105 &#58;= space&#40;10&#41; define dialog oDlg from 0, 0 TO 25, 70 ; title "Scroll dialog" ; Style nor&#40; WS_VSCROLL, WS_HSCROLL &#41; @ 9,17 bitmap file "&#46;&#46;\bitmaps\pic1&#46;bmp" of oDlg size 120,148 adjust @ 9,32 bitmap file "&#46;&#46;\bitmaps\pic2&#46;bmp" of oDlg size 120,148 adjust @ 9,47 bitmap file "&#46;&#46;\bitmaps\pic3&#46;bmp" of oDlg size 120,148 adjust @ 9,62 bitmap file "&#46;&#46;\bitmaps\pic4&#46;bmp" of oDlg size 120,148 adjust @ 9,77 bitmap file "&#46;&#46;\bitmaps\pic5&#46;bmp" of oDlg size 120,148 adjust @ 21*13,02*8 say "Customer " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 23*13,02*8 say "P&#46;O&#46; # " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 25*13,02*8 say "Style No&#46;" of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 27*13,02*8 say "Fabrics " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 29*13,02*8 say "Fob " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 31*13,02*8 say "Q'TY " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 33*13,02*8 say "DEL&#46; " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 35*13,02*8 say "MAKER " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 37*13,02*8 say "QTA " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 39*13,02*8 say "SIZE " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 41*13,02*8 say "Size B/D " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 43*13,02*8 say "REMARKS " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,17*8 say "Venture " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,32*8 say "Sears " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,47*8 say "Kohl's " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,62*8 say "Kiss " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,77*8 say "K-MART " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel //-* Row 1 @ 23*13,17*8 get cGet0101 size 120,26 of oDlg update pixel @ 23*13,32*8 get cGet0102 size 120,26 of oDlg update pixel @ 23*13,47*8 get cGet0103 size 120,26 of oDlg update pixel @ 23*13,62*8 get cGet0104 size 120,26 of oDlg update pixel @ 23*13,77*8 get cGet0105 size 120,26 of oDlg update pixel //-* Row 2 @ 25*13,17*8 get cGet0201 size 120,26 of oDlg update pixel @ 25*13,32*8 get cGet0202 size 120,26 of oDlg update pixel @ 25*13,47*8 get cGet0203 size 120,26 of oDlg update pixel @ 25*13,62*8 get cGet0204 size 120,26 of oDlg update pixel @ 25*13,77*8 get cGet0205 size 120,26 of oDlg update pixel //-* Row 3 @ 27*13,17*8 get cGet0301 size 120,26 of oDlg update pixel @ 27*13,32*8 get cGet0302 size 120,26 of oDlg update pixel @ 27*13,47*8 get cGet0303 size 120,26 of oDlg update pixel @ 27*13,62*8 get cGet0304 size 120,26 of oDlg update pixel @ 27*13,77*8 get cGet0305 size 120,26 of oDlg update pixel //-* Row 4 @ 29*13,17*8 get cGet0401 size 120,26 of oDlg update pixel @ 29*13,32*8 get cGet0402 size 120,26 of oDlg update pixel @ 29*13,47*8 get cGet0403 size 120,26 of oDlg update pixel @ 29*13,62*8 get cGet0404 size 120,26 of oDlg update pixel @ 29*13,77*8 get cGet0405 size 120,26 of oDlg update pixel //-* Row 5 @ 31*13,17*8 get cGet0501 size 120,26 of oDlg update pixel @ 31*13,32*8 get cGet0502 size 120,26 of oDlg update pixel @ 31*13,47*8 get cGet0503 size 120,26 of oDlg update pixel @ 31*13,62*8 get cGet0504 size 120,26 of oDlg update pixel @ 31*13,77*8 get cGet0505 size 120,26 of oDlg update pixel //-* Row 6 @ 33*13,17*8 get cGet0601 size 120,26 of oDlg update pixel @ 33*13,32*8 get cGet0602 size 120,26 of oDlg update pixel @ 33*13,47*8 get cGet0603 size 120,26 of oDlg update pixel @ 33*13,62*8 get cGet0604 size 120,26 of oDlg update pixel @ 33*13,77*8 get cGet0605 size 120,26 of oDlg update pixel //-* Row 7 @ 35*13,17*8 get cGet0701 size 120,26 of oDlg update pixel @ 35*13,32*8 get cGet0702 size 120,26 of oDlg update pixel @ 35*13,47*8 get cGet0703 size 120,26 of oDlg update pixel @ 35*13,62*8 get cGet0704 size 120,26 of oDlg update pixel @ 35*13,77*8 get cGet0705 size 120,26 of oDlg update pixel //-* Row 8 @ 37*13,17*8 get cGet0801 size 120,26 of oDlg update pixel @ 37*13,32*8 get cGet0802 size 120,26 of oDlg update pixel @ 37*13,47*8 get cGet0803 size 120,26 of oDlg update pixel @ 37*13,62*8 get cGet0804 size 120,26 of oDlg update pixel @ 37*13,77*8 get cGet0805 size 120,26 of oDlg update pixel //-* Row 9 @ 39*13,17*8 get cGet0901 size 120,26 of oDlg update pixel @ 39*13,32*8 get cGet0902 size 120,26 of oDlg update pixel @ 39*13,47*8 get cGet0903 size 120,26 of oDlg update pixel @ 39*13,62*8 get cGet0904 size 120,26 of oDlg update pixel @ 39*13,77*8 get cGet0905 size 120,26 of oDlg update pixel //-* Row 10 @ 41*13,17*8 get cGet1001 size 120,26 of oDlg update pixel @ 41*13,32*8 get cGet1002 size 120,26 of oDlg update pixel @ 41*13,47*8 get cGet1003 size 120,26 of oDlg update pixel @ 41*13,62*8 get cGet1004 size 120,26 of oDlg update pixel @ 41*13,77*8 get cGet1005 size 120,26 of oDlg update pixel //-* Row 11 @ 43*13,17*8 get cGet1101 size 120,26 of oDlg update pixel @ 43*13,32*8 get cGet1102 size 120,26 of oDlg update pixel @ 43*13,47*8 get cGet1103 size 120,26 of oDlg update pixel @ 43*13,62*8 get cGet1104 size 120,26 of oDlg update pixel @ 43*13,77*8 get cGet1105 size 120,26 of oDlg update pixel @ 50,20 button "&Ok" size 80,20 of oDlg ; action &#40;MsgInfo&#40;"You click OK button!"&#41;,oDlg&#58;End&#40;&#41;&#41; @ 50,40 button "&Cancel" size 80,20 of oDlg ; action &#40;MsgInfo&#40;"You click Cancel button!"&#41;,oDlg&#58;End&#40;&#41;&#41; ACTIVATE dialog oDlg ; ON INIT &#40; TScrDlg&#40;&#41;&#58;New&#40;oDlg,1,40,1,70&#41; &#41; RETURN&#40; NIL &#41; //============================================================================ // FileName &#58; SCROLL&#46;PRG // Purpose &#58; dialog Scroll Class // Author &#58; Eric Yang // Update History &#58; // Date Contents // ---------- --------------------------------------------------------------- // 1997&#46;02&#46;01 // //============================================================================ #include "FiveWin&#46;ch" #ifndef TRUE #define TRUE &#46;T&#46; #define FALSE &#46;F&#46; #endif CLASS TScrDlg DATA oDlg DATA nVPos,nHPos METHOD New&#40; oDlg,nV1,nV2,nH1,nH2 &#41; CONSTRUCTOR METHOD SetScroll&#40; nV1,nV2,nH1,nH2 &#41; //-*------------------------------------------------------------ METHOD VScroll&#40;&#41; METHOD VScrollThumb&#40;&#41; METHOD VScrollTrack&#40;&#41; METHOD VScrollPgDown&#40;&#41; METHOD VScrollPgUp&#40;&#41; //-*----------------------------- METHOD HScroll&#40;&#41; METHOD HScrollThumb&#40;&#41; METHOD HScrollTrack&#40;&#41; METHOD HScrollPgDown&#40;&#41; METHOD HScrollPgUp&#40;&#41; ENDCLASS METHOD New&#40; oDlg,nV1,nV2,nH1,nH2 &#41; CLASS TScrDlg &#58;&#58;nVPos &#58;= 0 &#58;&#58;nHPos &#58;= 0 &#58;&#58;oDlg &#58;= oDlg &#58;&#58;SetScroll&#40; nV1,nV2,nH1,nH2 &#41; RETURN Self METHOD SetScroll&#40; nV1,nV2,nH1,nH2 &#41; CLASS TScrDlg LOCAL aCoors1&#58;=&#123;&#125;,aCoors2&#58;=&#123;&#125; //-------------------------------------------------- //-* Vertical Scroll Bar // ? &#58;&#58;oDlg&#58;oVSCroll=NIL if &#58;&#58;oDlg&#58;oVScroll != NIL // ? nV1,nV2 &#58;&#58;oDlg&#58;oVScroll&#58;SetRange&#40; nV1,nV2 &#41; &#58;&#58;nVPos &#58;= &#58;&#58;oDlg&#58;oVScroll&#58;GetPos&#40;&#41; &#58;&#58;oDlg&#58;oVScroll&#58;bGoDown &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoUp &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bPageUp &#58;= &#123;|| &#58;&#58;VScrollPgUp&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bPageDown &#58;= &#123;|| &#58;&#58;VScrollPgDown&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoTop &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoBottom &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep &#58;= 10 //&#58;&#58;oDlg&#58;oVScroll&#58;lReDraw &#58;= TRUE &#58;&#58;oDlg&#58;oVScroll&#58;bPos &#58;= &#123;|nPos| &#58;&#58;VScrollThumb&#40;nPos&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bTrack &#58;= &#123;|nPos| &#58;&#58;VScrollTrack&#40;nPos&#41; &#125; endif //-------------------------------------------------- //-* Horizontal Scroll Bar if &#58;&#58;oDlg&#58;oHScroll != NIL &#58;&#58;oDlg&#58;oHScroll&#58;SetRange&#40; nH1,nH2 &#41; &#58;&#58;nHPos &#58;= &#58;&#58;oDlg&#58;oHScroll&#58;GetPos&#40;&#41; &#58;&#58;oDlg&#58;oHScroll&#58;bGoDown &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoUp &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bPageUp &#58;= &#123;|| &#58;&#58;HScrollPgUp&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bPageDown &#58;= &#123;|| &#58;&#58;HScrollPgDown&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoTop &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoBottom &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep &#58;= 10 //&#58;&#58;oDlg&#58;oHScroll&#58;lReDraw &#58;= TRUE &#58;&#58;oDlg&#58;oHScroll&#58;bPos &#58;= &#123;|nPos| &#58;&#58;HScrollThumb&#40;nPos&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bTrack &#58;= &#123;|nPos| &#58;&#58;HScrollTrack&#40;nPos&#41; &#125; endif //&#58;&#58;oDlg&#58;bKeyChar &#58;= &#123;|nKey,nFlags| ScrollKey&#40;nKey&#41; &#125; //-------------------------------------------------- RETURN&#40; NIL &#41; //STATIC FUNCTION ScrollKey&#40;nKey&#41; //MsgInfo&#40; "Key &#58; "+str&#40;nKey,10&#41; &#41; //if nKey == K_ENTER // goMainDlg&#58;End&#40;&#41; // lRetVal &#58;= TRUE //endif //RETURN&#40; NIL &#41; //================================================================= //-* Vertical Scroll Bar METHOD VScroll&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax nNewPos &#58;= &#58;&#58;oDlg&#58;oVScroll&#58;GetPos&#40;&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos-nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollThumb&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax &#58;&#58;oDlg&#58;oVScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40;&#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollTrack&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax &#58;&#58;oDlg&#58;oVScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40;&#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollPgDown&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos < &#58;&#58;oDlg&#58;oVScroll&#58;nMax nNewPos &#58;= &#58;&#58;nVPos + &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos > &#58;&#58;oDlg&#58;oVScroll&#58;nMax, &#58;&#58;oDlg&#58;oVScroll&#58;nMax, nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollPgUp&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos > &#58;&#58;oDlg&#58;oVScroll&#58;nMin nNewPos &#58;= &#58;&#58;nVPos - &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos < &#58;&#58;oDlg&#58;oVScroll&#58;nMin,&#58;&#58;oDlg&#58;oVScroll&#58;nMin,nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; //================================================================= //-* Horizontal Scroll Bar METHOD HScroll&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax nNewPos &#58;= &#58;&#58;oDlg&#58;oHScroll&#58;GetPos&#40;&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollThumb&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax &#58;&#58;oDlg&#58;oHScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollTrack&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax &#58;&#58;oDlg&#58;oHScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollPgDown&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos < &#58;&#58;oDlg&#58;oHScroll&#58;nMax nNewPos &#58;= &#58;&#58;nHPos + &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos > &#58;&#58;oDlg&#58;oHScroll&#58;nMax, &#58;&#58;oDlg&#58;oHScroll&#58;nMax, nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40; &#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollPgUp&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos > &#58;&#58;oDlg&#58;oHScroll&#58;nMin nNewPos &#58;= &#58;&#58;nHPos - &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos < &#58;&#58;oDlg&#58;oHScroll&#58;nMin,&#58;&#58;oDlg&#58;oHScroll&#58;nMin,nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40; &#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; //=* End of File ================================================= procedure AppSys // Xbase++ requirement return [/code:16rdpuyf]Espero sea lo que buscan.Saludos.Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
se puede poner un scroll a un dialogo?
La he probado con un dialogo desde recursos y no me funciona¿Como se hace con un folder?
se puede poner un scroll a un dialogo?
JM,Funciona bien desde recursos (lo uso con DLL)Primero debes crear la dll con el dialog y los controles a usar dentro.Luego prueba reformar el código que mandé antes.[code:251ngdtl] // Testing how to scroll a dialog with its contents #include "FiveWin&#46;ch" #define D_WIDTH 4 #define D_HEIGHT 13 FUNCTION Main&#40;&#41; LOCAL oDlg set resources to 'scroll&#46;dll' define dialog oDlg resource "scroll" * AQUÍ DEBES UBICAR LOS CONTROLES DEL DIALOG ACTIVATE dialog oDlg ; ON INIT &#40; TScrDlg&#40;&#41;&#58;New&#40;oDlg,1,40,1,70&#41; &#41; RETURN&#40; NIL &#41; [/code:251ngdtl]Esto, que lo básico, funciona correctamente.Obviamente que deberás incluirles los VScroll y HScroll al Dialog en la DLL.Saludos.Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
se puede poner un scroll a un dialogo?
Quiero entender que el dialogo en el recurso (DLL o RC) solo ha de ser la "caja" y los VScroll y HScroll.Los controles se han de poner en el código fuente del programa.¿Es así?
se puede poner un scroll a un dialogo?
Buen día,Yo lo uso así:Creo el dialog del tamaño máximo que quiero tenga (ej. 500 x 500) y le pongo los controles en los lugares que necesite.Luego de hecho esto, en el dialogo de PROPIEDADES (uso PELLES-C), achico el tamaño del dialog poniendole los valores 200 x 200.Estos valores 200 x 200 son las dimensiones que realmente quiero visualizar de mi dialog. Como le definí VSCROll y HSCROLL, al usar el dialog desde mi aplicación, cuando uso los hscroll y/o vscroll, desplazo hasta que aparecen los controles.Espero haberme explicado. Si no, puedo enviarte algún ejemplo.Saludos.Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
se puede poner un scroll a un dialogo?
¡¡¡ Ya me funciona !!!En el RC acortado el tamaño al deseado, ponerle Vscroll y Hscroll, rellenarlo de los controles apropiados y en el ON INIT del Dialogo lo explicado, el tamaño máximo deseado de desplazamiento.Ahora me encuentro con un problema:Cuando "cojo" el cursos para deslizar la ventana (arriba/abajo y/o izquierda/derecha) se me detiene la ejecución del programa.El programa tiene que estar constantemente "inyectando" tramas de datos al lan y no se puede parar... ¿Alguna idea?Y como me esta gustando la idea desearía poner un botón para expandir al máximo ese dialogo o contraer. Es decir ¿Como cambio el tamaño de un dialogo en tiempo de ejecución?
se puede poner un scroll a un dialogo?
JM,oDlg:SetSize( nWidth, nHeight )o por separado:oDlg:nWidth = nNewWidthoDlg:nHeight = nNewHeight
se puede poner un scroll a un dialogo?
[quote="JmGarcia":1pfnlm2v]Ahora me encuentro con un problema: Cuando "cojo" el cursor para deslizar la ventana (arriba/abajo y/o izquierda/derecha) se me detiene la ejecución del programa. El programa tiene que estar constantemente "inyectando" tramas de datos al lan y no se puede parar... ¿Alguna idea?[/quote:1pfnlm2v]Y algún remedio para esto...
se puede poner un scroll a un dialogo?
JM,Prueba a llamar a SysRefresh() para que Windows procese los mensajes pendientes.
se puede poner un scroll a un dialogo?
[quote="Antonio Linares":2y1d0avx]Prueba a llamar a SysRefresh() para que Windows procese los mensajes pendientes.[/quote:2y1d0avx]Nada, por mas SysRefresh() que pongo siempre que pincho en los deslizadores de los scrolls se detiene.En el código fuente expuesto:[code:2y1d0avx]define dialog oDlg from 0, 0 TO 25, 70 ; title "Scroll dialog" ; Style nor&#40; WS_VSCROLL, WS_HSCROLL &#41;[/code:2y1d0avx]Se ponen los scrolls, pues bien; en tiempo dejecución como los QUITO y los PONGO.Y una mas: ¿ Puede un dialogo tener SYSMENU (como la window) ?
se puede? tener mas de 1 timer
que tal amigos, espero se encuentren muy bien...tengo un pequeño problemita con un programa de monitoreo que maneja dos timers uno que ejecuta una accion cada segundo (reloj) y otro que se ejecuta cada minuto. El problema es que despues de unos 10 u 8 minitos de estar ejecutando el programa se queda congelado y no responde y tengo que "tronarlo" con CRTL+ALT+SUPR.tengo un programa de reloj checador y funciona sin problema solo que eso solo maneja 1 timer.entonces mi duda es si el tener mas de 1 timer provoca el error. ayuuuuda!! <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> saludosalex.
se puede? tener mas de 1 timer
Yo tengo un utilidad donde corren 2 timers y de momento no he tenido problemas, eso si, lo que tengo puesto es que si mientras uno esta realizando una accion, el otro no puede hacerla hasta que el otro termine.Ejemplo.STATIC lProcess := .F.Function Accion_Timer1() if !lProcess lProcess := .T. < hago lo que quiero> lProcess := .F. endifreturn nilFunction Accion_Timer2() if !lProcess lProcess := .T. < hago lo que quiero> lProcess := .F. endifreturn nilYo lo tengo asi por una serie de cuestiones, demasiado complicado de explicar, pero quizás este te solucione el tema.
se pueden abrir indices?
que tal amigos, pues como lo dice el titulo se pueden abrir indices? uso WINCE ver 5.00 este es mi codigo : dbusearea(.t.,,xruta+'IHISPEDD','PEDD',.t.,.t.) PEDC->(ordsetfocus("EMBARQUE")) al hacer dbseek me dice que no hay indice activo <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> que estoy haciendo mal?
se pueden abrir indices?
Alex: forzosamente tienes que incluri CURDIR() en la ruta de tu archivo DBF DbUseArea(.T.,,curdir()+"\"+xRuta) eso si las abres dentro del pocket PC Si las abres fuera, debes de indicar la ruta por la UNC, es decir: \\servidor\recursocompatido\carpeta\archivo dbf.
se pueden editar campos numericos con fwh2.4 y harbour 43
me da error al intentar editar campos numericos en los GETs, aguien sabe que hago mal o si realmente hay que pasar los datos a texto, gracias
se pueden editar campos numericos con fwh2.4 y harbour 43
Tienes que actualizarte a una versión más reciente de Harbour. Puedes descargarla desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour.exe">www.fivetechsoft.com/files/harbour.exe</a><!-- w -->
se quedo en el tintero ?
el ejemplo testfldb que comenta Antonio , se quedo en el tintero y no se incluyo en el ultimo build ? . A mi no me aparece . Por otro lado el folder con botones abajo , funciona el dialogos ? , ( con recursos ) . Se agradece un ejemplo de esto si funciona . saludso.
se quedo en el tintero ?
Jose Luis, Tienes que descargar el build de FWPPC que publicamos ayer. Vamos a preparar un ejemplo con diálogos y recursos.
se quedo en el tintero ?
perdón , si que estaá el archivo . Era un problema de instalación del build . Espero ese nuevo ejemplo con recursos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> .
se requiere bloqueo con APPEND BLANK
Compañeros, buenas: En una red local con DBF/CDX hay ocasiones (afortunadamente las menos) en las que el programa genera un error del tipo: [color=#FF0000:1jbfb9i5]Error DBFCDX/1022 Se requiere bloqueo[/color:1jbfb9i5] ... y es justo en la línea donde hago un simple APPEND BLANK, es decir [code=fw:1jbfb9i5]<div class="fw" id="{CB}" style="font-family: monospace;">  <span style="color: #0000ff;">select</span> <span style="color: #000000;">40</span> ; append blank <br />  replace codigop with codcli, nombrep with nom.....</div>[/code:1jbfb9i5] Pensaba que rlock() y dbunlock() debía colocarse justo cuando se editan/eliminan registros... pero NO para un simple INSERT. En este caso... ¿como debo proceder? Interponiendo un rlock() justo antes del append o despues? Mil gracias LORENZO.
se requiere bloqueo con APPEND BLANK
Loren, antes de hacer el append, pon un FLock()
se requiere bloqueo con APPEND BLANK
Gracias, compañero LOREN.
se requiere bloqueo con APPEND BLANK
Si lo que te ha dicho Cristóbal te funciona genial pero yo siempre compruebo si el registro se ha podido bloquear ya como como sabes append blank intenta bloquear por lo que después deberías comprobar si lo ha conseguido. APPEND BLANK IF !NETERR() // ... ELSE ? "Error en bloqueo " ENDIF Y ojo no te olvides de efectuar unlock después . Saludos José. Enviado desde mi POCOPHONE F1 mediante Tapatalk
se soluciono el problema de cerrar OPENOFFICE calc?
Eso... Es que no puedo cerrarlo. queda una instancia en memoria. gracias. Gustavo.
se soluciono el problema de cerrar OPENOFFICE calc?
Como que usted está haciendo? muestra un código(fuente) porfa! gracias, saludos.
se ve mal en previsualizacion
Estiamdo Por que puede ser que en una previsualizacion con PRINTER y RPREVIEW, cuando al hacer el zoom de vea mal.... todo amontonado hace arriba y alargado a los costados... gracias David
se ve mal en previsualizacion
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27656&start=0">viewtopic.php?f=3&t=27656&start=0</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27598&start=0">viewtopic.php?f=6&t=27598&start=0</a><!-- l -->
se ve mal en previsualizacion
No está solucionado en el último Fivewin??
se ve mal en previsualizacion
En la ultima version la clase TMetafile sigue igual
se ve mal en previsualizacion
MUCHAS GRACIAS SAQUE LAS MARCAS EN LA CLASE TMetaFile Y SE VISUALIZA BIEN AHORA.... MUCHAS GRACIAS david
se ve mal en previsualizacion
Veja esse tópico: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27947">viewtopic.php?f=6&t=27947</a><!-- l -->
se viene...
Se me presento un problema de escases de tiempo al momento de codificar un .RES, un par de controles para REDEFINE no hay problemas, pero si hay problemas cuando tenes un minimo de 10 controles, ya al tercer REDEFINE que tenes que tipear te das cuenta el tiempo que se pierde. Entonces estoy creando para compartirlo luego una aplicacion que lea un .RC y me genere en archivos TXT los redefines de los controles que ese .RC contenga. Gracias. [url:2oedptmc]https&#58;//1drv&#46;ms/i/s!AptIZn_i9BHGyTQIG1fqi3Mkuyfb[/url:2oedptmc]
se viene...
Gustavo, Revisa FWH\samples\rc2prg.prg, rcimport.prg y design.prg Y tambien FWH\samples\re.prg [img:1m4ug9b5]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/rc&#46;JPG[/img:1m4ug9b5]
se viene...
Antonio, Es qe tengo una version muyyyyy vieja del FW, entonces me lo puse a hacer . Gracias.
search
Linares, Good night Please, you have know this is problem. In Harbour/xHarbour whitout fivewin this function DBSeek(vData,.T.), where vData is a Date, it's very well, but when i use fivewin those is not correct, what? Crisvam xHarbour 1.2.1.0 - Fiviwin 9.04 Pelles C 4.5 - Poconé Mato Grosso Brasil
search
To lo uso asi : El Index => Dtos(TABLA->FIELD_DATE) La busqueda DbSeek(Dtos(vDate)) Me funciona muy bien Saludos.
search a big value on an array
If I have this array aData:= { {"B", 0.2, 0.1 ,3.6 ,0.7},; {"T", 0.2, 0.75 ,3.6 ,0.5},; {"T", 0.2, 1.2 ,3.6 ,0.4},; {"T", 0.2, 1.6 ,3.8 ,0.4},; {"T", 0.2, 1.6 ,3.6 ,0.4},; {"T", 0.2, 1.6 ,3.6 ,0.4} } I would like to find the largest number of the 4th array column ( adata[n][4]) how I must make ? thanks I made nHeightold:= adata[1][4] For n= 1 to Len(adata) If adata[n][4]>nHeightold nHeightBig:= adata[n][4] nHeightold:= adata[n][4] Endif next but I believe there is a better method
search a big value on an array
Silvio, Why don't you sort the array first aData := ASort(aData,,,{|x,y| (x[4]>y[4]}) The largest number is in adata[1,4].
search a big value on an array
local nValMayor := 0, nCol := 4 AEval( aData, {|a| if( a[nCol] > nValMayor, (nValMayor := a[nCol], ) } )
search a number of on array
I have an array created with AaDd(aFrequeMax[nRuota],{massimo, &num}) then I have a number for a sample 42 and the nWheel 1 I must found the number 42 on aFrequeMax [nWheel] and return me the second element of this array How I must make it ? I tried with AEval( aData, { |a| If( (a[1] = numero ), nFrequenza:=a[2] , nil ) } )
search a number of on array
Dear Silvio, Please provide a drawing or something to better understand you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
search a number of on array
[quote="Antonio Linares":s4u5knwa]Dear Silvio, Please provide a drawing or something to better understand you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:s4u5knwa] sample nWheel = 1 [img:s4u5knwa]https&#58;//i&#46;postimg&#46;cc/fyGXkHZQ/sample&#46;png[/img:s4u5knwa] I have to find out if my number is in the first column, if it found it, return the value for the second column For a sample my number is [b:s4u5knwa]66[/b:s4u5knwa] it must return [b:s4u5knwa]594[/b:s4u5knwa]
search a number of on array
[code=fw:zaxja9xf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> ArrLookUp<span style="color: #000000;">&#40;</span> aArray, nSeek <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nAt<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> aArray, <span style="color: #000000;">&#123;</span> |a| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> == nSeek <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> aArray<span style="color: #000000;">&#91;</span> nAt, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:zaxja9xf]
search a number of on array
thanks
search a word on a field string RESOLVED !
I have an archivio have field "TAGS "cr 200 sample : "Computer; Portatile; apparecchi per la cucina;" from another archive I select a field cTopic:= "computer" and I must search the word "computer" into the first archive on all records and I wish show only the records having on "eti" the word "computer" How I must make ? I try with OrdScope(0, { || UPPER(ctopic) $ inv->TAGS }) OrdScope(1, { || UPPER(ctopic) $ inv->TAGS }) but not run well any solution ?