topic
stringlengths
1
63
text
stringlengths
1
577k
Como añado una rama a un determino HITEM?
Antonio, Mire el ejemplo pero no me soluciona lo que necesito. yo tengo en un archivo txt (suponte) los datos de los hitem, del cprompt y del parent del que depende ese cprompt. pero no se como indicarle que un determinado cprompt se inserte en otro. o sea, tengo esto: cprompt "uno" cprompt "dos" cpromtp "tres" y necesito que el cprompt "tres" se inserte en el "dos". no se como decirle eso. gracias
Como añado una rama a un determino HITEM?
Gustavo, Revisa el ejemplo FWH\samples\treedlg.prg. Hace exactamente eso: oItem1 = oTree:Add( "First" ) oItem1:Add( "One" ) oItem1:Add( "Two" ) oItem1:Add( "Three" ) oItem2 = oTree:Add( "Second" ) oItem2:Add( "Hello" ) oItem2:Add( "World" ) oItem3 = oTree:Add( "Third" ) oItem3:Add( "Last" ) oItem3:Add( "item" )
Como añado una rama a un determino HITEM?
Antonio, Lo que necesito es "decirle" donde añadir el item, no de la forma que lo pones ahi, porque no se cuantos item son y cuantas ramas tiene cada item en si. pienso que haciendo "recursividad" lo puedo solucionar, pense que habia un "indice" para cada "item" en donde pueda decirle "añadi al item que tiene el indice tal... lo siguiente..." gracias.
Como bloquear las columnas del xbrowse
Hola Foro: Necesito por favor algun ejemplo de como mostrar solo las columnas ( campos) que me interezan de un dbf, ya que al usar la clase xbrowse, siempre me carga todos los campos en el browse. El código que uso es: WITH OBJECT ( oBrw := TXBrowse():New( oWnd ) ) :SetRDD( "Ciudades" ) WITH OBJECT :aCols[01] :bStrData := { || Transf( Ciudades->Codigo , "@E 9999" ) } :cHeader := "CODIGO" :nWidth := 100 END :CreateFromCode() END Como evito que me muestre los otros campos ?? Ya que siempre al cargar la ventana, salen todos los campos que deseo mantener ocultos. Se agredece algun código de ejemplo.
Como bloquear las columnas del xbrowse
Gracias Oskar: Funcionó OK, muchas gracias. Me tenía complicado esto. Parece que mi error era que ademas ponía al comienzo el SetRDD( "alias" ) , y este método carga todas las columnas, sin distinción. Luego lo mejor es ponerla al final antes de :CreateFromCode() o no utilizarla. Juan
Como borrar Varios Registros utilizando fwhMariaDB
Hola amigos del forum. Estoy intentando borrar varios registros que cumplen ciertas condiciones: CODIGO VIGENCIA VALOR 010036 2016 100 010036 2017 200 010040 2013 120 010040 2014 80 010040 2015 50 . . . Osea quiero borrar todos los registros del codigo 010036, la rutina que utililzo siempre me deja un registro sin borrar, este es el codigo: cCSql :="DELETE " + "* " + "FROM " + "impcont " + "WHERE " + "CODIGO='" + oUni:ccodigop + "'" TRY oCn:Execute(cCSql) Msginfo("registros Borrados " ) CATCH oError MsgInfo("No pude ejecutar el comando " ) RETURN(.F.) END
Como borrar Varios Registros utilizando fwhMariaDB
Is codigo VarChar(6) ? Such behavior can be expected when you save data with trailing spaces. In any RDBMS like MySql, it is a good practice to save trimmed data. Please try DELETE FROM <table> WHERE RTRIM(codigo) = '<yourvalue>'
Como borrar Varios Registros utilizando fwhMariaDB
Mr. Rao thanks, solved Perfect is VarChar code (6) cCmdSql :="DELETE FROM impcont WHERE rtrim(CODIGO)" + "='" + oUni:ccodigop + "'" TRY oApp:oCn:Execute(cCmdSql) Msginfo("Tabla Con los registros Borrados " ) CATCH oError MsgInfo("No pude ejecutar el comando " ) RETURN(.F.) END
Como borrar todo el contenido de una carpeta...
Hola a todos... Quiero borrar todas las tablas que se encuentren en una carpeta concreta. Yo estoy utilizando sin exito la siguiente instrucción. DELETE file (CURDIR()+'\ventas_temp\*.DBF') No da error pero no hace nada.. Alguna idea?? Saludos y gracias.. Elías Torres.
Como borrar todo el contenido de una carpeta...
Prueba con el siguiente código. [code:12c9v151] aFile&#58;=Directory&#40;CurDir&#40;&#41;+'\ventas_temp\*&#46;DBF'&#41; AEval&#40;aFile,&#123;|aFile|CurDir&#40;&#41;+'\ventas_temp\+aFile&#91;F_NAME&#93;&#41;&#125;&#41; [/code:12c9v151]
Como borrar todo el contenido de una carpeta...
Biel, Se te pasó la llamada a FErase(): AEval(aFile,{|aFile| FErase( CurDir()+'\ventas_temp\+aFile[F_NAME] ) } )
Como borrar todo el contenido de una carpeta...
jaja <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> cierto, y sin el fErase, poco borraremos. [code:p4mt49ru]AEval&#40;aFile,&#123;|aFile| FErase&#40; CurDir&#40;&#41;+'\ventas_temp\'+aFile&#91;F_NAME&#93; &#41; &#125; &#41;[/code:p4mt49ru]
Como borrar todo el contenido de una carpeta...
Gracias Biel y Antonio, lo probaré y les comento.... Saludos. Elías Torres.
Como borrar todo el contenido de una carpeta...
Hola... Bueno comentar que he probado lo que me habeis puesto y ha ido todo sobre ruedas... Gracias.. Saludos. Elías Torres.
Como borro el arreglo utilizado en un combobox?
Hola amigos Por favor si alguien me indica como borrar los elementos de un arreglo utilizado en un combobox en tiempo de ejecucion. Actualmente puedo agregar; no logro eliminar los anteriores.La idea es que dependiendo de la clasificacion lleno el arreglo de acategoriaEJEMPLO:REDEFINE COMBOBOX o1 var XCLASIFICACION id 19 of odlg ; ITEMS ACLASE ; ON CHANGE ARREGLA1(xCLASIFICACION,@osele,@acategoria,@XSELE) REDEFINE COMBOBOX oSELE var XSELE id 20 of odlg ; ITEMS aCategoria ...................FUNC ARREGLO1(xCLASIFICACION,osele,acategoria,XSELE)aCategoria:={ }IF XCLASIFICACION="PROVINCIA" osele:add("Panama" ) osele:add("Cocle" )ELSEif XCLASIFICACION="PAIS " osele:add("COSTA RICA" ) osele:add("COLOMBIA" )ENDIFosele:refresh()RETURN(NIL)Saludos,erick almanza FW805,XHARBOUR 1.10, BCC55, MYSQL
Como borro el arreglo utilizado en un combobox?
oCbx:setitems({})
Como borro el arreglo utilizado en un combobox?
asTipacc:={}oTIPACC:setitems(adTipacc)
Como borro una rama de un arbol?
Hola. Como elimino una rama de un arbol? Mi arbol se llama ::oTree, lo que hice es posicionarme en la rama que quiero oItem := ::oTree:hitTest( nRow, nCol, nKeyFlags ) y me imagine que haciendo: oItem:delete() se borraria, pero no. como lo tengo que hacer? gracias.
Como borro una rama de un arbol?
Estimado Gustavo, Mira como lo hacemos en FWH\samples\pim.prg [code=fw:rm6emkfj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Delete"</span> &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oTree:<span style="color: #000000;">GetSelected</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> oTree:<span style="color: #000000;">GetSelected</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTree:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBtnSave:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span></div>[/code:rm6emkfj]
Como cambiar color y tamaño de las fuentes....
Hola a todos... Esta pregunta será para muchos muy simples pero para los que empezamos con esto de fwppc se nos complica un poco... Quería saber como puedo cambiar el color, el tamaño,etc... de las etiquetas, es decir de los texto que me creo. Utilizo el Pelles C para crearme los recursos... Un saludo y gracias. Elías Torres.
Como cambiar color y tamaño de las fuentes....
Elías, En samples\Tutor06.prg tienes un ejemplo de cómo cambiarle el color al SAY de un diálogo: REDEFINE SAY ID 100 OF oDlg COLOR "GR+/BG" Si quisieras cambiarle el tamaño del font tambien, entonces harías: DEFINE FONT oFont NAME "Verdana" SIZE 0, -12 REDEFINE SAY ID 100 OF oDlg COLOR "GR+/BG" FONT oFont y después de ACTIVATE DIALOG ... oFont:End() // para destruir el font
Como cambiar el dato de una columna en xbrowse
Amigos, tengo un xbrowse y debo cambiar el dato de una columna en tiempo de ejecución. E intentado de esta manera [code=fw:1cutxrdl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw : <span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span> : <span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> || oRs : <span style="color: #000000;">sec1</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:1cutxrdl] Pero no funciona. Alguna idea? Muchísimas gracias. Saludos
Como cambiar el dato de una columna en xbrowse
Espero y te sirva [code=fw:2864mj1z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrow2:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bEditValid</span>   := <span style="color: #000000;">&#123;</span> | oLeo, oCol | ValidaCntidad<span style="color: #000000;">&#40;</span> oLeo, oCol, oBrow2 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> ValidaCntidad<span style="color: #000000;">&#40;</span> oLeo, oCol, oBrow2 <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">IF</span> oLeo:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span><br />        <span style="color: #00C800;">RETURN</span> .T.<br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #0000ff;">SELECT</span> INVENTADET<br />    <span style="color: #00C800;">IF</span> ARLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        REPLACE INVENTADET->CONTADO     WITH    oLeo:<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">ENDIF</span><br />    DbUnLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oBrow2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> .T.<br /> </div>[/code:2864mj1z]
Como cambiar el dato de una columna en xbrowse
Muchas gracias, funcionó perfectamente. Gracias
Como cambiar el font en cada linea en xbrowse
En wbrowse de hernan hay un codeblock para es propositooLbx:bFont := {|nRow,nCol,nStyleLine| my_SetFont( nRow, nStyleLine , oLbx ,_NOLBX,NOLBX,oFont1,oFont2,condtota ) }en xbrowse no hay para poner un codeblock ni a nivel de objto browse ni de objetos columnas.Gracias
Como cambiar el font en cada linea en xbrowse
Vladimir,oCol:oDataFont := { || ... devolver el font a usar ... }Ejemplo:oCol:oDataFont := { || If( ::oBrw:KeyNo() % 2 == 0, oFont, oBold ) }
Como cambiar titulo en Dialog desde Recursos
Antonio ¿Como puedo cambiar el titulo de un dialogo creado desde recursos?. En FWH indicando oDlg:cTitle := "nuevo texto" funciona pero con FWPPC no. Al parecer no tiene esta data. Saludos
Como cambiar titulo en Dialog desde Recursos
Toni, Prueba con: ACTIVATE DIALOG oDlg ON INIT oDlg:SetText( "Titulo" )
Como cambiar titulo en Dialog desde Recursos
Antonio Funciona perfecto. Gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Como cambiar um BMP de um botão BTNBMP em tempo de execução?
Antonio e amigos, é possível trocar a imagem de um BTNBMP em tempo de execução: @ 10,20 BTNBMP oBtn resource "REST2" TOP SIZE 60, 60 OF wnd algo como: obtn:loadbmp(getresources(),"OUTRORECURSO") Grato Aoki
Como cambiar um BMP de um botão BTNBMP em tempo de execução?
Hola boton:loadbitmaps("bitmap") // cambias el bitmap boton:settext("texto") // cambias el texto boton:refresh() saludos Marcelo
Como cambiar um BMP de um botão BTNBMP em tempo de execução?
gracias marcelo !
Como cambiar un say
Hola tengo definido un say desde un recurso y necesito cambiarlo en tiempo de ejecución, probé así pero no funciona, en el recurso no tengo asignado ningún nombre al say [code=fw:1yd1zw7f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oChex<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">lexporta</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span>; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span> <span style="color: #000000;">&#40;</span>iif<span style="color: #000000;">&#40;</span>oData:<span style="color: #000000;">lexporta</span>,oSay:<span style="color: #000000;">settext</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"País"</span><span style="color: #000000;">&#41;</span>,oSay:<span style="color: #000000;">settext</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Localidad"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,oSay:<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 /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Say</span> oSay <span style="color: #0000ff;">Var</span> <span style="color: #ff0000;">"Localidad"</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">501</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br />&nbsp;</div>[/code:1yd1zw7f] Que tengo que cambiar??? Gracias
Como cambiar un say
Hice lo siguiente y funciona [code local oSay etc etc REDEFINE CHECKBOX oChex[7] VAR oData:lexporta id 500 of oFold:adialogs[1] update; ON CHANGE (iif( oData:lexporta ,oSay:settext("País"),oSay:settext("Localidad")),oSay:refresh()) REDEFINE Say oSay id 501 of oFold:adialogs[1] update [/code] cuando inicia el diálogo no aparece nada,y al hacer los cambios en el checkbox genera los textos, pero lo que necesito es que aparezca cuando inicio el diálogo ya sea dependiendo de la condición que sea una cosa u otra
Como cambiar un say
Bueno seguí probando y la solución que encontré es la siguiente [code=fw:h5svfgmd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> oSay<br />&nbsp;etc etc<br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oChex<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> oData:<span style="color: #000000;">lexporta</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span>;<br />&nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>oSay:<span style="color: #000000;">settext</span><span style="color: #000000;">&#40;</span>iif<span style="color: #000000;">&#40;</span>oData:<span style="color: #000000;">lexporta</span>,<span style="color: #ff0000;">"País"</span>,<span style="color: #ff0000;">"Localidad"</span><span style="color: #000000;">&#41;</span>,oSay:<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: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Say</span> oSay <span style="color: #0000ff;">id</span> <span style="color: #000000;">501</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">update</span><br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ODLGCLI <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>oSay:<span style="color: #000000;">settext</span><span style="color: #000000;">&#40;</span>iif<span style="color: #000000;">&#40;</span>oData:<span style="color: #000000;">lexporta</span>,<span style="color: #ff0000;">"País"</span>,<span style="color: #ff0000;">"Localidad"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,oNcli:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,.f.<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:h5svfgmd] Gracias
Como cambiar un say
oSay:SetText( ... )
Como cambio el caption de un dialogo ?
Quiero cambiar el caption en medio de un proceso Si alguien me puede ayudar, gracias Saludos, Gonzalo
Como cambio el caption de un dialogo ?
Gonzalo, oDlg:SetText( cText )
Como cambio el caption de un dialogo ?
Gracias Antonio, Estaba entrampado con el oDlg:cCaption := "hola" Saludos Gonzalo
Como cambio la FONT del encabezado de un GROUP?
Gracias.
Como cambio la FONT del encabezado de un GROUP?
Hola: En un reporte, primero debes definir los fonts que usaras [code=fw:2038hpd7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-08</span><br />     <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-08</span> BOLD<br />     <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont3 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-10</span> BOLD ITALIC</div>[/code:2038hpd7] Luego cuando defines el report indicas que lo usaras [code=fw:2038hpd7]<div class="fw" id="{CB}" style="font-family: monospace;">REPORT oRep <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Listas de precios"</span>  <span style="color: #0000ff;">FONT</span>  oFont1,oFont2,oFont3</div>[/code:2038hpd7] Finalmente, cuando defines el grupo le asignas el font [code=fw:2038hpd7]<div class="fw" id="{CB}" style="font-family: monospace;">GROUP oGru <span style="color: #0000ff;">ON</span> base01->marca  HEADER  base01->marca1 <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">3</span>;<br />         FOOTER <span style="color: #ff0000;">"Items:"</span>+STR<span style="color: #000000;">&#40;</span>oGru:<span style="color: #000000;">nCounter</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">2</span></div>[/code:2038hpd7] Espero te sirva
Como cambio la FONT del encabezado de un GROUP?
Gracias. Pero me referia al group que pones en los dialogos (el rectángulo que arriba a la izquierda podes ponerle un texto) gracias.
Como cambio la FONT del encabezado de un GROUP?
Ah, perdon Asi: [code=fw:1j1kefto]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">10</span> , <span style="color: #000000;">10</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> ;<br />&nbsp;LABEL <span style="color: #ff0000;">"Prueba"</span>;<br /><span style="color: #0000ff;">FONT</span> oFont<br />&nbsp;</div>[/code:1j1kefto] o [code=fw:1j1kefto]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> GROUP oGroup <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">COLOR</span> GetSysColor<span style="color: #000000;">&#40;</span> COLOR_HIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Prueba"</span></div>[/code:1j1kefto]
Como cambio la FONT del encabezado de un GROUP?
gracias
Como cambio los colores en rbbtn ? SOLUCIONADO
Estimados: Alguien tendria un ejemplo de como cambiar los colores de un rbbtn usado como boton no en las ribbon Gracias
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben [code=fw:wu0zkx4c]<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;">"ribbon.ch"</span> <br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBtn1, oBtn2, oBtn3, oBtn4<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> RBBTN oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oWnd BORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">ROUND</span> ROUNDSIZE <span style="color: #000000;">2</span> <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LINECOLORS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GRADIANT <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.3</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.7</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">252</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;oBtn1:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:wu0zkx4c]
Como cambio los colores en rbbtn ? SOLUCIONADO
Daniel: Toman el color del fondo del Dialogo, solo cuando paso el raton por encima toman el color, que luego desaparece cuando vuelvo a sacar el raton. Alguna otra sugerencia...
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben a mi me trabaja perfectamente el ejemplo que te puse, podrias colocar el codigo que estas usando de forma que podamos reproducir el mismo error Normal [img:1igjgmc8]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/rbb1&#46;png[/img:1igjgmc8] Mouse Over [img:1igjgmc8]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/rbb2&#46;png[/img:1igjgmc8] Left Button Down (presionado) [img:1igjgmc8]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/rbb3&#46;png[/img:1igjgmc8]
Como cambio los colores en rbbtn ? SOLUCIONADO
Daniel: Te dejo el código REDEFINE RBBTN oBoton2 ID 250 OF oDlg ; ACTION( lSaleAdd:=.t., oDlg:End()) BITMAP "SALIR2" ; PROMPT "&Cancelar" LEFT BORDER ROUND ROUNDSIZE 2 ; LINECOLORS RGB( 255,255,255 ), RGB( 255, 0, 0); GRADIANT { { 0.3, RGB( 254, 154, 128 ), RGB( 254, 154, 128 ) }, ; { 0.7, RGB( 252, 85, 40 ), RGB( 181, 61, 29 ) } } oBoton2:bClrGradNormal = { | lPressed | if ( lPressed,; { { 1, RGB( 181, 61, 29 ), RGB( 254, 154, 128 ) } },; { { 1, RGB( 254, 154, 128 ), RGB( 181, 61, 29 ) } } ) } Gracias...
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben... dentro del recurso debes definir el botton como TRBBTN (tipo custom)
Como cambio los colores en rbbtn ? SOLUCIONADO
Daniel: Lo tengo como tu dices, lo que ocurre es que el Dialogo tiene un brush y esta así: Define Dialog oDlg......Brush oBrush Transparent <<<--- Este [b:mejp5ccn]Transparent[/b:mejp5ccn] me evita declarar los SAY que tengo en el dialogo, o sea que me evita hacer un Redefine Say ....Transparent por cada say. Si saco el Transparent del dialogo funciona bien. Como puedo hacer para que el boton no sea transparente, si hago oBtn:lTransparent:=.f. el boton sigue transparente. Gracias
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben. Cuando usas transparent en el dialogo ese asigna la transparebcia a sus controles hijos a execpcion de algunos, como es el caso de TGET, TXBROWSE, TBTNBMP, etc te planteo 2 formas de resolverlo 1. sin tocar la clase TDIALOG: en el ON INT del comando ACTIVATE asignas los controles que no seran transparentes, antes no puedes hacerlo pq el dialogo en si aun no se ha "creado" [code=fw:2zvodrr1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oBtn:<span style="color: #000000;">lTransparent</span> := .F.</div>[/code:2zvodrr1] 2. Modificar la clase TDIALOG y asignale la execpcion en em METHOD INITIATE cambia estas lineas [code=fw:2zvodrr1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#ifdef __HARBOUR__<br />      AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aControls</span>,;<br />             <span style="color: #000000;">&#123;</span> | o | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Upper<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> $ ;<br />             <span style="color: #ff0000;">"TGET;TMULTIGET;TBTNBMP;TCOMBOBOX;TWBROWSE;TCBROWSE;TXBROWSE;TLISTBOX;TRBTN"</span> .and. ;<br />               ! o:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TXBROWSE'</span> <span style="color: #000000;">&#41;</span>,;<br />                         o:<span style="color: #000000;">lTransparent</span> := .t.,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />#else<br />      AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aControls</span>,;<br />             <span style="color: #000000;">&#123;</span> | o | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Upper<span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> $ ;<br />             <span style="color: #ff0000;">"TGET;TMULTIGET;TBTNBMP;TCOMBOBOX;TWBROWSE;TCBROWSE;TXBROWSE;TLISTBOX;TRBTN"</span>,;<br />                         o:<span style="color: #000000;">lTransparent</span> := .t.,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />#endif<br /> </div>[/code:2zvodrr1]
Como cambio los colores en rbbtn ? SOLUCIONADO
Daniel: GRACIAS, funcionando. Por el momento le asignare la clausola en el on init, luego vere si se puede asignarle los colores con SkinButtons()... Gracias de nuevo.
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben, Perdona que pregunte algo ya que cerraste tu tema. Daniel : Si cambio los colores directamente a la clase, para que todos los botones manejen el mismo color (degradado) afectaria a los botones que tengo en la ribbon ?? o es otra clase aparte ? Saludos
Como cambio los colores en rbbtn ? SOLUCIONADO
Raymundo: No hay problema, peguntando se aprende. Creo que si cambias los colores desde la clase, cambiaran los colores de los botones de la ribbon. Para asegurarte podrías hacer una prueba, aunque creo que hay que esperar que se puedan usar con SkinButtons() Saludos
Como cambio los colores en rbbtn ? SOLUCIONADO
[quote="Raymundo Islas M.":1zlkkhsn]Daniel : Si cambio los colores directamente a la clase, para que todos los botones manejen el mismo color (degradado) afectaria a los botones que tengo en la ribbon ?? o es otra clase aparte ?[/quote:1zlkkhsn] Si efectivamente se cambian todos los colores... [quote="Ruben Fernandez":1zlkkhsn]Para asegurarte podrías hacer una prueba, aunque creo que hay que esperar que se puedan usar con SkinButtons()[/quote:1zlkkhsn] Ruben, SkinButtons es una funcion que trabaja sobre los botones propios de window (los qu eno sproporciona el api), la clase TRBtn, TBtnBmp son propias de fivewin, por lo tanto, dicha funcion no trabaja sobre estas clases
Como cambio los colores en rbbtn ? SOLUCIONADO
Ruben... Te dejo un ejemplo de como implementar tu propia clase SkinButton [url:2n16r7is]http&#58;//www&#46;sitasoft&#46;net/fivewin/samples/rbskin&#46;zip[/url:2n16r7is] [code=fw:2n16r7is]<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;">"ribbon.ch"</span> <br /><br /><span style="color: #00D7D7;">#define</span> SKIN_DEFAULT  <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> SKIN_RED      <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SKIN_GREEN    <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> SKIN_GRAY     <span style="color: #000000;">4</span><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> oBtn1, oBtn2, oBtn3<br />   <span style="color: #00C800;">local</span> aSkin := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />   <br />   <br />   BuildSkin<span style="color: #000000;">&#40;</span> aSkin <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> RBBTN oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oWnd BORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">ROUND</span> ROUNDSIZE <span style="color: #000000;">2</span> <span style="color: #0000ff;">CENTER</span> <br />   <br />   @ <span style="color: #000000;">70</span>, <span style="color: #000000;">30</span> RBBTN oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oWnd BORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">ROUND</span> ROUNDSIZE <span style="color: #000000;">2</span> <span style="color: #0000ff;">CENTER</span> <br />   <br />   @ <span style="color: #000000;">110</span>, <span style="color: #000000;">30</span> RBBTN oBtn3 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">OF</span> oWnd BORDER <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">ROUND</span> ROUNDSIZE <span style="color: #000000;">2</span> <span style="color: #0000ff;">CENTER</span> ;<br />             <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aSkin<span style="color: #000000;">&#91;</span> SKIN_DEFAULT <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetSkin</span><span style="color: #000000;">&#40;</span> oBtn1 <span style="color: #000000;">&#41;</span>, oBtn1:<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 />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetSkin</span><span style="color: #000000;">&#40;</span> oBtn1 <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetSkin</span><span style="color: #000000;">&#40;</span> oBtn2 <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetSkin</span><span style="color: #000000;">&#40;</span> oBtn3 <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 /><br /><br /><span style="color: #00C800;">FUNCTION</span> BuildSkin<span style="color: #000000;">&#40;</span> aSkin <span style="color: #000000;">&#41;</span><br />   <br />   <br />   <span style="color: #B900B9;">//default skin</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_DEFAULT <span style="color: #000000;">&#93;</span> = TSkinRBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #B900B9;">//skin red </span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span> = TSkinRBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxIn</span>  = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxOut</span> = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aGradiant</span>  = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.3</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.7</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">252</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>   <br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_RED <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">29</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>                                    <br /><br />   <span style="color: #B900B9;">//skin green</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span> = TSkinRBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxIn</span>  = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxOut</span> = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aGradiant</span>  = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.3</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.7</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">100</span>  <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>   <br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GREEN <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">110</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">110</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">110</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">110</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>   <br /><br />   <span style="color: #B900B9;">//skin green</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span> = TSkinRBtn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxIn</span>  = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBoxOut</span> = RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aGradiant</span>  = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.3</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.7</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>  <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>   <br />   aSkin<span style="color: #000000;">&#91;</span> SKIN_GRAY <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />                                        <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>     <br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#define</span> BLUE0               RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">218</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">243</span> <span style="color: #000000;">&#41;</span>      <br /><span style="color: #00D7D7;">#define</span> BLUE1               RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #00D7D7;">#define</span> BLUEBOX0            RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">141</span>, <span style="color: #000000;">178</span>, <span style="color: #000000;">227</span> <span style="color: #000000;">&#41;</span>      <br /><span style="color: #00D7D7;">#define</span> BLUEBOX2            RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">248</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">CLASS</span> TSkinRBtn<br /><br />   <span style="color: #00C800;">DATA</span>   bClrGradNormal<br />   <span style="color: #00C800;">DATA</span>   aClrGradOver<br />   <span style="color: #00C800;">DATA</span>   bClrGradSubOver<br />   <span style="color: #00C800;">DATA</span>   aClrGradUnder<br />   <span style="color: #00C800;">DATA</span>   aClrGradBack<br />   <span style="color: #00C800;">DATA</span>   aGradiant<br />   <span style="color: #00C800;">DATA</span>   bClrText<br />   <span style="color: #00C800;">DATA</span>   bClrGradSelectPress<br />   <span style="color: #00C800;">DATA</span>   bClrGradSelect<br />   <span style="color: #00C800;">DATA</span>   aClrGradBtnGr <br />   <span style="color: #00C800;">DATA</span>   nClrBoxIn, nClrBoxOut<br />   <br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> bClrGradNormal, aClrGradOver, bClrGradSubOver, aClrGradUnder,;<br />               aClrGradBack, aGradiant, bClrText, bClrGradSelectPress, bClrGradSelect,;<br />               aClrGradBtnGr <span style="color: #000000;">&#41;</span><br />               <br />   <span style="color: #00C800;">METHOD</span> SetSkin<span style="color: #000000;">&#40;</span> oRBtn <span style="color: #000000;">&#41;</span>               <br />               <br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> bClrGradNormal, aClrGradOver, bClrGradSubOver, aClrGradUnder,;<br />               aClrGradBack, aGradiant, bClrText, bClrGradSelectPress, bClrGradSelect,;<br />               aClrGradBtnGr, nClrBoxIn, nClrBoxOut, nRound <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSkinRBtn<br />   <br />   <span style="color: #00C800;">DEFAULT</span> aGradiant := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0.3</span>, BLUE0, BLUE0 <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.7</span>, BLUE1, BLUE0 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   <br />   <span style="color: #00C800;">DEFAULT</span> nClrBoxOut := BLUEBOX0, nClrBoxIn := BLUEBOX2<br />            <br />   <span style="color: #00C800;">DEFAULT</span> bClrGradNormal := <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />     <span style="color: #000000;">&#123;</span> ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">254</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">169</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">251</span>, <span style="color: #000000;">179</span>, <span style="color: #000000;">99</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">155</span>,  <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">239</span>,  <span style="color: #000000;">173</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />     <span style="color: #000000;">&#125;</span>,;<br />     <span style="color: #000000;">&#123;</span>;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span>,  <span style="color: #000000;">86</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>,  <span style="color: #000000;">153</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />     <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> bClrGradSubOver := <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lPressed,; <br />     <span style="color: #000000;">&#123;</span> ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">248</span>, <span style="color: #000000;">187</span>, <span style="color: #000000;">107</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">171</span>, <span style="color: #000000;">98</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">154</span>,  <span style="color: #000000;">63</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">164</span>,  <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>;<br />     <span style="color: #000000;">&#125;</span>,;<br />     <span style="color: #000000;">&#123;</span>;<br />       <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />       <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span>,  <span style="color: #000000;">86</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>,  <span style="color: #000000;">153</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>;<br />      <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         <br />   <span style="color: #00C800;">DEFAULT</span> aClrGradUnder := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span> , nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">248</span>,<span style="color: #000000;">186</span>,<span style="color: #000000;">107</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   <br />   <span style="color: #00C800;">DEFAULT</span> aClrGradOver := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span> , nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">215</span>,<span style="color: #000000;">84</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />     <br />   <span style="color: #00C800;">DEFAULT</span> aClrGradBack := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span> , nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />         <br />   <span style="color: #00C800;">DEFAULT</span> bClrGradSelect := <span style="color: #000000;">&#123;</span>| lSelected | <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lSelected ,;<br />    <span style="color: #000000;">&#123;</span> ;<br />        <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>,<span style="color: #000000;">212</span>,<span style="color: #000000;">168</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">251</span>,<span style="color: #000000;">178</span>,<span style="color: #000000;">99</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />      <span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>,<span style="color: #000000;">157</span>,<span style="color: #000000;">52</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">252</span>,<span style="color: #000000;">234</span>,<span style="color: #000000;">163</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>;<br />    <span style="color: #000000;">&#125;</span>,;<br />    <span style="color: #000000;">&#123;</span> ;<br />        <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>,<span style="color: #000000;">177</span>,<span style="color: #000000;">110</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>,<span style="color: #000000;">165</span>,<span style="color: #000000;">89</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />      <span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">216</span>,<span style="color: #000000;">136</span>,<span style="color: #000000;">52</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">249</span>,<span style="color: #000000;">202</span>,<span style="color: #000000;">98</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />    <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>       <br /><br />   <span style="color: #00C800;">DEFAULT</span> bClrGradSelectPress := <span style="color: #000000;">&#123;</span>| lPressed | <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lPressed ,;<br />    <span style="color: #000000;">&#123;</span> ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">248</span>, <span style="color: #000000;">187</span>, <span style="color: #000000;">107</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">171</span>, <span style="color: #000000;">98</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">253</span>, <span style="color: #000000;">154</span>,  <span style="color: #000000;">63</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">164</span>,  <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>;<br />    <span style="color: #000000;">&#125;</span>,;<br />    <span style="color: #000000;">&#123;</span> ;<br />        <span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>,<span style="color: #000000;">177</span>,<span style="color: #000000;">110</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>,<span style="color: #000000;">165</span>,<span style="color: #000000;">89</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />      <span style="color: #000000;">&#123;</span><span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">216</span>,<span style="color: #000000;">136</span>,<span style="color: #000000;">52</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">249</span>,<span style="color: #000000;">202</span>,<span style="color: #000000;">98</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />    <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>       <br />    <br />    <span style="color: #00C800;">DEFAULT</span> aClrGradBtnGr := <span style="color: #000000;">&#123;</span>|| ;<br />    <span style="color: #000000;">&#123;</span> ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">219</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">201</span>, <span style="color: #000000;">221</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> , ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">212</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">208</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">247</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>;<br />    <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />    <br />   ::<span style="color: #000000;">bClrGradNormal</span> = bClrGradNormal<br />   ::<span style="color: #000000;">aClrGradOver</span>   = aClrGradOver<br />   ::<span style="color: #000000;">bClrGradSubOver</span>= bClrGradSubOver<br />   ::<span style="color: #000000;">aClrGradUnder</span>  = aClrGradUnder<br />   ::<span style="color: #000000;">aClrGradBack</span>   = aClrGradBack<br />   ::<span style="color: #000000;">bClrGradSelect</span> = bClrGradSelect<br />   ::<span style="color: #000000;">bClrGradSelectPress</span> = bClrGradSelectPress<br />   ::<span style="color: #000000;">aClrGradBtnGr</span>  = aClrGradBtnGr<br />   ::<span style="color: #000000;">aGradiant</span>      = aGradiant<br />   ::<span style="color: #000000;">nClrBoxIn</span>      = nClrBoxIn<br />   ::<span style="color: #000000;">nClrBoxOut</span>     = nClrBoxOut<br />   <br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span>               <br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SetSkin<span style="color: #000000;">&#40;</span> oRBtn <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSkinRBtn<br /><br />   <span style="color: #00C800;">IF</span> oRBtn:<span style="color: #000000;">hBack</span> != <span style="color: #00C800;">NIL</span> <br />     DeleteObject<span style="color: #000000;">&#40;</span> oRBtn:<span style="color: #000000;">hBack</span> <span style="color: #000000;">&#41;</span><br />     oRBtn:<span style="color: #000000;">hBack</span> = <span style="color: #00C800;">NIL</span> <br />   <span style="color: #00C800;">ENDIF</span> <br /><br />   oRBtn:<span style="color: #000000;">bClrGradNormal</span>       = ::<span style="color: #000000;">bClrGradNormal</span>     <br />   oRBtn:<span style="color: #000000;">aClrGradOver</span>         = ::<span style="color: #000000;">aClrGradOver</span>       <br />   oRBtn:<span style="color: #000000;">bClrGradSubOver</span>      = ::<span style="color: #000000;">bClrGradSubOver</span>    <br />   oRBtn:<span style="color: #000000;">aClrGradUnder</span>        = ::<span style="color: #000000;">aClrGradUnder</span>      <br />   oRBtn:<span style="color: #000000;">aClrGradBack</span>         = ::<span style="color: #000000;">aClrGradBack</span>       <br />   oRBtn:<span style="color: #000000;">bClrGradSelect</span>       = ::<span style="color: #000000;">bClrGradSelect</span>     <br />   oRBtn:<span style="color: #000000;">bClrGradSelectPress</span>  = ::<span style="color: #000000;">bClrGradSelectPress</span><br />   oRBtn:<span style="color: #000000;">aClrGradBtnGr</span>        = ::<span style="color: #000000;">aClrGradBtnGr</span>      <br />   oRBtn:<span style="color: #000000;">aGradiant</span>            = ::<span style="color: #000000;">aGradiant</span>          <br />   oRBtn:<span style="color: #000000;">nClrBoxIn</span>            = ::<span style="color: #000000;">nClrBoxIn</span><br />   oRBtn:<span style="color: #000000;">nClrBoxOut</span>           = ::<span style="color: #000000;">nClrBoxOut</span>   <br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2n16r7is] [img:2n16r7is]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/rbskin1&#46;png[/img:2n16r7is] Cambiandolo dinamicamente (en tiempo de ejecucion) [img:2n16r7is]http&#58;//www&#46;sitasoft&#46;net/fivewin/screen/rbskin2&#46;png[/img:2n16r7is]
Como cambio los colores en rbbtn ? SOLUCIONADO
Daniel: simplemente ESPECTACULAR. Muchas gracias por tu tiempo.
Como cambio una variable de ambiente
Saludos. Mis amigos del foro, desconozco de alguna funcion para poder cambiar el valor de una varible de ambiente desde mi programa. He intentado: winexec('set autosys=valor') y no me funciona. Alguna porfa. Fwh 8.11, xH 1.1, bcc 5.5
Como cambio una variable de ambiente
Saludos. Mis amigos del foro, desconozco de alguna funcion para poder cambiar el valor de una varible de ambiente desde mi programa. He intentado: winexec('set autosys=valor') y no me funciona. Alguna porfa. Fwh 8.11, xH 1.1, bcc 5.5
Como cambio una variable de ambiente
coloque dentro de um arquivo .ini
Como cambio una variable de ambiente
[url:ehumycy0]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=10585[/url:ehumycy0] [url:ehumycy0]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=14277[/url:ehumycy0] Regards Anser
Como capturar error fwh.
Amigos del foro tenga todos buen dia quisiera saber si me pueden ayudar con lo siguiente. Como dice en el encabezado como puedo capturar el error.log que genera fwh al mismo momento en que este se genere o cambiarle de nombre para que el usuario me lo puede enviar por mail. De paso si alguien tiene un ejemplo de como enviar un archivo adjunto por email se lo agraderia. Espero haberme hecho entender. De antemano gracias
Como capturar error fwh.
Debes modificar el programa errsysw.prg y compilarlo con tu sistema ahi puedes hacer que para cada error genere un archivo distinto ehhmmss.log Saludos
Como capturar error fwh.
Bingen puso hace ya algun tiempo uno que ya hace todo eso, incluso le toma una "foto" a la pantalla con el error, y te lo envia por mail, todo de manera automatica.
Como capturar inactividad
Hola,Requiero cerrar una ventana cuando no hay actvidad en x numero de segundos.... como pudiera hacer esto ?GraciasRene
Como capturar inactividad
Rene,Que elementos tienes en esa ventana ? Menú principal ? Barra de botones ?La idea es usar un timer que incrementaria una variable cada x segundos y al llegar a un determinado valor, cerraria la ventana.Al ejecutar una opción del menu ó de la barra de botones, pondrias el contador a cero y dejarias de incrementar la variable. Al volver de la opción ejecutada, volverías a incrementar el contador. Puedes usar una variable que controle si has comenzado una acción y asi dejar de incrementar el contador.
Como capturar inactividad
Hola.Lo hago asi:Defino el protector de pantallas del windows en unos 5 min con una contraseña. y listo,y cuando debo de dejar la pc con la app en actividad, defino en una tecla la llamada al protectorFunction Main()...SetKey(VK_F12,{||Bloqueo()}) // F12 activa el savescreen del windows...........Function Bloqueo(oTimer)oTimer:DeActivate()SendMessage(oWnd:hWnd,274,61760,0)Return Nil
Como capturar inactividad
Gracias por contestar.Lo que quiero hacer es cerrar una ventana de un sistema cuando no se este usando para evitar tener las bases de datos abiertas ya que hay muchos problemas de apagones de luz y eso hace que se estén corrompiendo las bases seguido.Gracias
Como capturar objeto Dialog ativa?
Sr. Antonio e amigos, Como capturar o objeto da dialog que estiver ativa no momento? Obrigado
Como capturar objeto Dialog ativa?
Sr. Antonio, Direto na classe DIALOG.PRG, como passar o obj? METHOD KeyDown( nKey, nFlags ) CLASS TDialog if nKey == VK_ESCAPE if ::oWnd == nil ::End() else if ::oWnd:ChildLevel( TMdiChild() ) != 0 ::End() else if ::oWnd:ChildLevel( TDialog() ) != 0 ::End() #ifdef __HARBOUR__ elseif Upper( ::oWnd:ClassName() ) == "TMDIFRAME" // To avoid ESC being ignored ::End() #endif else return Super:KeyDown( nKey, nFlags ) endif endif endif // else [b:3h1890wv] elseif nKey==VK_F12 sgtrad(::hWnd)[/b:3h1890wv] else return Super:KeyDown( nKey, nFlags ) endif return nil Do jeito acima não funciona!
Como capturar objeto Dialog ativa?
Up!
Como capturar objeto Dialog ativa?
Prueba con esto: oDlg:lFocused debiera ser .T. cuando tiene el foco me comentas por que no lo prove... Saludos
Como capturar objeto Dialog ativa?
SGS, Si lo que deseas es saber que control de un diálogo tiene foco, puedes usar: [code=fw:8rdksb3l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nAt = AScan<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">&#123;</span> | o | o:<span style="color: #000000;">lFocused</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// MsgInfo( oDlg:aControls[ nAt ]:nId )</span><br /><span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:8rdksb3l] Si lo que deseas es obtener el objeto diálogo que se corresponde a un determinado hWnd [code=fw:8rdksb3l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oDlgFromHwnd<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:8rdksb3l] Desde cualquier Método de la Clase TDialog, el objeto diálogo está accesible en "Self": [code=fw:8rdksb3l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />elseif nKey==VK_F12<br />&nbsp; &nbsp;sgtrad<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Self es oDlg</span><br /><span style="color: #00C800;">else</span><br />&nbsp;</div>[/code:8rdksb3l]
Como cargar cursor desde archivo ( RESUELTO )
Saludos a toda la comunidad: He estado fuera de actividades por un tiempo pero no dejo de hacer practicas con pequeños proyectos, y por supuesto revisando las novedades en el foro. Esta vez les solicito su ayuda ya que estoy intentando cambiar recursos en un dialogo, en especial el cursor del dialogo pero no doy como hacerlo ya que tengo lo siguiente: [code=fw:1y3lv447]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Prueba<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oDlg, oCur, oBtn, cFile, nHCur<br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">cursor</span> oCur <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"00"</span><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Probando Cursor"</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cursor"</span>  <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BTN_CUR"</span>   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #0000ff;">Pixel</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #000000;">2007</span><br /><br />oDlg:<span style="color: #000000;">oCursor</span>:= oCur<br />oBtn:<span style="color: #000000;">bAction</span>:= <span style="color: #000000;">&#123;</span> ||  cFile:= cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Cursor (*.cur) | *.cur"</span>, <span style="color: #ff0000;">"Seleccionar Recurso"</span>, <span style="color: #000000;">0</span>, HB_CurDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + CurDir(), .F., .T. ), nHCur:= loadcursor(, cFile ), oCur:hCursor:= nHCur, oDlg:oCursor:= oCur }<br /><br />activate dialog oDlg center<br /><br />return nil<br /><br /></span></div>[/code:1y3lv447] Al arrancar el ejemplo el dialogo toma el cursor desde el archivo recurso dentro del .exe, pero al buscar un cursor como archivo externo, y cargarlo el Handle siempre regresa el valor 0, por lo que intuyo que loadicon() no lee desde archivos externos. Hay alguna función o forma de cambiar los cursores desde archivos .cur externos, no vale que esten dentro de un archivo res, ya que el usuario elige a voluntad. trate de hacer una funcion loadcursorfromfile( cfile ) sin exito. saludos y gracias por las ideas que puedan aportar la solucion. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Como cargar cursor desde archivo ( RESUELTO )
Estimado Victor, la función a usar sería ReadCursor() pero parece que aún no está implementada <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Basándonos en el código en cursors.c habria que leer el fichero .cur, localizar los grupos de bytes como hacemos en cursors.c y crearlo del mismo modo que se hace en cursors.c
Como cargar cursor desde archivo ( RESUELTO )
<!-- m --><a class="postlink" href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadcursorfromfilea">https://docs.microsoft.com/en-us/window ... rfromfilea</a><!-- m --> Enviado desde mi SM-M325FV mediante Tapatalk
Como cargar cursor desde archivo ( RESUELTO )
Maestro Antonio Linares: En efecto, ya había leído sobre el tema pero no di con el resultado, el Handle siempre retorno 0, intente también con gdi y tampoco, pensé que la función loadcursor() soportaba leer cursores desde archivo.
Como cargar cursor desde archivo ( RESUELTO )
Lo he logrado de esta forma, investigando y haciendo pruebas: [code=fw:1jtuydn1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> hCursor:=  LoadCursorFromFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Z:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\c</span>ursors<span style="color: #000000;">\C</span>lock,cur"</span> <span style="color: #000000;">&#41;</span><br />              <br />MSGStop<span style="color: #000000;">&#40;</span>hCursor<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Handle</span><br />SETCURSOR<span style="color: #000000;">&#40;</span> hCursor <span style="color: #000000;">&#41;</span><br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> LoadCursorFromFile<span style="color: #000000;">&#40;</span> lpFileName AS LPSTR <span style="color: #000000;">&#41;</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"LoadCursorFromFileA"</span> LIB <span style="color: #ff0000;">"user32.dll"</span></div>[/code:1jtuydn1] Asi he podido cambiar el icono, ya sea en .cur o en formato animado .ani, funcional !!! Ojala sirva a alguien y que mejor, que sea incorporado a versiones futuras de Fivewin para que sea más fácil interactuar con cursores.. Saludos y abrazos a distancia a toda la comujnidad..
Como cargar cursor desde archivo ( RESUELTO )
[quote="cuatecatl82":9jxf9tuv]Lo he logrado de esta forma, investigando y haciendo pruebas: [code=fw:9jxf9tuv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> hCursor:=  LoadCursorFromFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Z:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\c</span>ursors<span style="color: #000000;">\C</span>lock,cur"</span> <span style="color: #000000;">&#41;</span><br />              <br />MSGStop<span style="color: #000000;">&#40;</span>hCursor<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Handle</span><br />SETCURSOR<span style="color: #000000;">&#40;</span> hCursor <span style="color: #000000;">&#41;</span><br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> LoadCursorFromFile<span style="color: #000000;">&#40;</span> lpFileName AS LPSTR <span style="color: #000000;">&#41;</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"LoadCursorFromFileA"</span> LIB <span style="color: #ff0000;">"user32.dll"</span></div>[/code:9jxf9tuv] Asi he podido cambiar el icono, ya sea en .cur o en formato animado .ani, funcional !!! Ojala sirva a alguien y que mejor, que sea incorporado a versiones futuras de Fivewin para que sea más fácil interactuar con cursores.. Saludos y abrazos a distancia a toda la comujnidad..[/quote:9jxf9tuv] Thanks
Como cargar cursor desde archivo ( RESUELTO )
Maestro Antonio: nageswaragunupudi: Daniel Garcia-Gil: Propongo agregar a la clase Cursor.prg unas lineas más para poder cargar cursores desde archivo recurso como siempre o desde archivos .cur o .ani externos de forma nativa sin hacer modificaciones en los fuentes de los programas ya hechos, solo se cambiaría el llamado al cursor y la clase se encargaría de saber si es en recurso o en archivo externo. DEFINE CURSOR oCur RESOURCE "c:\cursor.cur" // "FLECHA" [code=fw:3eea42t3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> cResName <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">hCursor</span> = LoadCursorFromFile<span style="color: #000000;">&#40;</span> cResName <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">ELSE</span><br />      ::<span style="color: #000000;">hCursor</span> = LoadCursor<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cResName <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">lPredef</span> = .F.<br /> <span style="color: #00C800;">ENDIF</span><br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> LoadCursorFromFile<span style="color: #000000;">&#40;</span> lpFileName AS LPSTR <span style="color: #000000;">&#41;</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"LoadCursorFromFileA"</span> LIB <span style="color: #ff0000;">"user32.dll"</span>  <br /> </div>[/code:3eea42t3] Saludos. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
Como cargar funciones de una libreria en FWH?
Buen dia compañeros del foro Como puedo realizar esta instrucción en fwh ? Declare Function OpenFpctrl Lib "tfhkaif.dll" (ByVal lpPortName As String) As Long el resultado debe ser TRUE O FALSE Desde ahora gracias por su apoyo. Saludos, Erick Almanza FWH 8.6
Como cargar funciones de una libreria en FWH?
Erik, DLL FUNCTION OpenFpctrl( cPortName AS LPSTR ) AS BOOL LIB "tfhkaif.dll" Prueba asi <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como cargar funciones desde una Dll?
Busca en el foro "DLL32 function"
Como cargar funciones desde una Dll?
Buen dia Amigos del Foro En .NET tenemos una funcion como esta para abrir un puerto de impresora Public Function AbrirPuerto(ByVal wPuerto As UShort, ByVal dwBaudios As UInteger) As UInteger [Ejemplo] Dim iRet As UInteger iRet = DFiscal.AbrirPuerto(1, 9600) Me pueden indicar como lo haria y si existen tipo de datos como estos en FWH Saludos Desde Panama Erick FWH20
Como cargar imagen jpg desde recursos ?
Hola, como cargar una imagen jpg desde el fichero de recursos ? Muchísimas gracias. Saludos
Como cargar imagen jpg desde recursos ?
Mira <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=20005&p=105549&hilit=jpg+en+fichero+rc#p105646">viewtopic.php?f=6&t=20005&p=105549&hilit=jpg+en+fichero+rc#p105646</a><!-- l --> Actualmente, defínelos como cualquier otro png olga1 10 "../bitmaps/olga1.jpg" No necesitas nada más
Como cargar un array desde un archivo ini
First convert any multi-dim array into string [code=fw:3o0eevyy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cString := FW_ValToExp<span style="color: #000000;">&#40;</span> aArray <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3o0eevyy] and save to INI file or to any text file or to a memo field. After you read back from the INI file or other file as cText, convert into array again like this [code=fw:3o0eevyy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cText := <read <span style="color: #0000ff;">from</span> ini file, or other file><br /><br />aArray := &cText<br />&nbsp;</div>[/code:3o0eevyy]
Como cargar un array desde un archivo ini
Eso es, llenar un array bidmensional con datos desde un archivo de configuración *.ini Gracias
Como cargar un array desde un archivo ini
Ernesto, Mira si este post te ayuda en algo. Aqui hacen lo que expones. <!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=3&t=29673&hilit=read+ini#p167751">viewtopic.php?f=3&t=29673&hilit=read+ini#p167751</a><!-- l -->
Como cargar un array desde un archivo ini
Aquí un ejemplo que encontré en el baúl. No recuerdo de donde lo bajé. Edito: Lo compartió nuestro amigo Ukoenig, [code=fw:22fc5dya]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//--------------------------------------------//EJEMPLO PARA LEER UNA SECCION DEL INI</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">Function</span> ReadIniSection<span style="color: #000000;">&#40;</span>cIniF,cSection<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> aData := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, n, nEntries<br /><span style="color: #00C800;">local</span>   nEntryNamePos, nEntryValuePos, cEntryName, cEntryValue<br /><span style="color: #00C800;">Local</span> cEntry := StrTran<span style="color: #000000;">&#40;</span>GetPVProfString<span style="color: #000000;">&#40;</span>cSection, , ,cIniF<span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, CRLF<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> cEntry <span style="color: #000000;">&#41;</span><br />   aadd<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Else</span><br />   nEntries := MlCount<span style="color: #000000;">&#40;</span>cEntry<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nEntries<br />       nEntryNamePos  := <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"="</span>, Alltrim<span style="color: #000000;">&#40;</span>cEntry<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />       nEntryValuePos := LEN<span style="color: #000000;">&#40;</span> Alltrim<span style="color: #000000;">&#40;</span>cEntry<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - nEntryNamePos<br />       cEntryName     := Trim<span style="color: #000000;">&#40;</span>Memoline<span style="color: #000000;">&#40;</span>cEntry, <span style="color: #000000;">254</span>, n <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />       cEntryValue    :=GetPvProfString<span style="color: #000000;">&#40;</span>cSection,cEntryName,<span style="color: #ff0000;">""</span>,cIniF<span style="color: #000000;">&#41;</span><br />       aadd<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> PADR<span style="color: #000000;">&#40;</span> cEntryName, <span style="color: #000000;">15</span>, <span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span>,  PADR<span style="color: #000000;">&#40;</span> cEntryValue, <span style="color: #000000;">15</span>, <span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">Endif</span><br /><br />MyXBROWSE<span style="color: #000000;">&#40;</span>aData,Str<span style="color: #000000;">&#40;</span>nEntries,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" ENTRADAS EN SECCION "</span>+cSection,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Variables de Entradas"</span>,<span style="color: #ff0000;">"Valores de Entradas"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> aData<br /> </div>[/code:22fc5dya] Saludos.
Como cargar un array desde un archivo ini
Francisco muy amable, gracias. lo adaptare a mis necesidades.
Como centralizar TITLE de uma TITLETEXT?
Como faço para centralizar o texto de um TITLETEXT ? @ 0, 0 TITLE oTitle size 10, 10 of hLays["TITLE"] SHADOW NOSHADOW @ 10, 10 TITLETEXT OF oTitle TEXT "" FONT oFont
Como centralizar TITLE de uma TITLETEXT?
[code=fw:3onujmuw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<lJustify: <span style="color: #000000;">JUSTIFY</span> > <span style="color: #000000;">&#93;</span>;<br />&nbsp;</div>[/code:3onujmuw] [url:3onujmuw]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_commands_titles[/url:3onujmuw] Não tem cláusula CENTER.
Como centralizar TITLE de uma TITLETEXT?
Obrigado João.
Como cerrar recursos no usados
Buen día, Tengo un problema que no logro solucionar y es que al querer cerrar recursos cuando estos se dejan de utilizar, no puedo hacerlo y se van acumulando en memoria. Pongo un ejemplo de esto: Abro un dialog, y al cerrarlo se puede ver: [url=http&#58;//imageshack&#46;us/photo/my-images/707/recursosnocerrados1&#46;jpg/:316fn7n1][img:316fn7n1]http&#58;//img707&#46;imageshack&#46;us/img707/2249/recursosnocerrados1&#46;jpg[/img:316fn7n1][/url:316fn7n1] Uploaded with [url=http&#58;//imageshack&#46;us:316fn7n1]ImageShack.us[/url:316fn7n1] Si lo abro y cierro dos veces más, se puede observar en los recursos: [url=http&#58;//imageshack&#46;us/photo/my-images/843/recursosnocerrados2&#46;jpg/:316fn7n1][img:316fn7n1]http&#58;//img843&#46;imageshack&#46;us/img843/368/recursosnocerrados2&#46;jpg[/img:316fn7n1][/url:316fn7n1] Uploaded with [url=http&#58;//imageshack&#46;us:316fn7n1]ImageShack.us[/url:316fn7n1] En lo que respecta a las líneas afectadas en forma directa por mi programa son tres y las incluyo a continuación: [code=fw:316fn7n1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> oFonte <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span>,<span style="color: #000000;">16</span>    <span style="color: #B900B9;">// línea 73 de AGENDIARIA.PRG</span><br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">brush</span> oBrush2 <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"IRON"</span>  <span style="color: #B900B9;">// línea 76 de AGENDIARIA.PRG</span><br /><br />oBrw := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// línea 88 de AGENDIARIA.PRG</span></div>[/code:316fn7n1] Debo agregar que uso recursos desde una DLL, los dialog son NOWAIT y cierro los recursos en el valid al cerrar el dialog. Un punto es que no entiendo porque no se cierran los recursos de las líneas de la funcion AGENDIARIA. El otro punto es, ¿porque se acumulan recursos de las clases TXBROWSE y TRICHEDIT? Gracias por cualquier ayuda que puedan darme Rolo
Como cerrar recursos no usados
ACTIVATE DIALOG oDlg... oFonte:End() oBrush2:End() RELEASE ALL RETURN NIL
Como cerrar recursos no usados
Gracias Karinha, Pude resolver a medias. Me había olvidado del Release All. Pero sigo teniendo problemas con la línea: [code=fw:6k9tq1u2]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// línea 88 de AGENDIARIA.PRG</span></div>[/code:6k9tq1u2] que indica que no se cierra un cursor que en realidad, si lo cierro. Lo que pasa es que aparentemente la TXBrowse es lo que ocasiona el problema. [i:6k9tq1u2]También todos los BMP que no cierra la TXBROWSE y el FONT que no cierra la TRICHEDIT.[/i:6k9tq1u2] [u:6k9tq1u2][b:6k9tq1u2][color=#0040FF:6k9tq1u2]¿Cómo se hace para que la TXBROWSE y la TRICHEDIT cierren esos recursos?[/color:6k9tq1u2][/b:6k9tq1u2][/u:6k9tq1u2] Gracias. Rolo
Como cerrar recursos no usados
Rolo, Que versión de FWH usas ?
Como cerrar recursos no usados
Antonio, Uso la 10.04 Gracias Rolo