topic
stringlengths
1
63
text
stringlengths
1
577k
Busqueda incremental y StatusBar
Julio, Estás haciéndolo así ? oStatusBar:SetPartText( 3, cZoek )
Busqueda incremental y StatusBar
Perfecto Amigo !!!! Solucionado. Parece que en algun momento no me funciono así, y quería redescubrir la fórmula del agua calentada ! La forma mas simple siempre es la mejor... Gracias de nuevo, y te deseo que pases unas Felices Navidades junto a tu familia, y que el 2008 sea el Mejor Año del Resto de tu Vida. Abrazos....
Busqueda incremental y StatusBar
Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Busqueda incremental...
Hola buenos dias a todos, tengo mucho tiempo de no programar al 100% en mis aplicaciones, y me surgio una inquietud por parte de uno de los usuarios que me solicitó, si podria hacer una búsqueda incremental en listbox, uso la clase de Hernan Ceccarelli, serian tan amable si alguien tendrá algún ejemplo funcional de como hacer la busqueda incremental? Mucho les agradecere su pronta ayuda que codigo usar y los pasos y procedimientos a seguir dentro del codigo fuente, uso indices CDX. Gusto saludarlos y que tengan un excelente dia, y sobre todo Feliz inicio año nuevo a todos los usuarios de FiveWin. Atte: Adrian C. C. <!-- e --><a href="mailto:acc69@hotmail.com">acc69@hotmail.com</a><!-- e -->
Busqueda incremental...
Hola, <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=1016">http://www.fivewin.com.br/exibedicas.asp?id=1016</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=708">http://www.fivewin.com.br/exibedicas.asp?id=708</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=691">http://www.fivewin.com.br/exibedicas.asp?id=691</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=389">http://www.fivewin.com.br/exibedicas.asp?id=389</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=384">http://www.fivewin.com.br/exibedicas.asp?id=384</a><!-- m --> Salu2
Busqueda incremental...
[quote="karinha":21ml44zx]Hola, <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=1016">http://www.fivewin.com.br/exibedicas.asp?id=1016</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=708">http://www.fivewin.com.br/exibedicas.asp?id=708</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=691">http://www.fivewin.com.br/exibedicas.asp?id=691</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=389">http://www.fivewin.com.br/exibedicas.asp?id=389</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=384">http://www.fivewin.com.br/exibedicas.asp?id=384</a><!-- m --> Salu2[/quote:21ml44zx] Hola Karinha , te estoy muy agradecido, por tu aportacion, logré adaptarlo a mis necesidades de mi codigo de busqueda incremental, gracias y que tenga un excelente dia. Saludos a todos. Atte: Adrian C. C.
Busqueda numerica por aproximacion
Saludos amigos del foro. Tengo necesidad de una funcion para buscar valores numericos por aproximacion, en una tabla dbf. Agradeceré mucho si alguno de ustedes ya la ha desarrollado y pueda compartirla. Saludos.
Busqueda numerica por aproximacion
No entiendo bien lo que quieres decir El número más aproximado al introducido? Está ordenado por ese campo la base de datos?
Busqueda numerica por aproximacion
[quote="cnavarro":c52s3bf1]No entiendo bien lo que quieres decir El número más aproximado al introducido? Está ordenado por ese campo la base de datos?[/quote:c52s3bf1] Gracias por contestar. Asi es, el valor mas aproximado al introducido (o tomado de otra tabla). La tabla está ordenada de manera ascendente por estos valores, y muchos de ellos se repiten (esto ultimo no tengo problema en controlar, con otro campo). Nuevamente gracias por cualquier sugerencia o código. Saludos.
Busqueda numerica por aproximacion
Se me olvidó comentar que al usar DbSeek(nValue,.t.) y no encontrar el valor, el cursor se sitúa en el siguiente registro. El caso es que el valor aproximado a encontrar puede ser mayor o menor al valor digitado. Gracias.
Busqueda numerica por aproximacion
Bien, te cuento lo que se me ocurre Como el DbSeek( uval, .T. ) se sitúa en el valor superior al buscado, coge la diferencia con el anterior y posterior y compruebas cuál es el más aproximado Se me debe escapar algo que no te he entendido porque seguro que esa solución ya la habías pensado Lo segundo es hacer una búsqueda "dicotómica" a mano Saludos
Busqueda numerica por aproximacion
Cristobal. Muchisimas gracias. Efectivamente, asi la he finalizado, comparando valores de registro anterior y registro donde se colocó el cursor, y el de menor diferencia lo tomo como el mas aproximado. Aqui esta la funcioncita, algo "chapiolla", pero me funciona. [code=fw:27n61de0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> misgets<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Buscar valor aproximado"</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">"Introduzca valor"</span>,@nVal,<span style="color: #ff0000;">"lupa"</span>,.t.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbSeek<span style="color: #000000;">&#40;</span>nVal,.t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No encontrado valor exacto"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nRec := Recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nValAnt := <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> nVal - field->debe <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nValPos := <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> nVal - field->debe <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nValAprox := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span>nValAnt,nValPos<span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Valor aproximado es "</span>+Transform<span style="color: #000000;">&#40;</span>nValAprox,<span style="color: #ff0000;">"999,999,999.99"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nValAnt < nValPos<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;oBrw3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Valor a buscar &nbsp;"</span> + Transform<span style="color: #000000;">&#40;</span>nVal,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">&#41;</span> +CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Valor anterior &nbsp;"</span> + Transform<span style="color: #000000;">&#40;</span>nValAnt,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">&#41;</span> +CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Valor Posterior "</span> + Transform<span style="color: #000000;">&#40;</span>nValPos,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">&#41;</span> +CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Valor Aproximado "</span> + Transform<span style="color: #000000;">&#40;</span>nValAProx,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:27n61de0] Saludos, y nuevamente agradezco tu interés. Francisco EDITADO...
Busqueda numerica por aproximacion
Francisco, creo que te falta en los DbSkip controlar el Eof() y el Bof()
Busqueda numerica por aproximacion
[quote="cnavarro":2h0r6k82]Francisco, creo que te falta en los DbSkip controlar el Eof() y el Bof()[/quote:2h0r6k82] Tienes toda la razón. Voy a modificarla. Muchas gracias.
Busqueda por aproximación en una dbf
Hola a todos. Este es mi primer post... asi que en próximos espero ser de más ayuda. Explico un poco lo que estoy haciendo.. Me he creado un browse (o grid) en donde muestro todos los registros de una tabla. Lo que pretendo es posicionarme en un registro en concreto para mostrar todos sus campos dependiendo de un valor que se introduzca, puede ser una letra,una palabra o parte de ella, es decir, una busqueda por medio de una cadena de caracteres. En VFP existe seek() pero aqui no se como hacerlo. Si alguien puede indicarme como.... Un saludo a todos y gracias.
Busqueda por aproximación en una dbf
Elias, Con el lenguaje Clipper se hace de forma similar: 1. Lo idóneo sería poner un GET junto al browse, para que se vaya escribiendo en el GET y el browse vaya buscando. 2. La búsqueda se hace con DbSeek( <cExpresion> ) que busca en el índice activo que esté usando la DBF. 3. El browse se refresca, haciendo un oBrowse:Refresh() Vamos a construir un ejemplo completo que te sirva de modelo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Busqueda por aproximación en una dbf
Aqui esta lo que necesitas: Se hace excatamente igual que con FiveWin normal [code:1f86wbpd]&#46;&#46;&#46; &#46;&#46;&#46; &#46;&#46;&#46; USE AGENTS OrdSetFocus&#40;"nomAgent&#41; @ 31,0 LISTBOX oBrw FIELDS agents->iatacode,; agents->agentname,; agents->agentype; HEADERS "Codigo",; "Nombre",; "Tipo"; PIXEL SIZE oWnd&#58;nWidth,135; ON DBLCLICK &#40;Movs&#40;&#46;F&#46;&#41;,; oBrw&#58;Refresh&#40;&#41;&#41; oBrw&#58;nClrPane &#58;= &#123;|| IIF&#40;agents->&#40;ordkeyno&#40;&#41;&#41; % 2 == 0 ,RGB&#40;193,221,255&#41;,RGB&#40;221,245,255&#41; &#41;&#125; oBrw&#58;Bkeychar &#58;= &#123;|nkey, nFlag| Busca&#40;nKey&#41;, oBrw&#58;Refresh&#40;&#41;&#125; @ 165,0 SAY "Buscando&#58;" SIZE 60,40 PIXEL @ 165,60 SAY oBusca PROMPT cBusca PIXEL SIZE 150,20 &#46;&#46;&#46; &#46;&#46;&#46; &#46;&#46;&#46; FUNCTION Busca&#40;nKey&#41; IF nKey = 8 cBusca &#58;= SUBSTR&#40;cBusca,1,LEN&#40;cBusca&#41;-1&#41; ELSE cBusca += CHR&#40;nKey&#41; ENDIF SET SOFTSEEK ON SEEK&#40;cBusca&#41; SET SOFTSEEK OFF oBusca&#58;Refresh&#40;&#41; RETURN &#40;&#46;T&#46;&#41; [/code:1f86wbpd]
Busqueda por aproximación en una dbf
René, Gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Busqueda por aproximación en una dbf
Hola Rene, gracias por la ayuda.... He probado el codigo que pero al ejecutarlo e intentar realizar una busqueda me da el siguiente error... .... Argument error + stack calls: BUSCA(39) (b)MAIN(24) TWINDOW:HANDLEEVENT(0) TWINDOW:HANDLEEVENT(0) TWINDOW:HANDLEEVENT(0) WINRUN(0) TWINDOW:ACTIVATE(0) MAIN(29) ..... A lo mejor es una chorrada pero no lo entiendo... Una última cosa, hay alguna forma de realizar una "traza" del programa para poder hacer un seguimiento más profundo de variables, etc.... Un saludo y gracias por la ayuda. Elias Torres.
Busqueda por aproximación en una dbf
Elias, Aqui tienes el ejemplo completo: [code:okwyowsv] // FiveWin for Pocket PC - Testing browses with incremental search #include "FWCE&#46;ch" REQUEST DBFCDX //----------------------------------------------------------------------------// function Main&#40;&#41; local oWnd, oBrw, hBmp &#58;= ReadBitmap&#40; CurDir&#40;&#41; + "\go&#46;bmp" &#41; local oSay, cSearch &#58;= "" USE &#40; CurDir&#40;&#41; + "\Customer" &#41; VIA "DBFCDX" Customer->&#40; OrdSetFocus&#40; "LAST" &#41; &#41; Customer->&#40; DbGoTop&#40;&#41; &#41; DEFINE WINDOW oWnd TITLE "IncSearch" @ 1, 1 LISTBOX oBrw ; FIELDS hBmp, Customer->Last, Customer->First ; HEADERS "", "Last", "First" ; SIZE 220, 167 oBrw&#58;bKeyChar = &#123; | nKey, nFlags | Search&#40; nKey, @cSearch &#41;, oBrw&#58;Refresh&#40;&#41;,; oSay&#58;Refresh&#40;&#41; &#125; @ 14, 2 SAY "Searching&#58;" SIZE 60, 30 @ 14, 12 SAY oSay PROMPT cSearch SIZE 80, 30 ACTIVATE WINDOW oWnd ; ON CLICK MsgInfo&#40; "Click!" &#41; return nil //----------------------------------------------------------------------------// function Search&#40; nKey, cSearch &#41; if nKey = 8 cSearch = SubStr&#40; cSearch, 1, Len&#40; cSearch &#41; - 1 &#41; else cSearch += Upper&#40; Chr&#40; nKey &#41; &#41; endif Customer->&#40; DbSeek&#40; cSearch, &#46;t&#46; &#41; &#41; return nil //----------------------------------------------------------------------------// [/code:okwyowsv]
Busqueda por aproximación en una dbf
Gracias Antonio, lo he probado y todo ok. Aún me quedan muchas cosas que aprender de esto... Una curiosidad....para que son las || ? Saludos. Elias Torres.
Busqueda por aproximación en una dbf
lo que mencionas se llaman bloques de codigo y son las estructuras mas poderosas de clipper. un bloque de codigo o code block te permite meter codigo dentro de una variable y luego evaluarlo, es decir ejecutar dicho codigo. piensa que un code block es una funcion "lineal" bkeychar es un bloque de codigo que recibe 2 parametros, que estan metidos entre || nkey es la tecla presionada y nFlag indica si la tecla va acompañada de alguna tecla de control como alt, ctrl o shift, a continuacion el bloque de codigo ejecuta todas las instrucciones metidas entre los {} que deben ir separados por ,
Busqueda registro en .mdb
Tengo una base de datos de access, con una tabla, dentro de la tabla tengo un campo RFC de texto, pero no es llave; tengo un get en un dialogo donde capuro el rfc y ese lo tengo que buscar en la tabla para luego traer los datos a un arreglo, como le hago para hacer la busqueda? utilizo ADO para hacer la conexion. salu2 paco
Busqueda registro en .mdb
[quote="Francisco Horta":uxuahr74]Tengo una base de datos de access, con una tabla, dentro de la tabla tengo un campo RFC de texto, pero no es llave; tengo un get en un dialogo donde capuro el rfc y ese lo tengo que buscar en la tabla para luego traer los datos a un arreglo, como le hago para hacer la busqueda? utilizo ADO para hacer la conexion. salu2 paco[/quote:uxuahr74] fácil. deja te hago un sample y te lo hago llegar por correo saludos
Busqueda registro en .mdb
Hola Francisco Se puede hacer con una consulta SQL: cRFC:="CapturadodesdeelGet" cQuery:="Select * from tabla where RFC='"+cRFC+"'" Luego de realizar la conexión y crear el objeto recordset, lo abrimos: oRs:Open( cQuery , cConnection, adOpenKeyset, adLockOptimistic ) este devuelve un arreglo con los registros que encontró en la consulta, y los puedes pasar a un array: oRs:MoveFirst() // equivale a GO TOP adatos:={} //Arreglo en el que se recuperan los datos WHILE !oRs:Eof() aReg := {""} for nPos := 0 to oRs:Fields:Count() -1 AAdd(aReg,oRs:Fields(nPos):Value) next AAdd(aDatos,aReg) oRs:MoveNext() END Espero que sea lo que necesitas. Esto me funciona en MySQL, supongo que debe funcionar en acces. Un saludo Marcelo Jingo
Busqueda registro en .mdb
willy que buen detalle, lo espero marcelo, es precisamente lo que buscaba gracias a ambos salu2 paco
Busqueda selectiva por nombre en un DBF
Buenos días: Tengo un sistema con indices DBF-CDX, en red local, funcionando bien. Sin embargo, algunas vez, NO siempre, en la opción de poder filtrar una DBF por nombres, me genera el siguiente error: [b:u5mqnf73]Error: NO existe la variable "nom_cli"[/b:u5mqnf73] ... cuando realmente SI existe, y de hecho de probado incluso por declararla pública. [code=fw:u5mqnf73]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> nombre tag &<span style="color: #000000;">&#40;</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">&#40;</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">&#41;</span> ADDITIVE <span style="color: #00C800;">for</span> upper<span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span>nom_cli<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $ upper<span style="color: #000000;">&#40;</span>factura->nombre<span style="color: #000000;">&#41;</span><br />&& camino = ruta del PC <span style="color: #00C800;">local</span><br />&& nom_cli = texto o cadena a buscar y que teclea el usuario<br /> </div>[/code:u5mqnf73] La cuestión es que genera error algunas vez, NO siempre. Por cierto, las búsquedas me las hace rapidísimas y por cualquier cadena que escriba el usuario. ¿Qué estoy haciendo mal? Gracias. Un saludo.
Busqueda selectiva por nombre en un DBF
[quote:oh69uoo3]Error: NO existe la variable "nom_cli"[/quote:oh69uoo3] Declare: FIELD NOM_CLI en el modulo, si realmente ejiste en el .DBF.
Busqueda selectiva por nombre en un DBF
Loren Tenes que ponerle el Alias de la base Ej: [code=fw:cyksou3f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;ALIAS->NOM_CLI<br />&nbsp;</div>[/code:cyksou3f]
Busqueda selectiva por nombre en un DBF
Por lo que entiendo la variable nom_cli es una variable de memoria, no es un campo de la DBF. Asegurate de que la variable es accesible desde el modulo que llama a la funcion, sino declarala como MEMVAR y hacer referencia a ella como M->nom_cli
Busqueda selectiva por nombre en un DBF
Hola, Debes quitar el ALIAS de la creación del TAG. Ya que ponerlo no debería generar error, pero si te obliga a que siempre la tabla sea abierta con el alias facturas. Ya que si por ejemplo abres la tabla así: [code=fw:6p2dqxvz]<div class="fw" id="{CB}" style="font-family: monospace;">USE TABLA <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> OTROALIAS <span style="color: #B900B9;">// Al querer indexar va a generar error ya que el alias "factura" no va a existir en esa instancia. </span></div>[/code:6p2dqxvz] Y si abres la tabla como: [code=fw:6p2dqxvz]<div class="fw" id="{CB}" style="font-family: monospace;">USE TABLA <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> OTROALIAS <span style="color: #B900B9;">// Al poner seleccionar el SET ORDER que corresponde a ese TAG tambien va a generar error.</span></div>[/code:6p2dqxvz] Siempre es recomendable al momendo de generar un índice no usar ALIAS ni en la apertura ni en la creación del TAG [code=fw:6p2dqxvz]<div class="fw" id="{CB}" style="font-family: monospace;">USE TABLA <span style="color: #00C800;">NEW</span><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Campo1 + Campo2 + etc   TAG TuTag <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"TABLA"</span> <br />CLOSE<br /> </div>[/code:6p2dqxvz] Luego de crear el índice y cerrar la tabla vuelve a abrirla y ahí si pone el alias que quieras. En fin... prueba quitar el ALIAS en la apertura de la tabla y el alias-> de la creación del tag y luego comenta los resultados. Saludos,
Busqueda selectiva por nombre en un DBF
Cuando he obtenido este tipo de error casi siempre ha coincidido con un error al crear el fichero temporal (falta de espacio, pérdida de conexión en red, fichero existente, etc..) Comprueba cuando obtengas el error si se conseguido crear el índice temporal.
Busqueda selectiva por nombre en un DBF
compañeros, buenas noches: - Quité el ALIAS de la creación del TAG - [b:3stoqi1o]nom_cli[/b:3stoqi1o] es una variable de memoria que incluso la declaro como PUBLICA y la variable es accesible desde el modulo que llama a la funcion - Cuando genera el error es imposible comprobar si genera el indice temporal porque siempre que genera el error lo hace desde los equipos del cliente. Nunca desde el mío, a pesar de las mil pruebas que hago. El error es aleatorio y nunca es fijo. Creo que solución pasa por cambiar la forma de indexar y el entorno de RED local, aunque el indice lo genera en el PC local (NO en el servidor). [code=fw:3stoqi1o]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> nombre tag &<span style="color: #000000;">&#40;</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">&#40;</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">&#41;</span> ADDITIVE <span style="color: #00C800;">for</span> upper<span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span>nom_cli<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $ upper<span style="color: #000000;">&#40;</span>nombre<span style="color: #000000;">&#41;</span></div>[/code:3stoqi1o] Sigo sin solución. Saludos. LORENZO.
Busqueda selectiva por nombre en un DBF
Otro tip... Teniendo en cuenta que es un índice temporal, podrías antes de generar tu índice asegurarte que no existe ya índice con ese nombre, ya que en caso de existir, lo que estás haciendo va a agregar el TAG al índice existente. Podrías antes de generar el índice, agregar un FErase( camino+"tempofac" ) así en caso de existir lo borra. Y el que tu creas luego es otro CDX nuevo. Saludos,
Busqueda sensitiva en DBCombo
Estimados: Tengo el siguente DBCombo REDEFINE DBCOMBO aO[_CmbM1] VAR cIDCpto ID 100 OF aO[_DlgM] UPDATE ; ALIAS ::oDbConc:cAlias ; ITEMFIELD "FCON01" ; LISTFIELD "FCON02" el recurso, hecho con Workshop, es este: <!-- m --><a class="postlink" href="http://img130.imageshack.us/img130/6359/resdbcombo.jpg">http://img130.imageshack.us/img130/6359/resdbcombo.jpg</a><!-- m --> No obstante al pulsar una letra de un item contenido, no se posiciona en el. En que estoy errando? muchas gracias
Busquedas
Estimados del ForoComo puedo realizar una busques dentro de un listbox una palabra que esté en el interior de un campo (alfanumerico), yo realizo la busqueda de la siguientes forma:@ 10, 1 GET oVar_Bus VAR Var_Bus OF oDlgBus ; ON CHANGE (oVar_Bus:Assign(),; If(Tp_Buscar<>20,&(BusBASE)->( dbseek( Var_Bus, .t. )) ,; &(BusBASE)->( dbseek( let+Var_Bus, .t. )) ) ,; oLbxBus:UpStable(),; oLbxBus:Refresh() ) pero esto me busca desde Derecha a izquierda a medida que voy escribiendo la frase a busca, lo que necesito es que pueda buscar una palabra dentro del campo...Muchas GraciasDBarrioArgentina
Busquedas
Hola Dbarrio:Como estas? Mira, yo utilizo las dos formas en los formularios de busqueda. La incremental y la por contenido.Te muestro la funcion buscar.[code:1roriofx] FUNCTION buscar&#40;base,oDlg&#41; LOCAL oDlg1,oBot1&#58;=ARRAY&#40;3&#41;,oGet1&#58;=ARRAY&#40;2&#41;,mvar1&#58;=ARRAY&#40;2&#41;,oLbx,i,retorno, Bus &#58;= &#46;f&#46; &#40;base&#41;->&#40;DBSETORDER&#40;2&#41;&#41; &#40;base&#41;->&#40;DBGOTOP&#40;&#41;&#41; mvar1&#91;1&#93; &#58;= SPACE&#40;30&#41; DEFINE DIALOG oDlg1 RESOURCE "BUSCAR" TITLE "Busqueda" OF oDlg oDlg1&#58;lHelpIcon &#58;= &#46;f&#46; REDEFINE BROWSE oLbx ID 101 OF oDlg1 ON DBLCLICK oDlg1&#58;End&#40;&#41;; ALIAS &#40;base&#41; ADD COLUMN TO oLbx DATA FieldWBlock&#40; aCampo&#91;1&#93;, Select&#40;base&#41; &#41; ; SIZE 100 HEADER "Codigo" ALIGN RIGHT ADD COLUMN TO oLbx DATA FieldWBlock&#40; "nombre", Select&#40;base&#41; &#41; ; SIZE 1300 HEADER "Detalle" REDEFINE GET oGet1&#91;1&#93; VAR mvar1&#91;1&#93; ID 102 OF oDlg1 REDEFINE GET oGet1&#91;2&#93; VAR mvar1&#91;2&#93; ID 105 OF oDlg1 oGet1&#91;1&#93;&#58;bKeyDown &#58;= &#123; |nKey,nFlag| bus&#40;base, oGet1&#91;1&#93;, oLbx, nKey&#41; &#125; oGet1&#91;2&#93;&#58;bKeyDown &#58;= &#123; |nKey,nFlag| Cam&#40;oGet1&#91;2&#93;, nKey, @Bus&#41; &#125; REDEFINE BUTTON oBot1&#91;1&#93; ID 103 OF oDlg1 ACTION oDlg1&#58;End&#40;&#41; REDEFINE BUTTON oBot1&#91;3&#93; ID 106 OF oDlg1 ACTION ; BuscarCon&#40;mvar1&#91;2&#93;,oLbx,base,@Bus&#41; ACTIVATE DIALOG oDlg1 ON INIT oGet1&#91;1&#93;&#58;SetFocus&#40;&#41; retorno = &#40;base&#41;->codigo &#40;base&#41;->&#40;DBSETORDER&#40;1&#41;&#41; RETURN retorno ********************************************* ** Buscar por contenido STATIC FUNCTION BuscarCon&#40;Texto,oBrw,base,Bus&#41; LOCAL anterior &#58;= SELECT&#40;&#41; IF Bus SELECT &#40;base&#41; CONTINUE ELSE Bus &#58;= &#46;t&#46; SELECT &#40;base&#41; LOCATE FOR ALLTRIM&#40;Texto&#41; $ &#40;base&#41;->nombre ENDIF SELECT&#40;anterior&#41; oBrw&#58;BugUp&#40;&#41; oBrw&#58;Refresh&#40;&#41; RETURN nil ********************************* ** Busqueda incremental FUNCTION Bus&#40;base, oGet, oLbx, nKey&#41; LOCAL cBus cBus &#58;= LEFT&#40;oGet&#58;cText,oGet&#58;nPos-1&#41; + CHR&#40;nKey&#41; &#40;base&#41;->&#40;DBSEEK&#40;cBus&#41;&#41; // Se refresca el listbox oLbx&#58;BugUp&#40;&#41; oLbx&#58;refresh&#40;&#41; RETURN &#46;T&#46; [/code:1roriofx]
Busquedas
Podria ser asi??, usando la funcion AT** Buscar por contenido STATIC FUNCTION BuscarCon(Texto,oBrw,base,Bus) LOCAL anterior := SELECT() local lOk, nRecnolOK := .f.nrecno := (base)->recno() // guardamos el punteroDbGoTop()WHILE !EOF() IF AT(texto, (base)->nombre) > 0 // encontro la subcadena lOK := .t. EXIT EndIf DbSkip()ENDDOIf !lOK DbGoTo(nrecno)EndIfSELECT(anterior) oBrw:BugUp() oBrw:Refresh() RETURN nil
Busquedas
Amigos muchas graciasya me pongo a probar las dos opcionesmuchas graciasdbarrioArgentina
Busquedas con base de datos en Access y ADORDD
Hola, Estoy trabajando con una base de datos en access que la abro así: REQUEST ADORDD USE datos.mdb VIA "ADORDD" TABLE "clientes" BROW() Pero ahora quiero realizar una busqueda por un campo. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> ¿hay que acceder al campo clave o hay que indexar como se hacia con dbf? La verdad es que estoyu algo perdido. <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Busquedas con base de datos en Access y ADORDD
Javier, Prueba a usar LOCATE como se usa con las DBFs tradicionales (cuando no usamos índices).
Busquedas con base de datos en Access y ADORDD
Antonio, he probado con LOCATE, pero siempre me devuelve falso: USE DATABASE\presugen.mdb VIA "ADORDD" TABLE "clientes" ALIAS "CLIENTES" CLIENTES->(DbGoTop()) LOCATE FOR CC="1452" lVal := CLIENTES->(Found()) MsgAlert( lVal ) El valor 1452, existe y el campo cc es numerico.
Busquedas con base de datos en Access y ADORDD
Creo que en el caso de busqueda de valores numericos debes omitir las comillas, solo busca el numero Espero funcione
Busquedas con base de datos en Access y ADORDD
Curioso... He hecho la siguiente prueba. He puesto un RecNo() antes del locate y otro despues. El primero, me muestra un 1 (logico pues antes he hecho un DbGoTop()) Despues de locate, me muestra un 2(que es el registro de la busqueda) La base de datos tiene 5 registros, por lo que no hay posibilidad de que fuera un EoF() Sin envargo, la funcion Found() me sigue devolviendo .F. en cualquier caso. Alguna pista??? <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Busquedas con base de datos en Access y ADORDD
Javier, Hay que añadir Found() en ADORDD.prg de la siguiente manera: [code:1ragb3tz] &#46;&#46;&#46; #define WA_FOUND 15 #define WA_SIZE 15 &#46;&#46;&#46; static function ADO_LOCATE&#40; nWA, lContinue &#41; local aWAData &#58;= USRRDD_AREADATA&#40; nWA &#41; local oRecordSet &#58;= aWAData&#91; WA_RECORDSET &#93; oRecordSet&#58;Find&#40; aWAData&#91; WA_SCOPEINFO &#93;&#91; UR_SI_CFOR &#93;, If&#40; lContinue, 1, 0 &#41; &#41; aWAData&#91; WA_FOUND &#93; = ! oRecordSet&#58;EOF aWAData&#91; WA_EOF &#93; = oRecordSet&#58;EOF return SUCCESS &#46;&#46;&#46; static function ADO_FOUND&#40; nWA, lFound &#41; local aWAData &#58;= USRRDD_AREADATA&#40; nWA &#41; lFound = aWAData&#91; WA_FOUND &#93; return SUCCESS &#46;&#46;&#46; aAdoFunc&#91; UR_FOUND &#93; &#58;= &#40; @ADO_FOUND&#40;&#41; &#41; [/code:1ragb3tz] Pruébalo y me comentas. Si te resulta lioso, envíame por email (como ZIP) el fichero adordd.prg que estás usando y lo modificamos aqui y te lo volvemos a enviar. Gracias
Busquedas con base de datos en Access y ADORDD
Ahora SI devuelve .T. o .F. Ahora lo encuentra. Gracias Antonio. De paso he vuelto a usar el TLIB.EXE que lo tenia olvidado. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Busquedas con base de datos en Access y ADORDD
bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Busquedas con base de datos en Access y ADORDD
Hola Antonio, Veo que si hago la busqueda con la siguiente sintaxis: LOCATE FOR CLIENTES->CC = 1001 Me devuelve el siguiente error: He ido al codigo fuente y he visto la linea 592, pero no se como meterle mano.Parece un conflicto con el uso del area de trabajo o alias. Una ayudita? Application =========== Path and name: C:\FWH\bin\g.exe (32 bits) Size: 1,188,864 bytes Time from start: 0 hours 0 mins 2 secs Error occurred at: 04/09/08, 23:00:01 Error description: Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: FIND Args: [ 1] = C CLIENTES->CC = 1001 [ 2] = N 0 Stack Calls =========== Called from: => TOLEAUTO:FIND(0) Called from: adordd.prg => ADO_LOCATE(592) Called from: => __DBLOCATE(0) Called from: G.prg => FBUSCACC(76) Called from: G.prg => (b)FESTUDIOECO(51) Called from: => TGET:LVALID(0) Called from: => TGET:FWLOSTFOCUS(0) Called from: => TCONTROL:HANDLEEVENT(0) Called from: => TGET:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => SYSREFRESH(0) Called from: => TCONTROL:KEYCHAR(0) Called from: => TGET:KEYCHAR(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: => TCONTROL:HANDLEEVENT(0) Called from: => TGET:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => DIALOGBOX(0) Called from: => TDIALOG:ACTIVATE(0) Called from: G.prg => FESTUDIOECO(56) Called from: G.prg => (b)MAIN(27) Called from: => TBTNBMP:CLICK(0) Called from: => TBTNBMP:LBUTTONUP(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: => TCONTROL:HANDLEEVENT(0) Called from: => TBTNBMP:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: => TWINDOW:ACTIVATE(0) Called from: G.prg => MAIN(36) System ====== CPU type: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz 2333 Mhz Hardware memory: 2048 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: Harbour devel build 1.1-1 Intl. Windows version: 5.1, Build 2600 Service Pack 2 Windows total applications running: 29 1 M 2 Default IME 3 Menú desplegable de Autosugerir 4 CiceroUIWndFrame 5 SysFader 6 TF_FloatingLangBar_WndTitle 7 Dialog 8 PresuGen, apliación para la generación y cálculo de presupuestos 9 MS-DOS 10 Java Sys Tray 11 theAwtToolkitWindow 12 Connections Tray 13 MCI command handling window 14 Client:{A534759F-A612-4cf7-BA15-D022203D2DD1} 15 Acrobat IEHelper 16 DDE Server Window 17 Server:{A534759F-A612-4cf7-BA15-D022203D2DD1} 18 SMax4PNP 19 Medidor de energía 20 MS_WebcheckMonitor 21 MediaCenter 22 McAgent_Main_Hidden_Window 23 AEBalloonTip 24 Vtune 25 SoundMax4 26 NVSVCPMMWindowClass 27 GDI+ Window 28 ::. Santander .:: - Windows Internet Explorer 29 Program Manager Variables in use ================ Procedure Type Value ========================== TOLEAUTO:FIND Param 1: C "CLIENTES->CC = 1001" Param 2: N 0 Local 1: C "ADODB.Recordset" Local 2: N 0 ADO_LOCATE Param 1: N 1 Param 2: L .F. Local 1: A Len: 15 Local 2: O Class: TOLEAUTO __DBLOCATE Param 1: B {|| ... } Param 2: U Param 3: U Param 4: U Param 5: L .F. FBUSCACC Param 1: N 5 Local 1: U (b)FESTUDIOECO Param 1: O Class: TGET TGET:LVALID Local 1: O Class: TGET Local 2: L .T. TGET:FWLOSTFOCUS Param 1: N 721504 Local 1: O Class: TGET Local 2: U Local 3: U TCONTROL:HANDLEEVENT Param 1: N 2057 Param 2: N 721504 Param 3: N 0 Local 1: O Class: TGET TGET:HANDLEEVENT Param 1: N 2057 Param 2: N 721504 Param 3: N 0 Local 1: O Class: TGET Local 2: U _FWH Param 1: N 0 Param 2: N 2057 Param 3: N 721504 Param 4: N 0 Param 5: N 6 Local 1: O Class: TGET SYSREFRESH TCONTROL:KEYCHAR Param 1: N 13 Param 2: N 18612225 Local 1: O Class: TGET Local 2: U Local 3: U Local 4: U Local 5: U TGET:KEYCHAR Param 1: N 13 Param 2: N 18612225 Local 1: O Class: TGET Local 2: U Local 3: U Local 4: U Local 5: U Local 6: U TWINDOW:HANDLEEVENT Param 1: N 258 Param 2: N 13 Param 3: N 18612225 TCONTROL:HANDLEEVENT Param 1: N 258 Param 2: N 13 Param 3: N 18612225 Local 1: O Class: TGET TGET:HANDLEEVENT Param 1: N 258 Param 2: N 13 Param 3: N 18612225 Local 1: O Class: TGET Local 2: U _FWH Param 1: N 18612225 Param 2: N 258 Param 3: N 13 Param 4: N 18612225 Param 5: N 6 Local 1: O Class: TGET DIALOGBOX Param 1: N 4194304 Param 2: C "ID_DIALOGO1" Param 3: N 3342670 Param 4: O Class: TDIALOG TDIALOG:ACTIVATE Param 1: U Param 2: U Param 3: B {|| ... } Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .F. Local 1: O Class: TDIALOG Local 2: N 3342670 Local 3: U Local 4: U Local 5: S Local 6: O Class: TDIALOG FESTUDIOECO Local 1: O Class: TDIALOG Local 2: O Class: TGET Local 3: N 5 (b)MAIN Param 1: O Class: TBTNBMP TBTNBMP:CLICK Local 1: O Class: TBTNBMP TBTNBMP:LBUTTONUP Param 1: N 50 Param 2: N 72 Local 1: O Class: TBTNBMP Local 2: U Local 3: L .T. TWINDOW:HANDLEEVENT Param 1: N 514 Param 2: N 0 Param 3: N 3276872 TCONTROL:HANDLEEVENT Param 1: N 514 Param 2: N 0 Param 3: N 3276872 Local 1: O Class: TBTNBMP TBTNBMP:HANDLEEVENT Param 1: N 514 Param 2: N 0 Param 3: N 3276872 Local 1: O Class: TBTNBMP _FWH Param 1: N 3276872 Param 2: N 514 Param 3: N 0 Param 4: N 3276872 Param 5: N 3 Local 1: O Class: TBTNBMP WINRUN Param 1: N 3342670 TWINDOW:ACTIVATE Param 1: C "MAXIMIZED" Param 2: U Param 3: U Param 4: U Param 5: U Param 6: U Param 7: U Param 8: U Param 9: U Param 10: U Param 11: U Param 12: U Param 13: U Param 14: U Param 15: U Param 16: U Param 17: U Param 18: U Param 19: U Local 1: O Class: TWINDOW Local 2: U Local 3: U MAIN Local 1: O Class: TWINDOW Local 2: O Class: TBAR Local 3: O Class: TICON Local 4: U Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX ADORDD DataBases in use ================ 1: => CLIENTES RddName: ADORDD ============================== RecNo RecCount BOF EOF 1 4 .F. .F. Indexes in use TagName Relations in use Classes in use: =============== 1 ERROR 2 HBCLASS 3 HBOBJECT 4 TWINDOW 5 TCONTROL 6 TICON 7 TBRUSH 8 TFONT 9 TBAR 10 TRECT 11 TBTNBMP 12 TMSGBAR 13 TDIALOG 14 TGET 15 GET 16 TCLIPGET 17 TBUTTON 18 TOLEAUTO 19 TREG32 Memory Analysis =============== 101 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes 
Busquedas con base de datos en Access y ADORDD
jfafive: ¿Conseguiste solucionar este error? me está pasando lo mismo gracias1000 José Luis
Busquedas con base de datos en Access y ADORDD
No, al final seguí trabajando con DBF. Salu2
Busquedas con base de datos en Access y ADORDD
Prueba asi: USE DATABASE\presugen.mdb VIA "ADORDD" TABLE "clientes" ALIAS "CLIENTES" CLIENTES->(DbGoTop()) LOCATE FOR CC="1452" lVal := CC="1452" MsgAlert( lVal ) Salu2
Buton estilo 2010
hola a todos: Estoy buscando si un botón solo sin una barra de botones se puede poner en el estilo 2010, y también una Ventana. Un saludo Carlos
Buton estilo 2010
Puedes poner una imagen de lo que necesitas?
Buton estilo 2010
Hola de nuevo a lo que me refiero es: Yo en los programas veo los botones con este estilo creo que el denominamos 2010: [img:3u0d1tce]http&#58;//www&#46;colthop&#46;es/imagen1&#46;png[/img:3u0d1tce] Y yo cuando pongo en mis aplicaciones pongo dos botones me sale así [img:3u0d1tce]http&#58;//www&#46;colthop&#46;es/imagen2&#46;png[/img:3u0d1tce]
Buton estilo 2010
Espera que todavía no he terminado que he pulsado mal. Estos son mas cuadrados y no tan redondeados y con un degradado como los primeros. En cuanto a las ventanas a mi me aparecen así cuadradas: [img:1efcsf5i]http&#58;//www&#46;colthop&#46;es/imagen3&#46;png[/img:1efcsf5i] Y en el estilo 2010 son redondeadas. No se si hay una clausula que lo ponga todo en el estilo 2010 o algo parecido. Un saludo Carlos
Buton estilo 2010
Creo que es esto lo que necesitas: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=2628&hilit=windowsxp.man">viewtopic.php?f=6&t=2628&hilit=windowsxp.man</a><!-- l -->
Buton estilo 2010
Hola Manuel: Yo no uso Recursos ni DLL solo PRG podríais indicarme como se hace para usar el Windowsxp.Manifest, para que tenga apariencia XP. He creado un archivo de igual nombre que el ejecutable pero con extensión RC, he incuido el Windowsxp.Manifest que hay en la carpeta de FWH, también he incluido una función IsAppThemed y no he notado diferencias. Hay que hacer algo para usar ese tema. Un saludo Carlos
Buton estilo 2010
Carlos Lo que yo tengo en mi .RC (nombre de aplicacion) [quote:kh37tmeb] #ifdef __FLAT__ 1 24 "WinXP/WindowsXP.Manifest" #endif #ifdef __64__ 1 24 "WinXP/WindowsXP.Manifest64" #endif [/quote:kh37tmeb]
Buton estilo 2010
Hola de nuevo: Sigo haciendo pruebas y no observo cambios os comento lo que tengo por si sirve Mi aplicación se llama cyewin.exe y yo he creado un cyewin.rc con: [code=fw:3vclhdug]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __FLAT__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest"</span><br />#endif<br /><br />#ifdef __64__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest64"</span><br />#endif<br /> </div>[/code:3vclhdug] tengo el archivo WindowsXP.Manifest en la carpeta y compilo. Hay que hacer algo mas, como añadir una línea en e PRG principal o en la compilación añadir algo. Un saludo Carlos
Buton estilo 2010
Hola a todos y gracias ya lo he terminado. Solo era que no lo incluía en la compilación, he incluido dos líneas una para compilar el .rc para convertirlo en .res y la otra el .res en el linkado. Un saludo Carlos
ButtomBar scroll
Greetings colleagues noble. it is possible to roll a BUTTOMBAR case a small screen does not fit all the buttons? below is an illustration of the control I need: [img:2h1zy0ig]http&#58;//www&#46;acessosoft&#46;com&#46;br/img/rola&#46;png[/img:2h1zy0ig]
ButtomBar scroll
I ask the same for the tabof ribbonbar because I wish set all buttons on first tab
ButtomBar scroll
I don't know how to make a buttonbar wrap, but as an alternative you could make the text description tooltips instead. And/or make the images smaller. The text is only for novices and expert users will remember the icons. So, tooltips are available for the novice, but not cluttering up the screen for the expert. I would never use both on the screen at all times. Note that images are easier to remember because you don't have to read and process them each time like you do with text. You could also use a ribbonbar with tabs so you don't have to put all the icons on the same space. Personally, I don't like wrapped toolbars. My editor does this when you change the size of the window, then I have to remember, is the icon on the top-right or the wrapped middle?
ButtomBar scroll
Dear James, I have a schedule where the user sees the whole structure of the beach 1 Having all the buttons in a single buttonbar or on a single tab of the ribbon is essential and unfortunately we have many buttons: I'll give you an example list 1 button to change the date 2. date box 3 date box 4 button for booking journal 5 button for periodic booking 6. button for automatic booking 7 button for multiple booking 8 group for the selected element display 9 booking gesione button 10 customer management 11 booking management 12 management Notes 13 Planner 14 advanced planner 15 beach print 16 individual services 17 services available 18 shows desktop 19 Bar 20 restaurant 21 full screen 22 exit 2 We can not shrink the images of the buttons that must be at least 32X32 or even larger
ButtomBar scroll
I assume they have to be 32x32 because it is a touch-screen? If so, maybe you need to adopt some of the design features for the metro style. Maybe you could do a drop down menu with the large icons. I have seen touch-screen cash registers to do it like that. Or you could do it Explorer bar style with several expanding menus.
ButtomBar scroll
YES it is touch screen I'm rebuilding my old application for use on Tablet Lenovo Mx with Windows 10
ButtomBar scroll
I suggest searching this forum for "metro" and "tablet."
ButtomBar scroll
Hello Silvio, you can Change btndyn.prg. [img:1a2zmi37]http&#58;//www&#46;atzwanger-software&#46;com/fw/Sil1&#46;jpg[/img:1a2zmi37] [code=fw:1a2zmi37]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBar, oBtn, oBtn2, oBtn3,oBtn4, oBrw<br />    <span style="color: #00C800;">local</span> nRechts := <span style="color: #000000;">0</span><br />    <br />   USE CUSTOMER<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;">600</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">48</span> <span style="color: #000000;">2007</span> GDIP<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\h</span>csmall.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\u</span>sers.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"first"</span>, <span style="color: #ff0000;">"fourth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>df.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>agenta.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"second"</span>, <span style="color: #ff0000;">"fifth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn3 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\u</span>ser.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>yan.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span> , <span style="color: #ff0000;">"third"</span>, <span style="color: #ff0000;">"sixth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>      <br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn4 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ext.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>rev.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"links"</span>, <span style="color: #ff0000;">"rechts"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> iif<span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, nRechts := <span style="color: #000000;">1</span> , nRechts := <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>    <br /><br /><br />   <span style="color: #00C800;">if</span> Val<span style="color: #000000;">&#40;</span> HB_ATokens<span style="color: #000000;">&#40;</span> FWVERSION <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: #000000;">&#41;</span> > <span style="color: #000000;">17.06</span><br />            oBtn:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn2:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn3:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn4:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      <br />      <br />   <span style="color: #00C800;">endif</span><br /><br />   @ <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 />      DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> ;<br />      COLUMNS <span style="color: #ff0000;">"FIRST"</span>,<span style="color: #ff0000;">"CITY"</span>,<span style="color: #ff0000;">"MARRIED"</span>,<span style="color: #ff0000;">"AGE"</span> ;<br />      CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bChange</span>       := <span style="color: #000000;">&#123;</span> || oBar:<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 />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />Best regards<br />Otto<br /> </div>[/code:1a2zmi37]
ButtomBar scroll
[quote="James Bott":p9nmhgcl]I suggest searching this forum for "metro" and "tablet."[/quote:p9nmhgcl] please the problem is only on Tablet Module when the final user must use the application on Vertical display while on Horizontal Display we can have much space
ButtomBar scroll
[quote="Otto":2zmaomo2]Hello Silvio, you can Change btndyn.prg. [img:2zmaomo2]http&#58;//www&#46;atzwanger-software&#46;com/fw/Sil1&#46;jpg[/img:2zmaomo2] [code=fw:2zmaomo2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBar, oBtn, oBtn2, oBtn3,oBtn4, oBrw<br />    <span style="color: #00C800;">local</span> nRechts := <span style="color: #000000;">0</span><br />    <br />   USE CUSTOMER<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;">600</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">48</span> <span style="color: #000000;">2007</span> GDIP<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\h</span>csmall.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\u</span>sers.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"first"</span>, <span style="color: #ff0000;">"fourth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>df.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\m</span>agenta.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"second"</span>, <span style="color: #ff0000;">"fifth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn3 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\u</span>ser.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>yan.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span> , <span style="color: #ff0000;">"third"</span>, <span style="color: #ff0000;">"sixth"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>      <br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn4 <span style="color: #0000ff;">OF</span> oBar ;<br />      FILE <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ext.bmp"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>rev.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"links"</span>, <span style="color: #ff0000;">"rechts"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> iif<span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, nRechts := <span style="color: #000000;">1</span> , nRechts := <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>    <br /><br /><br />   <span style="color: #00C800;">if</span> Val<span style="color: #000000;">&#40;</span> HB_ATokens<span style="color: #000000;">&#40;</span> FWVERSION <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: #000000;">&#41;</span> > <span style="color: #000000;">17.06</span><br />            oBtn:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn2:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn3:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />            oBtn4:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      <br />      <br />   <span style="color: #00C800;">endif</span><br /><br />   @ <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 />      DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> ;<br />      COLUMNS <span style="color: #ff0000;">"FIRST"</span>,<span style="color: #ff0000;">"CITY"</span>,<span style="color: #ff0000;">"MARRIED"</span>,<span style="color: #ff0000;">"AGE"</span> ;<br />      CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bChange</span>       := <span style="color: #000000;">&#123;</span> || oBar:<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 />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />Best regards<br />Otto<br /> </div>[/code:2zmaomo2][/quote:2zmaomo2] Nice Otto perhaps this feature can be insert on a ribbon tab? I must try
ButtomBar scroll
Otto, I try , it run but I think Fwteam can found a good solution also for the Left type sse your mail thanks
ButtomBar scroll
Otto, On ribbonbar it is cannot possible [img:1yswgx0m]https&#58;//s15&#46;postimg&#46;cc/rv6b5negr/rib&#46;png[/img:1yswgx0m] because ribbon when have a big tab create a tab under perhaps can be changed this feature and insert a button "Next" at the end of window to show the other buttons perhaps can be changed the METHOD[b:1yswgx0m] PopupGroup() CLASS TRBGroup[/b:1yswgx0m] but I not found a solution
ButtomBar scroll
This immediatly solution is buttonbar with control manualy of left and right (horizontal scroll) on place of first and last buttons. Maybe in the new fivewin version this scroll be incresead. Thanks.
ButtomBar scroll
+1 but I need also on ribbonbar now
Button ( text alignment )
I wanna share mode of change alignment of a button native. ( yet don't have in sintax option RIGHT or LEFT and by default is Centered ) Well is simple look: @ 5,5 Button oBtn Prompt Replicate(" ",2)+"&1 - Cheque" Of oDlg Size 190,18 Pixel [b:muwo3jpo]SetAlignTextButton( oBtn, "LEFT" )[/b:muwo3jpo] Function: [code=fw:muwo3jpo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------------------------//</span><br />  <span style="color: #00D7D7;">#define</span> BS_LEFT             0x00000100L<br />  <span style="color: #00D7D7;">#define</span> BS_RIGHT            0x00000200L<br />  <span style="color: #00D7D7;">#define</span> BS_CENTER           0x00000300L<br />  <span style="color: #00D7D7;">#define</span> BS_TOP              0x00000400L<br />  <span style="color: #00D7D7;">#define</span> BS_BOTTOM           0x00000800L<br />  <span style="color: #00D7D7;">#define</span> BS_VCENTER          0x00000C00L<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------------------------//</span><br />  <span style="color: #00C800;">Function</span> SetAlignTextButton<span style="color: #000000;">&#40;</span> oButton, cType <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">If</span> cType == <span style="color: #ff0000;">"LEFT"</span><br />      oButton:<span style="color: #000000;">nStyle</span>:=nOr<span style="color: #000000;">&#40;</span>oButton:<span style="color: #000000;">nStyle</span>,BS_LEFT<span style="color: #000000;">&#41;</span><br />   ElseIf cType == <span style="color: #ff0000;">"RIGHT"</span><br />      oButton:<span style="color: #000000;">nStyle</span>:=nOr<span style="color: #000000;">&#40;</span>oButton:<span style="color: #000000;">nStyle</span>,BS_RIGHT<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />  <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------------------------//</span><br /> </div>[/code:muwo3jpo] My Result: [img:muwo3jpo]http&#58;//i54&#46;tinypic&#46;com/jg3w48&#46;png[/img:muwo3jpo] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Button ( text alignment )
Lailton Thanks... it's other way... [code=fw:2vfngdwj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> BS_LEFT             0x00000100<br /><span style="color: #00D7D7;">#define</span> BS_RIGHT            0x00000200<br /><br /><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> oWnd<br /><span style="color: #00C800;">Local</span> oBtnA, oBtnB, oBtnC<br /><br /><span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> oWnd<br /><br />@ <span style="color: #000000;">2</span>,<span style="color: #000000;">2</span> ButtonBmp oBtnA <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"teste A"</span> Textleft   <span style="color: #0000ff;">Of</span> oWnd <span style="color: #0000ff;">Size</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">30</span><br />@ <span style="color: #000000;">6</span>,<span style="color: #000000;">2</span> ButtonBmp oBtnB <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"teste B"</span> Textright  <span style="color: #0000ff;">Of</span> oWnd <span style="color: #0000ff;">Size</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">30</span><br /><br />__ChangeStyleWindow<span style="color: #000000;">&#40;</span> oBtnA:<span style="color: #000000;">hWnd</span>, BS_LEFT<span style="color: #000000;">&#41;</span><br />__ChangeStyleWindow<span style="color: #000000;">&#40;</span> oBtnB:<span style="color: #000000;">hWnd</span>, BS_RIGHT<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ActivaTe</span> <span style="color: #0000ff;">Window</span> oWnd<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:2vfngdwj] [img:2vfngdwj]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/btnal&#46;png[/img:2vfngdwj]
Button ( text alignment )
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Maybe can change sintax of button to add this feature =] My sugestion for next update.
Button text on two lines
Hello Is it possible to have a button , where the text (cCaption) is locatedt in two rows ? I tryed with : [code:3nvr22gf] @ 1,18 BUTTON "Kies inputtype en " + CRLF + "klik om verder te gaan" OF oDlg ACTION &#40;lOk &#58;= &#46;T&#46; , oDlg&#58;end&#40;&#41;&#41; SIZE 110 , 28 [/code:3nvr22gf] No succes Frank
Button text on two lines
Frank, Here are some previous messages about that. James [quote:27bykk5j]From: André Venturini Scaravelli <andrevs@theway.com.br> Subject: 2 rows in button's caption Date: Thursday, December 21, 2000 4:16 PM Hi, Can a button's caption has 2 rows? Add to Style Button the number 8192 ---------------------------- #define CR Chr( 13 ) // FUNCTION uMultLineBtn_Test() local oDlg, oBtn local cCaption := 'Botones con...' + CR + ; 'caption multilínea.-' + CR + ; 'Para conseguirlo basta con emitir la sencilla sentencia...' + CR + ; 'oBtn:nStyle := ' + CR + ; 'nOr( oBtn:nStyle, 8192 )' DEFINE DIALOG oDlg ; FROM 00, 00 TO 17, 100 ; TITLE cCaption @ 03, 03 BUTTON oBtn PROMPT cCaption ; OF oDlg ; SIZE 100, 070 oBtn:nStyle := nOr( oBtn:nStyle, 8192 ) // this works fine! ACTIVATE DIALOG oDlg CENTERED RETURN NIL ------------------------------------------- Here is how to do it with resources: > I am still looking for a solution which enables me to put 2 (or even more) > lines of text on a button which is created from a .dll resource. I've tried > several things but still haven't found a working solution. You have to: 1. Open your DIALOG resource and go to Edit as text mode. 2. Add the value 8192 at the end of the PUSHBUTTON statement (separate it by a comma). 3. Inside the ON INIT clause of the DIALOG command use oBtn:cTitle() method to set the caption of the button (separate the lines by a CHR( 13 )). That's all. EMG -- EMAG Software Homepage: <!-- m --><a class="postlink" href="http://www.emagsoftware.it">http://www.emagsoftware.it</a><!-- m --> The EMG's ZX-Spectrum Page: <!-- m --><a class="postlink" href="http://www.emagsoftware.it/spectrum">http://www.emagsoftware.it/spectrum</a><!-- m --> The Best of Spectrum Games: <!-- m --><a class="postlink" href="http://www.emagsoftware.it/tbosg">http://www.emagsoftware.it/tbosg</a><!-- m -->[/quote:27bykk5j]
Button ...Menu
se non c'è attivato il manifest per windows xp queste linee seguenti funzionano senza problemi DEFINE BUTTON RESOURCE "XY_PAGES" OF oBar ; MESSAGE TXT_PREVIEW_ON_MULTI_PAGES MENU oPop GROUP naturalmente è stato dichiarato prima il menu : MENU oPop POPUP menuitem ... ENDMENU quando attivo il manifest nel resource mi fa errore perchè sembrerebbe che la classe TOOLBAR che il button è associato non supporta il menu a discesa ... come è possibile ?
Button Action Code oGet:SetFocus NOT working
Dear All , Please let me know where I am doing mistake...! Below Button Action working but aoGET[1]:SetFocus() works only when PRESS SPACE BAR but it does NOT work PRESS ENTER KEY. [code=fw:16brrvaw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;@ &nbsp; <span style="color: #000000;">070</span>, &nbsp; <span style="color: #000000;">200</span> &nbsp;<span style="color: #0000ff;">GET</span> aoGET<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aPrdCat<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;">315</span>, C_GETH <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> C_FCLR, C_BCLR <span style="color: #0000ff;">FONT</span> oApp:<span style="color: #000000;">oFontGet</span> <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp;<br />&nbsp; .....<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">300</span>, <span style="color: #000000;">500</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Save"</span> <span style="color: #0000ff;">SIZE</span> C_BTNW , C_BTNH <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oApp:<span style="color: #000000;">oFontBTN1</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> mprdcat_save<span style="color: #000000;">&#40;</span>@aPrdCat<span style="color: #000000;">&#41;</span> &nbsp;, oWnd:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , aoGET<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// also tried below </span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//ACTION ( mprdcat_save(@aPrdCat) &nbsp;, oWnd:Update() , &nbsp;SetFocus( aoGET[ 1 ]:hWnd ) &nbsp;)</span><br /><br /><br />&nbsp;</div>[/code:16brrvaw] Thanks Shridhar
Button Action Code oGet:SetFocus NOT working
Try [code=fw:2dxp27oz]<div class="fw" id="{CB}" style="font-family: monospace;">aoGET<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2dxp27oz] EMG
Button Action Code oGet:SetFocus NOT working
Dear Sir , It is working below code ...! [b:4f9d8px5] aoBtn[1]:oJump := aoGET[ 1 ][/b:4f9d8px5] [code=fw:4f9d8px5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := < ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mprgcomp_save<span style="color: #000000;">&#40;</span>@aPrdComp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Update</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;aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oJump</span> := aoGET<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetFocus<span style="color: #000000;">&#40;</span> aoGET<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ><br /><br />&nbsp;</div>[/code:4f9d8px5] Thanks you very much for your kind support. Thanks Shridhar
Button Action Code oGet:SetFocus NOT working
[quote="shri_fwh":1i62q5hd]Dear Sir , It is working below code ...! [b:1i62q5hd] aoBtn[1]:oJump := aoGET[ 1 ][/b:1i62q5hd][/quote:1i62q5hd] Right, I forgot oJump. EMG
Button Alt+ tecla
Hola a todos. No se como solucionar un problema que tengo ya que cuando pongo un Botón con el "&" en una letra si le pongo en una WINDOW funciona pero si le pongo en un DIALOG no. He estado probando en la carpeta simple y pasa lo mismo hay algunos que funcionan siempre sobre una WINDOW y otros no los que están en DIALOG. excepto el TESTBUBM, que en un principio en la pantalla que aparece no funciona y si pulsas sobre "From Resources" en la pantalla que aparece si funciona el "&". Podrias indicarme como solucionar el problema. También he visto algunos post del 2011 y se solucionaba con un METHOD pero no he sabido integrarlo. Ayuda, por favor. Un saludo Carlos
Button Alt+ tecla
Mira se ayuda: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=23250&p=125210&hilit=Alt+tecla#p125210">viewtopic.php?f=6&t=23250&p=125210&hilit=Alt+tecla#p125210</a><!-- l --> Salu2
Button Alt+ tecla
Hola Karinha: En la versión de FWH que tengo esta incluida esa modificación o por lo menos lo que comenta en ese post está en la clase button. No obstante gracias por tu tiempo. Un saludo Carlos
Button Alt+ tecla
[quote="colthop":26yvmjdr]Hola a todos. No se como solucionar un problema que tengo ya que cuando pongo un Botón con el "&" en una letra si le pongo en una WINDOW funciona pero si le pongo en un DIALOG no. He estado probando en la carpeta simple y pasa lo mismo hay algunos que funcionan siempre sobre una WINDOW y otros no los que están en DIALOG. excepto el TESTBUBM, que en un principio en la pantalla que aparece no funciona y si pulsas sobre "From Resources" en la pantalla que aparece si funciona el "&". Podrias indicarme como solucionar el problema. También he visto algunos post del 2011 y se solucionaba con un METHOD pero no he sabido integrarlo. Ayuda, por favor. Un saludo Carlos[/quote:26yvmjdr] Carlos, en relacion al ejemplo TESTBUBM prueba lo siguiente: - Edita la clase CONTROL.PRG y copia y pega su contenido al final del ejemplo TESTBUBM (elimina el include "fivewin.ch" que trae la clase y pasa las variables estaticas al principio del prg) - y en la siguiente funcion haz la siguiente modificacion: [code=fw:26yvmjdr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> CallClick<span style="color: #000000;">&#40;</span> nKey, aControls, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> n, cPrompt, nAt, oControl<br />   <br />   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aControls <span style="color: #000000;">&#41;</span><br />      oControl = aControls<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">if</span> oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TBTNBMP"</span> .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TRBTN"</span> ;<br />        .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TBUTTONBMP"</span> .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TBUTTON"</span>  <span style="color: #B900B9;">// Esto es lo que he modificado</span><br /><br /> </div>[/code:26yvmjdr] Pruébalo a ver si funciona (para mi es OK) Aunque lo mejor seria poner: [code=fw:26yvmjdr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">&#40;</span> oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">"TBTNBMP;TRBTN;TBUTTONBMP"</span><br /><br />&nbsp;</div>[/code:26yvmjdr]
Button Alt+ tecla
Hola Cristóbal: He probado lo que me has comentado y ha funcionado lo he pasado a la aplicación y compilando el control.prg con la variación parece que funciona. Muchas gracias por tu aportación, espero que si esta todo bien Antonio pueda incluirlo en la siguiente versión del FWH para no tener que compilar el Control.prg. Un saludo Carlos
Button Alt+ tecla
Antonio ¿Que opinas?
Button Alt+ tecla
Hola Cristóbal: Perdona por tenerte abandonado pero he realizado demasiadas modificaciones y hasta la semana que viene no puedo volver a investigar para terminar. La verdad es que funciona perfecto excepto cuando la tecla es "+" o "-", como he dicho no he tenido tiempo de seguir investigando, pero si que interesaría que se incluyera en la siguiente actualización. Que opinas Antonio. Un saludo. Carlos.
Button Alt+ tecla
+1
Button Bar
Hola, es posible tener mas de una barra de Botones en una Ventana.
Button Bar
Puedes hacerlo con unos pequeños cambios en la Clase TBar. Si la ventana no es MDI, entonces es más sencillo.
Button Bar
Hi All When I used FWH 7.12 I was able to place a button bar on the bottom of a window DEFINE BUTTONBAR oBar 3DLOOK SIZE 45, 45 OF oWnd 2007 DEFINE BUTTONBAR oBar1 3DLOOK SIZE 45, 45 OF oWnd 2007 oBar1:nMode := 4 I am now using 9.11 version and the both buttonbars are at the top. I have stripped down the code and removed other controls but still no luck. [code=fw:1yd6h2zv]<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;">"cms.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00C800;">function</span> test2<span style="color: #000000;">&#40;</span>oMainWnd,cPath,aPrivs,nGstRate,nDivisor<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg,oWnd,oBar,oBar1,oBtn1,oBtn2<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">of</span> oMainWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">37.5</span>,<span style="color: #000000;">110</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">STYLE</span> CMSWIN ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Purchase Orders"</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">'PO1'</span> <span style="color: #0000ff;">of</span> oWnd<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> &nbsp;oBar &nbsp;3DLOOK <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> &nbsp;oBar1 3DLOOK <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; oBar1:<span style="color: #000000;">nMode</span> := <span style="color: #000000;">4</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BTN_EXIT"</span>;<br />&nbsp; &nbsp; &nbsp; FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">'Exit'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>lExit := <span style="color: #00C800;">TRUE</span>,oDlg,oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; TOOLTIP<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Exit Purchases Screen'</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">of</span> oBar1 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SAVE"</span>;<br />&nbsp; &nbsp; &nbsp; FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">'Exit'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>lExit := <span style="color: #00C800;">TRUE</span>,oDlg,oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; TOOLTIP<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Exit Purchases Screen'</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NOWAIT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span><span style="color: #000000;">&#40;</span>lExit<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span><span style="color: #000000;">&#40;</span>WinOpen<span style="color: #000000;">&#40;</span>oMainWnd,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>,lExit<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><br /><br /><br />Any Ideas &nbsp;??<br /><br />Cheers<br /><br />Colin<br /><br /><br /><br /><br /><br />&nbsp;</div>[/code:1yd6h2zv]
Button Bar
Fixed problem Cheers Colin
Button Bar JPG or PNG
Hello Everyone, We are looking to improve the looks of our application home screen. Is it possible to use JPG or PNG instead of BMP on buttonbar? Also, would anyone provide a sample of the their home screen with code? We have not updated our home screen layout in a very long time and we want to provide a more professional look. Thanks in advance for your assistance!
Button Bar JPG or PNG
[img:37den86r]https&#58;//s15&#46;postimg&#46;org/jxivgxs0r/Captura_de_tela_2016_11_01_18_35_41&#46;png[/img:37den86r]
Button Bar JPG or PNG
With resources use type 10 for others images [quote:hw5cz8vp] cut16 10 "./res/g1045A.png" mytest 10 "../icons/blue.ico" isok BITMAP "../bitmaps//level11.bmp" [/quote:hw5cz8vp]
Button Bar JPG or PNG
Thank you so much!