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;">(</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;">)</span><br /> <span style="color: #00C800;">if</span> !<span style="color: #000000;">(</span>cAlias<span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>dbSeek<span style="color: #000000;">(</span>nVal,.t.<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"No encontrado valor exacto"</span><span style="color: #000000;">)</span><br /> nRec := Recno<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">-1</span><span style="color: #000000;">)</span><br /> nValAnt := <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> nVal - field->debe <span style="color: #000000;">)</span><br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nValPos := <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> nVal - field->debe <span style="color: #000000;">)</span><br /> nValAprox := <span style="color: #0000ff;">Min</span><span style="color: #000000;">(</span>nValAnt,nValPos<span style="color: #000000;">)</span> <br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Valor aproximado es "</span>+Transform<span style="color: #000000;">(</span>nValAprox,<span style="color: #ff0000;">"999,999,999.99"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> nValAnt < nValPos<br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">-1</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /> oBrw3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Valor a buscar "</span> + Transform<span style="color: #000000;">(</span>nVal,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">)</span> +CRLF+;<br /> <span style="color: #ff0000;">"Valor anterior "</span> + Transform<span style="color: #000000;">(</span>nValAnt,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">)</span> +CRLF+;<br /> <span style="color: #ff0000;">"Valor Posterior "</span> + Transform<span style="color: #000000;">(</span>nValPos,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">)</span> +CRLF+;<br /> <span style="color: #ff0000;">"Valor Aproximado "</span> + Transform<span style="color: #000000;">(</span>nValAProx,<span style="color: #ff0000;">"999,999.99"</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /> </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]...
...
...
USE AGENTS
OrdSetFocus("nomAgent)
@ 31,0 LISTBOX oBrw FIELDS agents->iatacode,;
agents->agentname,;
agents->agentype;
HEADERS "Codigo",;
"Nombre",;
"Tipo";
PIXEL SIZE oWnd:nWidth,135;
ON DBLCLICK (Movs(.F.),;
oBrw:Refresh())
oBrw:nClrPane := {|| IIF(agents->(ordkeyno()) % 2 == 0 ,RGB(193,221,255),RGB(221,245,255) )}
oBrw:Bkeychar := {|nkey, nFlag| Busca(nKey), oBrw:Refresh()}
@ 165,0 SAY "Buscando:" SIZE 60,40 PIXEL
@ 165,60 SAY oBusca PROMPT cBusca PIXEL SIZE 150,20
...
...
...
FUNCTION Busca(nKey)
IF nKey = 8
cBusca := SUBSTR(cBusca,1,LEN(cBusca)-1)
ELSE
cBusca += CHR(nKey)
ENDIF
SET SOFTSEEK ON
SEEK(cBusca)
SET SOFTSEEK OFF
oBusca:Refresh()
RETURN (.T.)
[/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.ch"
REQUEST DBFCDX
//----------------------------------------------------------------------------//
function Main()
local oWnd, oBrw, hBmp := ReadBitmap( CurDir() + "\go.bmp" )
local oSay, cSearch := ""
USE ( CurDir() + "\Customer" ) VIA "DBFCDX"
Customer->( OrdSetFocus( "LAST" ) )
Customer->( DbGoTop() )
DEFINE WINDOW oWnd TITLE "IncSearch"
@ 1, 1 LISTBOX oBrw ;
FIELDS hBmp, Customer->Last, Customer->First ;
HEADERS "", "Last", "First" ;
SIZE 220, 167
oBrw:bKeyChar = { | nKey, nFlags | Search( nKey, @cSearch ), oBrw:Refresh(),;
oSay:Refresh() }
@ 14, 2 SAY "Searching:" SIZE 60, 30
@ 14, 12 SAY oSay PROMPT cSearch SIZE 80, 30
ACTIVATE WINDOW oWnd ;
ON CLICK MsgInfo( "Click!" )
return nil
//----------------------------------------------------------------------------//
function Search( nKey, cSearch )
if nKey = 8
cSearch = SubStr( cSearch, 1, Len( cSearch ) - 1 )
else
cSearch += Upper( Chr( nKey ) )
endif
Customer->( DbSeek( cSearch, .t. ) )
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;">(</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">(</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">)</span> ADDITIVE <span style="color: #00C800;">for</span> upper<span style="color: #000000;">(</span>alltrim<span style="color: #000000;">(</span>nom_cli<span style="color: #000000;">)</span><span style="color: #000000;">)</span> $ upper<span style="color: #000000;">(</span>factura->nombre<span style="color: #000000;">)</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 /> ALIAS->NOM_CLI<br /> </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;">(</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">(</span>camino+<span style="color: #ff0000;">"tempofac"</span><span style="color: #000000;">)</span> ADDITIVE <span style="color: #00C800;">for</span> upper<span style="color: #000000;">(</span>alltrim<span style="color: #000000;">(</span>nom_cli<span style="color: #000000;">)</span><span style="color: #000000;">)</span> $ upper<span style="color: #000000;">(</span>nombre<span style="color: #000000;">)</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(base,oDlg)
LOCAL oDlg1,oBot1:=ARRAY(3),oGet1:=ARRAY(2),mvar1:=ARRAY(2),oLbx,i,retorno, Bus := .f.
(base)->(DBSETORDER(2))
(base)->(DBGOTOP())
mvar1[1] := SPACE(30)
DEFINE DIALOG oDlg1 RESOURCE "BUSCAR" TITLE "Busqueda" OF oDlg
oDlg1:lHelpIcon := .f.
REDEFINE BROWSE oLbx ID 101 OF oDlg1 ON DBLCLICK oDlg1:End();
ALIAS (base)
ADD COLUMN TO oLbx DATA FieldWBlock( aCampo[1], Select(base) ) ;
SIZE 100 HEADER "Codigo" ALIGN RIGHT
ADD COLUMN TO oLbx DATA FieldWBlock( "nombre", Select(base) ) ;
SIZE 1300 HEADER "Detalle"
REDEFINE GET oGet1[1] VAR mvar1[1] ID 102 OF oDlg1
REDEFINE GET oGet1[2] VAR mvar1[2] ID 105 OF oDlg1
oGet1[1]:bKeyDown := { |nKey,nFlag| bus(base, oGet1[1], oLbx, nKey) }
oGet1[2]:bKeyDown := { |nKey,nFlag| Cam(oGet1[2], nKey, @Bus) }
REDEFINE BUTTON oBot1[1] ID 103 OF oDlg1 ACTION oDlg1:End()
REDEFINE BUTTON oBot1[3] ID 106 OF oDlg1 ACTION ;
BuscarCon(mvar1[2],oLbx,base,@Bus)
ACTIVATE DIALOG oDlg1 ON INIT oGet1[1]:SetFocus()
retorno = (base)->codigo
(base)->(DBSETORDER(1))
RETURN retorno
*********************************************
** Buscar por contenido
STATIC FUNCTION BuscarCon(Texto,oBrw,base,Bus)
LOCAL anterior := SELECT()
IF Bus
SELECT (base)
CONTINUE
ELSE
Bus := .t.
SELECT (base)
LOCATE FOR ALLTRIM(Texto) $ (base)->nombre
ENDIF
SELECT(anterior)
oBrw:BugUp()
oBrw:Refresh()
RETURN nil
*********************************
** Busqueda incremental
FUNCTION Bus(base, oGet, oLbx, nKey)
LOCAL cBus
cBus := LEFT(oGet:cText,oGet:nPos-1) + CHR(nKey)
(base)->(DBSEEK(cBus))
// Se refresca el listbox
oLbx:BugUp()
oLbx:refresh()
RETURN .T.
[/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]
...
#define WA_FOUND 15
#define WA_SIZE 15
...
static function ADO_LOCATE( nWA, lContinue )
local aWAData := USRRDD_AREADATA( nWA )
local oRecordSet := aWAData[ WA_RECORDSET ]
oRecordSet:Find( aWAData[ WA_SCOPEINFO ][ UR_SI_CFOR ], If( lContinue, 1, 0 ) )
aWAData[ WA_FOUND ] = ! oRecordSet:EOF
aWAData[ WA_EOF ] = oRecordSet:EOF
return SUCCESS
...
static function ADO_FOUND( nWA, lFound )
local aWAData := USRRDD_AREADATA( nWA )
lFound = aWAData[ WA_FOUND ]
return SUCCESS
...
aAdoFunc[ UR_FOUND ] := ( @ADO_FOUND() )
[/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://www.colthop.es/imagen1.png[/img:3u0d1tce]
Y yo cuando pongo en mis aplicaciones pongo dos botones me sale así
[img:3u0d1tce]http://www.colthop.es/imagen2.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://www.colthop.es/imagen3.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://www.acessosoft.com.br/img/rola.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://www.atzwanger-software.com/fw/Sil1.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;">(</span><span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"first"</span>, <span style="color: #ff0000;">"fourth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"second"</span>, <span style="color: #ff0000;">"fifth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span> , <span style="color: #ff0000;">"third"</span>, <span style="color: #ff0000;">"sixth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"links"</span>, <span style="color: #ff0000;">"rechts"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> iif<span style="color: #000000;">(</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;">)</span>, oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /><br /> <span style="color: #00C800;">if</span> Val<span style="color: #000000;">(</span> HB_ATokens<span style="color: #000000;">(</span> FWVERSION <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">17.06</span><br /> oBtn:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn2:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn3:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn4:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</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;">(</span> <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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://www.atzwanger-software.com/fw/Sil1.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;">(</span><span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"first"</span>, <span style="color: #ff0000;">"fourth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"second"</span>, <span style="color: #ff0000;">"fifth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span> , <span style="color: #ff0000;">"third"</span>, <span style="color: #ff0000;">"sixth"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> CUSTOMER->MARRIED, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"MARRIED"</span> <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SINGLE"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</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;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"links"</span>, <span style="color: #ff0000;">"rechts"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> iif<span style="color: #000000;">(</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;">)</span>, oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /><br /> <span style="color: #00C800;">if</span> Val<span style="color: #000000;">(</span> HB_ATokens<span style="color: #000000;">(</span> FWVERSION <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">17.06</span><br /> oBtn:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn2:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn3:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">0</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn4:<span style="color: #000000;">bBmpNo</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRechts = <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</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;">(</span> <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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://s15.postimg.cc/rv6b5negr/rib.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;">(</span> oButton, cType <span style="color: #000000;">)</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;">(</span>oButton:<span style="color: #000000;">nStyle</span>,BS_LEFT<span style="color: #000000;">)</span><br /> ElseIf cType == <span style="color: #ff0000;">"RIGHT"</span><br /> oButton:<span style="color: #000000;">nStyle</span>:=nOr<span style="color: #000000;">(</span>oButton:<span style="color: #000000;">nStyle</span>,BS_RIGHT<span style="color: #000000;">)</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://i54.tinypic.com/jg3w48.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;">(</span><span style="color: #000000;">)</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;">(</span> oBtnA:<span style="color: #000000;">hWnd</span>, BS_LEFT<span style="color: #000000;">)</span><br />__ChangeStyleWindow<span style="color: #000000;">(</span> oBtnB:<span style="color: #000000;">hWnd</span>, BS_RIGHT<span style="color: #000000;">)</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://www.sitasoft.net/fivewin/screen/btnal.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 (lOk := .T. , oDlg:end()) 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 /> @ <span style="color: #000000;">070</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">GET</span> aoGET<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> aPrdCat<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</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 /> <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 /> <br /> .....<br /><br /> @ <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 ;<br /> <span style="color: #0000ff;">FONT</span> oApp:<span style="color: #000000;">oFontBTN1</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> mprdcat_save<span style="color: #000000;">(</span>@aPrdCat<span style="color: #000000;">)</span> , oWnd:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> , aoGET<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #B900B9;">// also tried below </span><br /> <span style="color: #B900B9;">//ACTION ( mprdcat_save(@aPrdCat) , oWnd:Update() , SetFocus( aoGET[ 1 ]:hWnd ) )</span><br /><br /><br /> </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;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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 /> aoBtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bAction</span> := < ||<br /> mprgcomp_save<span style="color: #000000;">(</span>@aPrdComp<span style="color: #000000;">)</span><br /> oWnd:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> aoBtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">oJump</span> := aoGET<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> SetFocus<span style="color: #000000;">(</span> aoGET<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /><br /> ><br /><br /> </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;">(</span> nKey, aControls, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</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;">(</span> aControls <span style="color: #000000;">)</span><br /> oControl = aControls<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">if</span> oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"TBTNBMP"</span> .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"TRBTN"</span> ;<br /> .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"TBUTTONBMP"</span> .OR. oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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 /> <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">(</span> oControl:<span style="color: #000000;">Classname</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TBTNBMP;TRBTN;TBUTTONBMP"</span><br /><br /> </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;">(</span>oMainWnd,cPath,aPrivs,nGstRate,nDivisor<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg,oWnd,oBar,oBar1,oBtn1,oBtn2<br /><br /><br /><br /> <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 /> <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 /> <span style="color: #0000ff;">STYLE</span> CMSWIN ;<br /> <span style="color: #0000ff;">TITLE</span> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Purchase Orders"</span> <span style="color: #000000;">)</span><br /><br /><br /> oWnd:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">{</span> || oDlg:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <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 /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar 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 /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> 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 /> oBar1:<span style="color: #000000;">nMode</span> := <span style="color: #000000;">4</span><br /><br /><br /> <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 /> FLAT ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">'Exit'</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span>lExit := <span style="color: #00C800;">TRUE</span>,oDlg,oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>;<br /> TOOLTIP<span style="color: #000000;">(</span><span style="color: #ff0000;">'Exit Purchases Screen'</span><span style="color: #000000;">)</span><br /><br /><br /> <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 /> FLAT ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">'Exit'</span> ;<br /> <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">(</span>lExit := <span style="color: #00C800;">TRUE</span>,oDlg,oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>;<br /> TOOLTIP<span style="color: #000000;">(</span><span style="color: #ff0000;">'Exit Purchases Screen'</span><span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NOWAIT</span> ;<br /> <span style="color: #0000ff;">VALID</span><span style="color: #000000;">(</span>lExit<span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">VALID</span><span style="color: #000000;">(</span>WinOpen<span style="color: #000000;">(</span>oMainWnd,<span style="color: #000000;">1</span><span style="color: #000000;">)</span>,lExit<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">(</span><span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><br /><br /><br />Any Ideas ??<br /><br />Cheers<br /><br />Colin<br /><br /><br /><br /><br /><br /> </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://s15.postimg.org/jxivgxs0r/Captura_de_tela_2016_11_01_18_35_41.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!
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.