topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
Cambiarle color a DTPicker | [quote="fgondi":15xwsrqr]Hola,
Yo hago lo siguiente:
[code:15xwsrqr]REDEFINE DTPICKER oGet VAR dfecha_alta ID 121 OF oDlg UPDATE
oGet:SetColor(nClrTxtGet,nClrFndGet)[/code:15xwsrqr][/quote:15xwsrqr]
Negativo fgondi,
no cambia el color.
Gracias por tu atención, seguiré checando |
Cambiarle el color a un GET | Hola, intento cambiarle el color a un GET de esta forma y no cambia el color,
DEFINE DIALOG VENCOM01 resource "COMANDA"
DEFINE FONT fontc01 NAME "BOLD" SIZE 7,-18
redefine get OGCOM06 var totcom id 4054 OF VENCOM01 FONT fontc01 PICTURE "9,999,999.99" COLOR CLR_RED, CLR_RED
Activate Dialog vencom01 centered ON INIT INICIOM() VALID (SALIR()) |
Cambiarle el color a un GET | Prueba con :
SetGetColorFocus(Color) |
Cambiarle el color a un GET | Tambien puedes probar asi:
[code=fw:2u4oxqx9]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGtosAdmon <span style="color: #0000ff;">VAR</span> nGtosAdmon <span style="color: #0000ff;">ID</span> <span style="color: #000000;">132</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99,999,999,999.99"</span> <br /> oGtosAdmon:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">{</span>||oGtosAdmon:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">252</span>,<span style="color: #000000;">232</span>,<span style="color: #000000;">171</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oGtosAdmon:<span style="color: #000000;">bLostFocus</span> := <span style="color: #000000;">{</span>||oGtosAdmon:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> CLR_BLACK, CLR_WHITE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:2u4oxqx9]
Saludos. |
Cambiarle el color a un GET | Hola
Lo puedes hacer tambien asi
[code=fw:38ajgc49]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> OGCOM06 <span style="color: #0000ff;">var</span> totcom <span style="color: #0000ff;">id</span> <span style="color: #000000;">4054</span> <span style="color: #0000ff;">OF</span> VENCOM01 <span style="color: #0000ff;">FONT</span> fontc01 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9,999,999.99"</span> <span style="color: #0000ff;">COLOR</span> CLR_RED, CLR_RED<br />OGCOM06:<span style="color: #000000;">lDiscolors</span> := .f.<br /> </div>[/code:38ajgc49] |
Cambiarle el color a un GET | Hey muchas gracias a todos, la ultima opción mas reducida de codigo, pero buenas las demas.
Gracias Mil...
Juan
Rep. Dom. |
Cambio FONT su prompts di un FOLDER | Non riesco a cambiare il font dei prompt di una folder creata da sorgente.Ho scritto così, ma il font rimane sempre quello di default:local oDLG, oFLD,fntArialDEFINE FONT fntArial NAME "Arial" SIZE 0, -20DEFINE DIALOG odlg FROM 1,1 to 45,125 TITLE "Prova dialog"@ 1,1 FOLDER oFLD PROMPTS "PRIMA","SECONDA" SIZE 460,300 PIXEL FONT fntArial ACTIVATE DIALOG oDlg CENTERED Solo se lo associo alla dialog oDLG allora cambia, ma a quel punto mi cambia tutta la dialog e non solo i prompt del folder come vorrei.Ho anche provato con il SET FONT OF oFLD:aprompts[1] TO fntArial ,ma nulla da fare (errore in runtime).Dove sbaglio? |
Cambio FONT su prompts di un FOLDER | Max,[code:36pfvpxn]
#include "FiveWin.ch"
function Main()
local oDLG, oFLD, fntArial
DEFINE FONT fntArial NAME "Arial" SIZE 0, -20
DEFINE DIALOG odlg FROM 1,1 to 45,125 TITLE "Prova dialog"
@ 1, 1 FOLDER oFLD PROMPTS "PRIMA","SECONDA" SIZE 460,300 PIXEL
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT oFld:SetFont( fntArial )
return nil
[/code:36pfvpxn] |
Cambio FONT su prompts di un FOLDER | ok, grazie!But where i can find a documentation updated with all methods that i can use for each object?Now during my work i search in examples \fwh\samples\ and in documentation file *.chm in \fwh\manual, but (for example) i have not find this methods you wrote ( ofld:setfont(), that works fine ) in this documentation...Or is better asking in the forum? Thank you.MTFWH 8.04 + XHARBOUR 1.1.0 |
Cambio FONT su prompts di un FOLDER | Max,You are welcome to ask in these forums for any help that you may need.The Method SetFont() belongs to Class TWindow. From TWindow, Class TControl is inherited, and from TControl, Class TFolder is inherited. So Class TFolder has inherited Method SetFont() too.Its a good practice to review the FiveWin source code to get a good understanding about its object oriented design. |
Cambio a la clase GET | Antonio,
cuando se define un GET con un boton interno, cuando se llama la acción se devuelve el foco al get, sería interesante que se pueda modificar este comportamiento, y permitir bajo definición que el foco no regrese de manera automática, en ese caso se puede aumentar una DATA lKeepFocus (por defecto .T.) y modifcar las llamadas a bAction como sigue
[code=fw:30ylvb78]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span>|| Eval<span style="color: #000000;">(</span> oThis:<span style="color: #000000;">bAction</span>, oThis <span style="color: #000000;">)</span>, <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lKeepFocus</span>, oThis:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:30ylvb78]
espero se tome en cuenta esta pequeña sugerencia que ayudaría muchísimo, además, que no rompería compatibilidad
gracias
Marcelo |
Cambio a la clase GET | Marcelo,
Muy buena sugerencia, incluida para próximo build, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Cambio a la clase GET | Antonio,
muchas gracias por tomar en cuenta la solicitud, muy agradecido.
Abusando y aprovechando el impulto <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> sería bueno retomar el tema del ON INIT en cada control [url:1m412hix]http://forums.fivetechsupport.com/viewtopic.php?f=22&t=9676[/url:1m412hix], su utilidad es muy grande ya que hace del código mas sencillo y legible
REDEFINE GET ..... ON INIT ::lKeepFocus := .F.,
REDEFINE BUTTON ..... ON INIT IF( lActivo, ::Enable, ::Disable )
.....
si se llaman los INIT de los controles antes del INIT del DIALOG o WINDOW, pienso que no habrían problemas colaterales, que piensan?
Bueno refresco la idea inicial de Rafa, gracias por tu tiempo
saludos
Marcelo |
Cambio a la clase GET | Marcelo,
La idea es buena, pero antes de implementarlo en todos los controles, habría que probar en un par de classes (GET y BUTTON tal vez sean las mas usadas) y ver si hay algun efecto colateral o va bien.
Para esto es muy importante las pruebas de todos vosotros, para saber si va bien o no. Sobre todo, que no se rompa la compatibilidad con versiones anteriores |
Cambio a la clase GET | Antonio,
gracias por el interés, bueno no se si sirva haré la implementación a mi manera y publico los resultados
saludos
Marcelo |
Cambio a la clase GET | Holas,
esto inicialmente funciona
[code=fw:35dbx80i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />#xcommand @ <nRow>, <nCol> <span style="color: #0000ff;">BUTTON</span> <span style="color: #000000;">[</span> <oBtn> <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">]</span> <cCaption> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ACTION</span> <uAction> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <default: <span style="color: #000000;">DEFAULT</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <of:<span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, DIALOG> <oWnd> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <help:<span style="color: #0000ff;">HELP</span>, HELPID, <span style="color: #0000ff;">HELP</span> ID> <nHelpId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <pixel: <span style="color: #000000;">PIXEL</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <design: <span style="color: #000000;">DESIGN</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <update: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHEN</span> <WhenFunc> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">VALID</span> <uValid> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lCancel: <span style="color: #000000;">CANCEL</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <uInit> <span style="color: #000000;">]</span> ;<br /> => ;<br /> <span style="color: #000000;">[</span> <oBtn> := <span style="color: #000000;">]</span> TButton<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <nRow>, <nCol>, <cCaption>, <oWnd>,;<br /> <<span style="color: #000000;">{</span>uAction<span style="color: #000000;">}</span>>, <nWidth>, <nHeight>, <nHelpId>, <oFont>, <.<span style="color: #00C800;">default</span>.>,;<br /> <.<span style="color: #0000ff;">pixel</span>.>, <.design.>, <cMsg>, <.<span style="color: #0000ff;">update</span>.>, <<span style="color: #000000;">{</span>WhenFunc<span style="color: #000000;">}</span>>,;<br /> <<span style="color: #000000;">{</span>uValid<span style="color: #000000;">}</span>>, <.lCancel.>, <span style="color: #000000;">[</span><span style="color: #000000;">{</span>|Self|<uInit><span style="color: #000000;">}</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /><br /><br />#command @ <nRow>, <nCol> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">[</span> <oGet> <span style="color: #0000ff;">VAR</span> <span style="color: #000000;">]</span> <uVar> ;<br /> <span style="color: #000000;">[</span> <dlg: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, DIALOG> <oWnd> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <pict: <span style="color: #000000;">PICT</span>, PICTURE> <cPict> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">VALID</span> <ValidFunc> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <color:<span style="color: #0000ff;">COLOR</span>,COLORS> <nClrFore> <span style="color: #000000;">[</span>,<nClrBack><span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <design: <span style="color: #000000;">DESIGN</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">CURSOR</span> <oCursor> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <pixel: <span style="color: #000000;">PIXEL</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <update: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHEN</span> <uWhen> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lCenter: <span style="color: #0000ff;">CENTER</span>, CENTERED> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lRight: <span style="color: #000000;">RIGHT</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <uChange> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <readonly: <span style="color: #000000;">READONLY</span>, NO MODIFY> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <pass: <span style="color: #000000;">PASSWORD</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lNoBorder: <span style="color: #000000;">NO</span> BORDER, NOBORDER> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <help:<span style="color: #000000;">HELPID</span>, <span style="color: #0000ff;">HELP</span> ID> <nHelpId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ACTION</span> <uAction> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BITMAP <cBmpName> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> CUEBANNER <cCueText> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <uInit> <span style="color: #000000;">]</span> ;<br /> => ;<br /> <span style="color: #000000;">[</span> <oGet> := <span style="color: #000000;">]</span> TGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <nRow>, <nCol>, bSETGET<span style="color: #000000;">(</span><uVar><span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">[</span><oWnd><span style="color: #000000;">]</span>, <nWidth>, <nHeight>, <cPict>, <<span style="color: #000000;">{</span>ValidFunc<span style="color: #000000;">}</span>>,;<br /> <nClrFore>, <nClrBack>, <oFont>, <.design.>,;<br /> <oCursor>, <.<span style="color: #0000ff;">pixel</span>.>, <cMsg>, <.<span style="color: #0000ff;">update</span>.>, <<span style="color: #000000;">{</span>uWhen<span style="color: #000000;">}</span>>,;<br /> <.lCenter.>, <.lRight.>,;<br /> <span style="color: #000000;">[</span>\<span style="color: #000000;">{</span>|nKey, nFlags, Self| <uChange>\<span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <.readonly.>,;<br /> <.pass.>, <span style="color: #000000;">[</span><.lNoBorder.><span style="color: #000000;">]</span>, <nHelpId>,,,,,, <span style="color: #000000;">[</span>\<span style="color: #000000;">{</span>|self| <uAction> \<span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <cBmpName>, <<span style="color: #ff0000;">"uVar"</span>>,;<br /> <span style="color: #000000;">[</span><cCueText><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><span style="color: #000000;">{</span>|Self|<uInit><span style="color: #000000;">}</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg, b, d := Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, g<br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"UNO"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> b:<span style="color: #000000;">enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, g:<span style="color: #000000;">show</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> b <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"DOS"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> ::<span style="color: #000000;">disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">6</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> g <span style="color: #0000ff;">VAR</span> d <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'@d'</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> ::<span style="color: #000000;">hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span></div>[/code:35dbx80i]
los cambios que se deben realizar son:
en los fuentes tget.prg y button.prg, en los metodos new, añadir un parametro al final binit, luego dentro el cuerpo de cada
metodo new añadir ::binit = binit
en la clase dialog en el metodo Initiate añadir la línea
[code=fw:35dbx80i]<div class="fw" id="{CB}" style="font-family: monospace;"> Aeval<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span>,<span style="color: #000000;">{</span>|o| <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> o:<span style="color: #000000;">bInit</span> != <span style="color: #00C800;">NIL</span> , Eval<span style="color: #000000;">(</span> o:<span style="color: #000000;">bInit</span>, o <span style="color: #000000;">)</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:35dbx80i]
antes del código
[code=fw:35dbx80i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> ::<span style="color: #000000;">bInit</span> != <span style="color: #00C800;">nil</span><br /> lResult = Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bInit</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> lResult <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"L"</span> .and. ! lResult<br /> lFocus = .f.<br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> </div>[/code:35dbx80i] |
Cambio a version actual de FWH | Hola amigosYo utilizo xharbour, y todavia estoy usando la version 2.7.Utilizo Verce, y intentado compilar versiones actuales, ahora estoy intentando la 8.10, y me da errores por todos los sitios.He leido que éstas versiones son incompatilbles con verce y que hay que usar uEstudio.Llevo intentando configurar uEstudio una semana, con los datos que veo en éste foro para xharbour, y nada, ni viendo los videos ni nada.He copiado las carpetas configs y projects dentro de uestudio, también he copiado el texto que puso antonio dentro del fichero wordfile.ucw, y pensaba que ya con eso estaba todo, pero no, no avanzo nada.Actualmente yo tengo las aplicaciones montadas así: En un directorio del que cuelgan las carpetas "prg", "obj","rc", bien pues voy a utilizar uEstudio, y le digo Proyecto->Nuevo Proyecto/Area de trabajo->Crear Proyecto usando plantillas. Aquí aparece sólo harbour no xharbour (supongo que habrá que elegir éste).Bien una vez creado el proyecto, me voy a configuración de proyecto, y añado todos los prgs que componen la aplicacion. Luego en external dependencies, añado los ficheros .ch y las librerias externas.Ahora, donde le digo la ruta del fichero de recursos .res que utilizo?.El siguiente paso supongo que sería darle a "Generar", y ya habría generado el exe. a ver si hay alguien que me vaya guiandoSaludos |
Cambio a version actual de FWH | Jose Luis,> y me da errores por todos los sitiosQue errores te muestra ? Por favor cópialos aqui, gracias |
Cambio a version actual de FWH | JoseLuis,no es la versión de verce, podrías decirnos que errores y te ayudamos a corregirlos.sólo hay que incluir las lib faltantes. |
Cambio a version actual de FWH | Antonio[list:3i2v6r54]--------------------Configuración: gespaqn - Debug--------------------
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
VEHICULO.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
access1.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(62) Error F0001 Can't open #include file: 'hbusrrdd.ch'; No such file or directory
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'adordd.c'
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
albaran.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
articulo.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
aviso.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
buscalle.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
BUSQUE~1.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Cartas.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
cheque.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
conduc.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
cuentas.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ejer.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
empresa.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
factura.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
gastos.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
gespaqn.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
grabaini.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
imagen.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
importar.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
impreso.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
informe.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
internet.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
listados.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
mandaf.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
mandapdf.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
nalbaran.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
nomina.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
nrecibo.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
parte.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
protege.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
C:\fuentes\xharbour\gespaq09\Prg\prove.prg(470) Error E0042 Macro of declared symbol: '&Nombre'
1 error
No code generated
gespaqn.EXE - 4 error(es), 0 advertencia(s)
[/list:u:3i2v6r54]WiliamLa version de verce que utilizo es la 4.3Saludos |
Cambio a version actual de FWH | Jose Luis,Que código tienes en la línea 470 ?C:\fuentes\xharbour\gespaq09\Prg\prove.prg(470) Error E0042 Macro of declared symbol: '&Nombre' 1 error |
Cambio a version actual de FWH | [code:3lsfo8cw] REDEFINE TABS oTab id 120 OF oFol:aDialogs[5] PROMPTS "&Nombre";
COLOR CLR_BLACK, CLR_WHITE ;
ACTION (oFld5:Refresh())
[/code:3lsfo8cw]SaludosJose Luis |
Cambio a version actual de FWH | Prueba a cambiarlo asi:[code:3po6lsy9]
cNombre = "&Nombre"
REDEFINE TABS oTab id 120 OF oFol:aDialogs[5] PROMPTS cNombre;
COLOR CLR_BLACK, CLR_WHITE ;
ACTION (oFld5:Refresh())
[/code:3po6lsy9] |
Cambio a version actual de FWH | Se puede corregir el prg desde el propio uestuido?En la parte izquierda de la pantalla, me salen las carpetas de mi sistema, abro la que tiene los prgs, y doble click en el prg a modificar, éste se me abre en la parte derecha, hago la modificación, y le doy a Generar->General todo nuevamente.Bien, pues el error ahora me sale en la declaración de la variable me dice error macro declaracion symbol.Además de éstos errores, que son ya de código, donde le digo que me busque los recursos?, y que me incluya codigo en c?SaludosJose Luis |
Cambio a version actual de FWH | Prueba a cambiar esta línea asi:cNombre = "&Nombre"porcNombre = "Nombre"El proyecto tiene que manejar automaticamente los ficheros en C |
Cambio a version actual de FWH | Ahora me da error en adordd[list:dxngyxws]--------------------Configuración: gespaqn - Debug--------------------
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
VEHICULO.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
access1.c:
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(155) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(156) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(160) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(169) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(173) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(199) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(281) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(305) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(313) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(314) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(316) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(329) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(341) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(355) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(367) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(377) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(393) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(401) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(409) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(421) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(423) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(425) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(435) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(443) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(451) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(462) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(463) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(464) Error E0030 Syntax error: "parse error at 'endif'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(466) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(478) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(479) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(481) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(489) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(490) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(492) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(508) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(514) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(523) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(533) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(541) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(549) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(557) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(558) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(560) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(570) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(572) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(574) Error E0030 Syntax error: "parse error at 'endif'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(576) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(586) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(597) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(609) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(610) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(611) Error E0030 Syntax error: "parse error at 'endif'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(620) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(630) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(640) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(652) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(654) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(656) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(664) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(665) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(667) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(675) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(676) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(678) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(704) Error E0030 Syntax error: "parse error at ';'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(713) Error E0030 Syntax error: "parse error at '<eol>'"
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(715) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(730) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(779) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(783) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(811) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(915) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(921) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(927) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(933) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(939) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(945) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(953) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(959) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(976) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(982) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(988) Error E0025 Invalid RETURN from within of SEQUENCE code
C:\fuentes\xharbour\gespaq09\Prg\adordd.prg(998) Error E0025 Invalid RETURN from within of SEQUENCE code
84 errors
No code generated
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'ADORDD.OBJ'
gespaqn.EXE - 86 error(es), 0 advertencia(s)
[/list:u:dxngyxws]No veas, menuda historiaSaludosJose Luis |
Cambio a version actual de FWH | José Luis:Como te ha mencionado William, no estoy convencido de que el problema sea VERCE, yo lo uso sin problema alguno.Saludos |
Cambio a version actual de FWH | Jose Luis,Estás usando una versión muy antigua de Harbour:Harbour Compiler Alpha build 46.2Usa una versión más reciente:<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=2486">http://forums.fivetechsoft.com/viewtopic.php?t=2486</a><!-- m -->O la versión actual:<!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour.exe">www.fivetechsoft.com/files/harbour.exe</a><!-- w --> |
Cambio a version actual de FWH | AntonioTengo instalada la ultima versión también en el equipo, pero no se donde decirle a uestudio el caminoLa que uso (que va de cine) la tengo en c:\fwh, y xharbour en c:\xharbour.La nueva la tengo en c:\fwh810 y xharbour c:\xharbour810.La verdad es que me gustaría tener todo integrado y uestudio (lo tengo en español), tiene buena pinta para ello, pero es tan amplio que me pierdo en configuraciones, etc.SaludosJose Luis |
Cambio a version actual de FWH | Con respecto a verce, pues ahora me aparece el siguiente error:[list:1swqq3qq]Compilado y Enlazado de: [C:\fuentes\xharbour\gespaq09\gespaqn.Exe]
Ejecución No. 3
Ejecutada a las: 09:06:23
============================================================
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_PCREPOS_LIBRARY' referenced from C:\XHARBOUR810\LIB\RTL.LIB|regex
Error: Unresolved external 'AlphaBlend' referenced from C:\FWH810\LIB\FIVEHC.LIB|BRUSHES
Fin del proceso.
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
** error 2 ** deleting C:\fuentes\xharbour\gespaq09\gespaqn.exe
Ha habido ERRORES al intentar Generar la Aplicacion
============================================================
VERCE v4.3 -> Ver Resultados de Compilación y Enlazado v4.3
Juan Carlos Salinas Ojeda
<!-- e --><a href="mailto:jcso@hotmail.com">jcso@hotmail.com</a><!-- e -->, <!-- e --><a href="mailto:jcso@esm.com.mx">jcso@esm.com.mx</a><!-- e -->
Minatitlán, Veracruz. MEXICO
Y Solo Veracruz es bello !!!
FiveWin for Harbour!!
[/list:u:1swqq3qq]SaludosJose Luis |
Cambio a version actual de FWH | José luis,agrega la lib PCREPOS que viene en las lib de xHarbour a TERCEROS. |
Cambio a version actual de FWH | WiliamAhora me da este error[list:xwi73i2p]Error: Unresolved external '_HB_FUN_HB_SYMBOL_UNUSED' referenced from C:\FUENTES\XHARBOUR\GESPAQ09\OBJ\ADORDD.OBJ[/list:u:xwi73i2p]SaludosJose Luis |
Cambio a version actual de FWH | Jose Luis,Añade este define al comienzo de ADORDD.prg:#define HB_SYMBOL_UNUSED( symbol ) ( symbol := ( symbol ) ) |
Cambio clipper a harbour | Hace tiempo que quiero evolucionar a xHarbour. Ahora que he terminado lo que estaba haciendo, quizá sea el momento.
Una duda. He leido a lo largo del foro que los recursos han de ir en ficheros RES o RC he integrados al programa. Eso me creará un EXE muy grande.
Por otro lado, ¿no habría una forma de que los recursos sigan en una DLL como antes sin que de problemas?
Utilizo mis propio dialogos de mensajes de avisos/gets/errores que tengo en una DLL y que utilizo en mis aplicaciones sin tener que volver a definirlas a cada vez (ese es el propósito de las DLL, compartir recursos) ¿Eso no lo hace xHarbour?
Además, no es lo mismo entregar al cliente un EXE y punto, que dá impresión de chapucero, que un EXE con sus DLL etc... que parece más de casa profesional. La gente no entiendo mucho de informática pero si de que la primera impresión es la que cuenta.
Un saludo. |
Cambio clipper a harbour | El tamaño del EXE realmente no es muy importante para Windows, si miras cuando mide el Excel.EXE y el Winword.EXE te daras cuenta que miden un poco mas de 15 megas (solo los EXEs).
Yo tengo aplicaciones cuyos Exes miden mas de 7 u 8 megas y funcionan sin ningun problema, bien y rapido.
En realidad, el uso de RC es como tienen que hacerse las cosas, ningun programa "profesional" trae en las DLLs los recursos, en realidad, todos los programas tienen los recursos "incrustados" en el EXE.
El hecho de que FW de 16 bits pusiera la interfaz en una DLL era para facilitar el trabajo en tiempo de desarrollo, pero en general, siempre ha sido recomendado meter los recursos en el EXE final.
Los DLLs se utilizan para funciones de "apoyo" a tu programa, mas no asi para meter la interfaz en ellos, mantener varias DLLs para un programa que no lo necesita, es, desde mi punto de vista, muy complicado, personalmente prefiero que todo el programa como tal vaya en un solo EXE y sus recursos externos, no hechos por mi, vayan en DLLs externos, como el Advantage, El Crystal Reports, el Funcky, etc.
De todas formas (x)HB te permite seguir trabajando con tus DLLs, pero claro, tienes que pasarlos a 32 bits, lo que requiere que primero los pases a RC y luego los compiles a 32 bits, el problema aqui, es que los editores de recursos para 32 bits, (desmientanme si es lo contrario), no trabajan sobre DLLs directamente, sino siempre sobre RES o RCs y luego se compilan para generar el DLL.
El Workshop no edita DLLs de 32 bits, las daña cuando las abres con el.
La experiencia de mas de 14 años en esto del software es que al usuario final le preocupa poco que si lleva DLLs, que si es un solo EXE, en general, lo que quiere es que el programa funcione como deba. |
Cambio clipper a harbour | Manu,
Puedes seguir trabajando exactamente igual como hasta ahora.
La única diferencia es que los recursos los puedes mantener en un fichero RC ó RES y luego incrustarlos en tu DLL, esto en el caso de que quieras seguir usando el Borland Resources Workshop, ya que si usas el PellesC, podrás trabajar directamente sobre la DLL. |
Cambio clipper a harbour | OK me habeis convencido.
¿Cual es más aconsejable, RES o RC?
Muchas gracias. Un saludo |
Cambio clipper a harbour | Manu,
La ventaja de los ficheros RC es que son ficheros ASCII que puedes modificar con cualquier editor de código/texto. |
Cambio color ribbon (SOLUCIONADO) | Buenos días para todos,
Compile un ejemplo que encontré en el foro para el cambio de los colores de una ribbon, he logrado identificar algunos de objetos para el cambio del color, pero no logro cambiar el color negro de la parte superior de la barra ribbon, esta señalada en la imagen, así como tampoco las líneas que separan los paneles.
De antemano gracias.
[img:34q6thg9]https://hymplus.com/forofw/color_ribbon.png[/img:34q6thg9]
[code=fw:34q6thg9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />Purpose : Fivewin Ribbonbar - MS Office 2019 style<br />Program :<br />Author : Frances Padilla (FAP)<br />Date : 05/07/2019 04:52:26 PM<br />Company :<br />Copyright:<br />Language : Fivewin/xHarbour<br />Updated : 05/06/2019 By James Bott, <!-- e --><a href="mailto:jbott@compuserve.com">jbott@compuserve.com</a><!-- e --><br />Notes :<br />Source : viewtopic.php?f=3&t=36145&p=221601#p221601<br /> : This is the dark theme<br /> : Somehow he got rid of the underline under the ribbonbar.<br /><br />*/</span><br /><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: #B900B9;">//#define _ClrRed RGB(255,37,37)</span><br /><br /><span style="color: #00D7D7;">#define</span> _nClrPaneRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">68</span>, <span style="color: #000000;">68</span>, <span style="color: #000000;">68</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//COLOR DE LA BARRA INFERIOR VENTANA SUPERIOR RIBBON BORDES BARRA</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxOutRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//LINEA DEL BORDE ACTIVO DE LA BARRA</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxInRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//LINEA INTERNA DE LA BARRA</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxSelOut RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// BORDE DE LA PESTAÑA AL PASAR EL MOUSE POR ENCIMA CUANDO PESTAÑA ACTIVA</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxSelIn := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#define</span> _aGradRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//COLORES DEGRADE INTERNA BARRA</span><br /><span style="color: #00D7D7;">#define</span> _aGradFldRB <span style="color: #000000;">{</span>|nOpt| iif<span style="color: #000000;">(</span> nOpt == oRibbon:<span style="color: #000000;">nStart</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//COLOR EN DEGRADE DE LA PESTAÑA </span><br /><span style="color: #00D7D7;">#define</span> _aGradHighRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#define</span> _aGradOverRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#define</span> _nCtrlFrGround RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#define</span> _nCtrlBkGround RGB<span style="color: #000000;">(</span> <span style="color: #000000;">106</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">106</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//FONDO DE LA VENTANA</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxOut RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#define</span> _nClrBoxIn RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#define</span> _nClrTxt RGB<span style="color: #000000;">(</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//COLOR DEL TEXTO</span><br /><span style="color: #00D7D7;">#define</span> _bClrGradNormal <span style="color: #000000;">{</span>|lPressed| iif<span style="color: #000000;">(</span> lPressed, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#define</span> _aClrGradUnder <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#define</span> _aClrGradBack <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oFont<br /> <span style="color: #00C800;">local</span> n, oWnd, oRibbon, oGroup<br /> <span style="color: #00C800;">local</span> aDlgs, oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> getSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Fivewin Ribbonbar - Office 2109 style"</span><br /> <br /> aDlgs := <span style="color: #000000;">{</span> <span style="color: #ff0000;">' File '</span>, <span style="color: #ff0000;">' Home '</span>, <span style="color: #ff0000;">' Insert '</span>, <span style="color: #ff0000;">' Design '</span>, <span style="color: #ff0000;">' Layout '</span>, <span style="color: #ff0000;">' References '</span>, <span style="color: #ff0000;">' Mailings '</span>, <span style="color: #ff0000;">' Review '</span>, <span style="color: #ff0000;">' View '</span> <span style="color: #000000;">}</span><br /><br /> oRibbon := TRibbonBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, aDlgs,,,, <span style="color: #000000;">135</span>, <span style="color: #000000;">40</span>, _nClrPaneRB, _nClrBoxOutRB, _nClrBoxInRB,,;<br /> _nClrBoxSelOut, _aGradRB, _aGradFldRB, _aGradHighRB, _aGradOverRB,,,.t.,,<span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// _nClrBoxSelOut, _aGradRB, _aGradFldRB, _aGradHighRB, _aGradOverRB,,,,,.T.)</span><br /> <br /> <span style="color: #B900B9;">// Change the colors of the tabs </span><br /> AFill<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">aClrTabTxt</span>, <span style="color: #000000;">{</span> | oSelf, nPrompt | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nPrompt == oSelf:<span style="color: #000000;">nOption</span>, CLR_BLACK,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">nOverPrompt</span><span style="color: #000000;">(</span> ScreenToClient<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, ScreenToClient<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> == nPrompt, CLR_BLACK, _nClrTxt <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /> WITH OBJECT oRibbon<br /> :<span style="color: #000000;">nHeightFld</span> := <span style="color: #000000;">24</span><br /> :<span style="color: #000000;">hSeparation</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">nLeftMargin</span> = <span style="color: #000000;">10</span> <span style="color: #B900B9;">// left margin of tabs</span><br /> :<span style="color: #000000;">nClrBoxSelOut</span> = _nClrBoxSelOut <span style="color: #B900B9;">// New ! Removes white outline of tab when cursor is over them.</span><br /> :<span style="color: #000000;">l2010</span> = .T. <span style="color: #B900B9;">// New ! Turns off highlighting of groups when cursor is over them.</span><br /> :<span style="color: #000000;">CalcPos</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /> <br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">70</span>, <span style="color: #ff0000;">"Clipboard"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">5</span>,<span style="color: #000000;">5</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDI-button"</span> BITMAP <span style="color: #ff0000;">""</span> GROUP oGroup <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">63</span>,<span style="color: #000000;">65</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"mdi2 button1"</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">5</span>,<span style="color: #000000;">70</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDI-button"</span> BITMAP <span style="color: #ff0000;">""</span> GROUP oGroup <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">63</span>,<span style="color: #000000;">65</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"mdi2 button2"</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #B900B9;">//oBtn:oFont:End()</span><br /> <span style="color: #B900B9;">//oBtn:SetFont( oRb:oFont )</span><br /> <br /> <span style="color: #B900B9;">//oBtn:nHeight -= 24</span><br /> oBtn:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">{</span> | lPressed | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lPressed, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oBtn:<span style="color: #000000;">aClrGradUnder</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br /> oBtn:<span style="color: #000000;">aClrGradBack</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oBtn:<span style="color: #000000;">nClrBoxIn</span> = RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span><br /> oBtn:<span style="color: #000000;">nClrBoxOut</span> = RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <br /> <br /> <br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">260</span>, <span style="color: #ff0000;">"Font"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">221</span>, <span style="color: #ff0000;">"Paragraph"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oGroup = oRibbon:<span style="color: #000000;">addGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">320</span>, <span style="color: #ff0000;">"Styles"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">for</span> each oDlg in oRibbon:<span style="color: #000000;">aDialogs</span><br /> <br /> oDlg:<span style="color: #000000;">hBack</span> = oRibbon:<span style="color: #000000;">hBrushEx</span><br /> oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">for</span> each oGroup in oDlg:<span style="color: #000000;">aControls</span><br /> <span style="color: #00C800;">if</span> oGroup:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TRBGROUP"</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//oGroup:oFont:End()</span><br /> <span style="color: #B900B9;">//oGroup:SetFont( oRibbon:oFont )</span><br /> <br /> <span style="color: #B900B9;">// oGroup:nHeight = 100</span><br /> oGroup:<span style="color: #000000;">nClrBoxIn</span> = CLR_LIGHTGRAY<br /> oGroup:<span style="color: #000000;">aGradCaption</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, CLR_LIGHTGRAY, CLR_LIGHTGRAY <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">//oGroup:bClrText = { | lEnable | If( lEnable, CLR_LIGHTGRAY, CLR_DARKGRAY ) } //CLR_DARKGRAY ) }</span><br /> oGroup:<span style="color: #000000;">nClrTxt</span> = RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> oGroup:<span style="color: #000000;">nClrBoxIn</span> = _nClrPaneRB <span style="color: #B900B9;">//CLR_LIGHTGRAY</span><br /> oGroup:<span style="color: #000000;">nClrBoxOut</span> = _nClrPaneRB <span style="color: #B900B9;">//CLR_LIGHTGRAY</span><br /> <br /> <span style="color: #B900B9;">//oGroup:SetColor( _nClrTxt, _nClrPaneRB )</span><br /> <br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBrushSel</span> <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBrushUnSel</span> <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBack</span> <span style="color: #000000;">)</span><br /> oGroup:<span style="color: #000000;">hBrushUnSel</span> = oDlg:<span style="color: #000000;">hBack</span><br /> oGroup:<span style="color: #000000;">hBack</span> = oDlg:<span style="color: #000000;">hBack</span><br /> <br /> oGroup:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span> <br /><br /> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">(</span> <span style="color: #000000;">930</span>, <span style="color: #000000;">400</span> <span style="color: #000000;">)</span><br /> oWnd:<span style="color: #000000;">setColor</span><span style="color: #000000;">(</span>, _nCtrlBkGround<span style="color: #000000;">)</span><br /> <br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">" Page 1 of 1 0 words English (United Kingdom)"</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">color</span> _nClrTxt, _nClrPaneRB noinset noborder<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTER</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:34q6thg9] |
Cambio color ribbon (SOLUCIONADO) | [code=fw:2i5prml4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />Purpose : Fivewin Ribbonbar - MS Office 2019 style<br />Program :<br />Author : Frances Padilla (FAP)<br />Date : 05/07/2019 04:52:26 PM<br />Company :<br />Copyright:<br />Language : Fivewin/xHarbour<br />Updated : 05/06/2019 By James Bott, <!-- e --><a href="mailto:jbott@compuserve.com">jbott@compuserve.com</a><!-- e --><br />Notes :<br />Source : viewtopic.php?f=3&t=36145&p=221601#p221601<br /> : This is the dark theme<br /> : Somehow he got rid of the underline under the ribbonbar.<br />Modified : 24/01/2021 - By Joao Santos - Sao Paulo - Brazil. 13:20 PM<br /><br />*/</span><br /><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: #B900B9;">//#Define _ClrRed RGB(255,37,37)</span><br /><br /><span style="color: #00D7D7;">#Define</span> _nClrPaneRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">68</span>, <span style="color: #000000;">68</span>, <span style="color: #000000;">68</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//COLOR DE LA BARRA INFERIOR VENTANA SUPERIOR RIBBON BORDES BARRA</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxOutRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//LINEA DEL BORDE ACTIVO DE LA BARRA</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxInRB RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//LINEA INTERNA DE LA BARRA</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxSelOut RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// BORDE DE LA PESTAÑA AL PASAR EL MOUSE POR ENCIMA CUANDO PESTAÑA ACTIVA</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxSelIn := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#Define</span> _aGradRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//COLORES DEGRADE INTERNA BARRA</span><br /><span style="color: #00D7D7;">#Define</span> _aGradFldRB <span style="color: #000000;">{</span>|nOpt| iif<span style="color: #000000;">(</span> nOpt == oRibbon:<span style="color: #000000;">nStart</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//COLOR EN DEGRADE DE LA PESTAÑA</span><br /><span style="color: #00D7D7;">#Define</span> _aGradHighRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#Define</span> _aGradOverRB <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#Define</span> _nCtrlFrGround RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#Define</span> _nCtrlBkGround RGB<span style="color: #000000;">(</span> <span style="color: #000000;">106</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">106</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//FONDO DE LA VENTANA</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxOut RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#Define</span> _nClrBoxIn RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">212</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//DE MOMENTO NO LO IDENTIFIQUE</span><br /><span style="color: #00D7D7;">#Define</span> _nClrTxt RGB<span style="color: #000000;">(</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//COLOR DEL TEXTO</span><br /><span style="color: #00D7D7;">#Define</span> _bClrGradNormal <span style="color: #000000;">{</span>|lPressed| iif<span style="color: #000000;">(</span> lPressed, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#Define</span> _aClrGradUnder <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><span style="color: #00D7D7;">#Define</span> _aClrGradBack <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, _nClrBoxOut, _nClrBoxOut <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oFont, oBtn, oBtn1<br /> <span style="color: #00C800;">LOCAL</span> n, oWnd, oRibbon, oGroup<br /> <span style="color: #00C800;">LOCAL</span> aDlgs, oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fivewin Ribbonbar - Office 2019 style"</span><br /> <br /> <span style="color: #B900B9;">// aDlgs := { ' File ', ' Home ', ' Insert ', ' Design ', ' Layout ', ' References ', ' Mailings ', ' Review ', ' View ' }</span><br /> aDlgs := <span style="color: #000000;">{</span> <span style="color: #ff0000;">' File '</span>, <span style="color: #ff0000;">' Home '</span>, <span style="color: #ff0000;">' Insert '</span>, <span style="color: #ff0000;">' Design '</span>, <span style="color: #ff0000;">' Layout '</span>, ;<br /> <span style="color: #ff0000;">' References '</span>, <span style="color: #ff0000;">' Mailings '</span>, <span style="color: #ff0000;">' Review '</span>, <span style="color: #ff0000;">' View '</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">/*<br /> oRibbon := TRibbonBar():New( oWnd, aDlgs, , , , 135, 40, _nClrPaneRB, _nClrBoxOutRB, _nClrBoxInRB, , ;<br /> _nClrBoxSelOut, _aGradRB, _aGradFldRB, _aGradHighRB, _aGradOverRB, , , .T. , , )<br /> */</span><br /><br /> oRibbon := TRibbonBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, aDlgs, , , , <span style="color: #000000;">135</span>, <span style="color: #000000;">40</span>, CLR_CYAN, CLR_HRED, CLR_HBLUE, , ;<br /> CLR_CYAN, _aGradRB, _aGradFldRB, _aGradHighRB, _aGradOverRB, , , .T. , , <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// _nClrBoxSelOut, _aGradRB, _aGradFldRB, _aGradHighRB, _aGradOverRB,,,,,.T.)</span><br /> <br /> <span style="color: #B900B9;">// Change the colors of the tabs</span><br /><br /> AFill<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">aClrTabTxt</span>, <span style="color: #000000;">{</span> | oSelf, nPrompt | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nPrompt == oSelf:<span style="color: #000000;">nOption</span>, CLR_BLACK,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">nOverPrompt</span><span style="color: #000000;">(</span> ScreenToClient<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, ;<br /> ScreenToClient<span style="color: #000000;">(</span> oRibbon:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> == nPrompt, CLR_BLACK, _nClrTxt <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> WITH OBJECT oRibbon<br /><br /> :<span style="color: #000000;">nHeightFld</span> := <span style="color: #000000;">24</span><br /> :<span style="color: #000000;">hSeparation</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">nLeftMargin</span> = <span style="color: #000000;">10</span> <span style="color: #B900B9;">// left margin of tabs</span><br /><br /> <span style="color: #B900B9;">// :nClrBoxSelOut = _nClrBoxSelOut // New ! Removes white outline of tab when cursor is over them.</span><br /> :<span style="color: #000000;">nClrBoxSelOut</span> = CLR_YELLOW <span style="color: #B900B9;">// New ! Removes white outline of tab when cursor is over them.</span><br /><br /> :<span style="color: #000000;">l2010</span> = .T. <span style="color: #B900B9;">// New ! Turns off highlighting of groups when cursor is over them.</span><br /><br /> :<span style="color: #000000;">CalcPos</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> END<br /> <br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">70</span>, <span style="color: #ff0000;">"Clipboard"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDI-button"</span> BITMAP <span style="color: #ff0000;">""</span> GROUP oGroup <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">63</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"mdi2 button1"</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">70</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"MDI-button"</span> BITMAP <span style="color: #ff0000;">""</span> GROUP oGroup <span style="color: #0000ff;">ROUND</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">63</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"mdi2 button2"</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #B900B9;">// oBtn:oFont:End()</span><br /> <span style="color: #B900B9;">// oBtn:SetFont( oRb:oFont )</span><br /><br /> <span style="color: #B900B9;">// oBtn:nHeight -= 24</span><br /> oBtn:<span style="color: #000000;">bClrGradNormal</span> = <span style="color: #000000;">{</span> | lPressed | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lPressed, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oBtn:<span style="color: #000000;">aClrGradUnder</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oBtn:<span style="color: #000000;">aClrGradBack</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> oBtn:<span style="color: #000000;">nClrBoxIn</span> = RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span><br /> oBtn:<span style="color: #000000;">nClrBoxOut</span> = RGB<span style="color: #000000;">(</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #000000;">)</span><br /> <br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">260</span>, <span style="color: #ff0000;">"Font"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oGroup = oRibbon:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">221</span>, <span style="color: #ff0000;">"Paragraph"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> oGroup = oRibbon:<span style="color: #000000;">addGroup</span><span style="color: #000000;">(</span> <span style="color: #000000;">320</span>, <span style="color: #ff0000;">"Styles"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">FOR</span> EACH oDlg in oRibbon:<span style="color: #000000;">aDialogs</span><br /> <br /> oDlg:<span style="color: #000000;">hBack</span> = oRibbon:<span style="color: #000000;">hBrushEx</span><br /> oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">FOR</span> EACH oGroup in oDlg:<span style="color: #000000;">aControls</span><br /><br /> <span style="color: #00C800;">IF</span> oGroup:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TRBGROUP"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// oGroup:oFont:End()</span><br /> <span style="color: #B900B9;">// oGroup:SetFont( oRibbon:oFont )</span><br /> <br /> <span style="color: #B900B9;">// oGroup:nHeight = 100</span><br /> oGroup:<span style="color: #000000;">nClrBoxIn</span> = CLR_LIGHTGRAY<br /> oGroup:<span style="color: #000000;">aGradCaption</span> = <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, CLR_LIGHTGRAY, CLR_LIGHTGRAY <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> <span style="color: #B900B9;">// oGroup:bClrText = { | lEnable | If( lEnable, CLR_LIGHTGRAY, CLR_DARKGRAY ) } //CLR_DARKGRAY ) }</span><br /> oGroup:<span style="color: #000000;">nClrTxt</span> = RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> oGroup:<span style="color: #000000;">nClrBoxIn</span> = _nClrPaneRB <span style="color: #B900B9;">//CLR_LIGHTGRAY</span><br /><br /> oGroup:<span style="color: #000000;">nClrBoxOut</span> = _nClrPaneRB <span style="color: #B900B9;">//CLR_LIGHTGRAY</span><br /> <br /> <span style="color: #B900B9;">// oGroup:SetColor( _nClrTxt, _nClrPaneRB )</span><br /> <br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBrushSel</span> <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBrushUnSel</span> <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> oGroup:<span style="color: #000000;">hBack</span> <span style="color: #000000;">)</span><br /><br /> oGroup:<span style="color: #000000;">hBrushUnSel</span> = oDlg:<span style="color: #000000;">hBack</span><br /> oGroup:<span style="color: #000000;">hBack</span> = oDlg:<span style="color: #000000;">hBack</span><br /> <br /> oGroup:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">NEXT</span><br /><br /> <span style="color: #00C800;">NEXT</span><br /><br /> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">(</span> <span style="color: #000000;">930</span>, <span style="color: #000000;">400</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// oWnd:SetColor( , _nCtrlBkGround )</span><br /> oWnd:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> , CLR_YELLOW <span style="color: #000000;">)</span> <span style="color: #B900B9;">// WINDOW</span><br /><br /> <span style="color: #B900B9;">/*<br /> SET MESSAGE TO " Page 1 of 1 0 words English (United Kingdom)" OF oWnd ;<br /> COLOR _nClrTxt, _nClrPaneRB noinset noborder<br /> */</span><br /><br /> SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">" Page 1 of 1 0 words English (United Kingdom)"</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_CYAN, CLR_WHITE NOINSET NOBORDER<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2i5prml4] |
Cambio color ribbon (SOLUCIONADO) | Leandro.
[quote="leandro":2ix2uywp]pero no logro cambiar el color negro de la parte superior de la barra ribbon, esta señalada en la imagen,[/quote:2ix2uywp]
Leandro.
Probablemente en versiones actuales algo haya cambiado, pero en mi version "viejita" lo hago asi:
[code=fw:2ix2uywp]<div class="fw" id="{CB}" style="font-family: monospace;"> oRBar:<span style="color: #000000;">nClrPaneRB</span> := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">191</span>, <span style="color: #000000;">219</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Clr Panel del menu </span></div>[/code:2ix2uywp]
Saludos. |
Cambio color ribbon (SOLUCIONADO) | Muchas gracias por las respuestas.
Ya quedo solucionado <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Cambio de FWH 9.03 a FWH 10.09 | Hola a todos,
Estoy pasando de FWH 9.03 a la FWH 10.10 y me encuentro con estos errores:
c:\desarrol\bcc582\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN___CLS_PARAM' referenced from C:\DESARROL\TRE
BALL\AMPA1010\OBJ\TDBFSERV.OBJ
Error: Unresolved external '_HB_FUN_CURDRIVE' referenced from C:\DESARROL\TREBAL
L\AMPA1010\OBJ\DBF.OBJ
Error: Unresolved external '_HB_FUN_HB_SETCODEPAGE' referenced from C:\DESARROL\
TREBALL\AMPA1010\OBJ\SSET.OBJ
Estoy usando un ficheo .BAT y otro .RMK (ya lo hacia con la versión anterior).
Creo que estoy compilando con BCC582 y estoy lincando:
echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
REM LIB que permet compilar dins del propi EXE.
echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
REM FITXERS de Borland.
REM ===================
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc
Que me estoy dejando?
Me pueden ayudar?
Gracias. |
Cambio de Pestaña en Folder y Foco en 1er. Get | Hola:
Tengo un dialogo donde tengo un folder con 2 pestañas y en cada pestaña varios gets, bueno entonces trato de cambiar de pestaña del folder desde el ultimo get, he logrado cambiar de pestaña pero no establece el foco en el primer get, he probado:
oFld:SetOption(2) <-- esto si funciona
oGet[9]:setFocus() <-- esto no funciona
tambien he probado
oFld:aDialogs[2]:bgotFocus := {|| oGet[9]:setFocus(.t.) }
y tampoco ha funcionado, he visto otro mensaje igual al mio, pero no encontrado la solucion, alguien me podria orientar.
Saludos
Marco A. Delgado. |
Cambio de Pestaña en Folder y Foco en 1er. Get | Solucionado:
oGet[8]:oJump := oGet[9]
oFld:SetOption(2)
Saludos
Marco A. Delgado. |
Cambio de Resolucion del Windows | Perdonen Mi ignorancia, Existe alguna forma de Cambiarle la resolución al windows, al iniciar un módulo?
Angel |
Cambio de SERVIDOR | Amigos, otro problemas...
Resulta que tenemos montados 2 servidores, trabajan como esclavos, como trabajar con segundo servidor cuando se cae el primero. y volver al primero cuando se activa el primero
saludos |
Cambio de Tamaño y Fuente del Title Bar Window Principal | Estimados Colegas
Se puede cambiar el tamaño y, fuente del Title bar de la pantalla principal donde esta el menu , si alguien me puede orientar , desde ya muchas gracias
Fabian |
Cambio de Tamaño y Fuente del Title Bar Window Principal | Fabian,
Windows se encarga de dibujar el título de la ventana principal de la aplicación, por lo que puedes cambiarlo en ajustes de Windows,
pero afectará a todas las ventanas de Windows.
Para cambiar ese font solo en tu aplicación, revisa los ejemplos:
fwh\samples\skin1.prg y skin2.prg
En esos ejemplos una clase se encarga del dibujo completo de la ventana, incluyendo el título, los bordes, los botones, etc |
Cambio de Themes.obj en Fivehc.lib | Casi que este mensjae es para Antonio:
Utilizo FW2.4 + BCC32 + xHarbour 0.99.3 (PuertoSur)
El 29 de Junio de 2005 publicaste una respuesta a un mensaje que decia en el asunto "Sobre SAY", la solución haciendo un cambio en la clase TSay, MAS una sustitucion de Themes.obj en Fivehc.lb.
La pregunta es:
Se cambia con LIB, o con TLIB ? Cual seria la instruccion correcta?
Gracias anticipadas,
<!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
Cambio de Themes.obj en Fivehc.lib | Julio,
Puesto que usas BCC32, has de usar TLib.exe para reemplazar el OBJ en FiveHC.lib |
Cambio de Themes.obj en Fivehc.lib | Gracias Antonio, |
Cambio de Themes.obj en Fivehc.lib | la instruccion por si no la tienes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (lo dudo)
tlib fivehc.lib -+themes.obj
salu2
carlos vargas |
Cambio de color a etiquetas en diálogo. | Hola a todos.
¿Cómo puedo cambiar el color de todas las etiquetas de un diálogo sabiendo que están todas con el ID -1?
Gracias por adelantado y un saludo.
Fernando Morales del Rosario |
Cambio de color a etiquetas en diálogo. | Fernando,
Por etiquetas ¿ te refieres a SAYs ? |
Cambio de color a etiquetas en diálogo. | No son los says; son los controles STATIC STYLE, ya sabes las etiquetas que pongo a la izquierda del campo que voy a capturar. En el programa no hago REDEFINE de las etiquetas, de ahí que a todas las ponga como ID -1. |
Cambio de color a etiquetas en diálogo. | Solucionado. Le estaba pidiendo peras al olmo. Si tengo una serie de controles en un diálogo los cuales no redefino en el programa pues lógicamente no puedo hacer nada con ellos. Es preciso redefinirlos para poder actuar con/sobre ellos.
Un saludo,
Fernando Morales del Rosario |
Cambio de color de un Get deshabilitado | En una oportunidad pregunte por el tema de como cambiar el color de la letra gris de un get Deshabilitado por otro color, intente hacerlo con las recomendaciones dadas pero no me resulto,.. ha pasado el tiempo y con un poco mas de experiencia... podrian darme la mano y aplicarlo ...
uso Clipper 5.2
FW23
blinker 4
muchas gracias... y disculpen la repregunta....
Lubin |
Cambio de color de un Get deshabilitado | Lubin,
La Clase TGet de FW 2.7 ofrece esa capacidad. |
Cambio de color de un Get deshabilitado | [quote="Antonio Linares":2pvrc6vg]Lubin,
La Clase TGet de FW 2.7 ofrece esa capacidad.[/quote:2pvrc6vg]
La unica solucion seria actualizarme al FW 2.7 ??
Lubin |
Cambio de color de un Get deshabilitado | Lubin,
La cuestión es que desde FW24 a FW27 hay años de desarrollo y cambios, por lo que no podemos decirte "cambia esto" y que te funcione. |
Cambio de color de un Get deshabilitado | [quote="Antonio Linares":o820afky]Lubin,
La cuestión es que desde FW24 a FW27 hay años de desarrollo y cambios, por lo que no podemos decirte "cambia esto" y que te funcione.[/quote:o820afky]
Ok Antonio, queda claro,
pensare en habilitarlo cuando actualice el FW, pues espero no tener que reacomodar mucho al hacer la actualizaciones, es necesario algo mas de lo que tengo para una posible actualizacion ??
aunque estoy pensando pasarme a Harbour con FWh ... algun comentario adicional ??
uso Cliper 5.2
Blinker 4.0 |
Cambio de color de un Get deshabilitado | Lubin,
El mejor consejo es que te pases a 32 bits con FWH y harbour/xharbour. |
Cambio de color de un Get deshabilitado | Antonio, como se hace eso?
Sera que me pudes indicar?.. |
Cambio de colores en un GET | Hola gente !
Esto es una pantalla de facturación, a la cuál a medida que le incorporo artículos, se van incrementando los kilos.
A medida que se incrementan, quiero cambiar el color de la celda con la variable xcolorkgs.
Pero...
No funciona...
¿ Alguien me podría dar una mano ?
Muchas gracias !
Pedro.
public xcolorkgs
REDEFINE SAY oxkilos PROMPT xkilos ID 4007 of oDlg picture "999999" ;
COLOR xcolorkgs
//---------------------
FUNCTION CARGARTICULO()
//---------------------
if xkilos <= 100
xcolorkgs:=32768 // verde
endif
if xkilos > 100 .amd. xkilos <=1000
xcolorkgs:=8388608 // azul
endif
if xkilospro > 1000
xcolorkgs:=255 // rojo
endif |
Cambio de colores en un GET | [code=fw:2jrb49kc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oFont, oBold, oSay<br /> <span style="color: #00C800;">local</span> nValue := <span style="color: #000000;">2000</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SAY : Using bGet and bClrText"</span><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">{</span> || nValue <span style="color: #000000;">}</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">36</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nValue <= <span style="color: #000000;">100</span>, CLR_HBLUE, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nValue <= <span style="color: #000000;">1000</span>, CLR_GREEN, CLR_HRED <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> CLR_WHITE <span style="color: #0000ff;">UPDATE</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"50"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">50</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"500"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">500</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">280</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"5000"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">5000</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2jrb49kc]
[url=https://imageshack.com/i/pnPlAldFg:2jrb49kc][img:2jrb49kc]https://imagizer.imageshack.com/img923/9678/PlAldF.gif[/img:2jrb49kc][/url:2jrb49kc] |
Cambio de colores en un GET | Muchas gracias por ser tan amable en responder amigo Rao.
Pero el tema que tengo FWH 17.09 y quise compilar su ejemplo
(que está hermoso), con el buildx.bat.
al ejecutarlo no da errores, pero no me muestra nada,
solamente la pantalla de fondo. Es como si la pantalla se achicara y
no se ven los botones.
Por otra parte, traté de implementar en mi programa lo escrito en el
que me mandó como ejemplo y tampoco me funciona...
Es como la variable nValue no se refrescara o actualizara.
En fin, seguiré probando.
Saludos ! |
Cambio de colores en un GET | [code=fw:15su3877]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> CARGARTICULO<span style="color: #000000;">(</span>odlg<span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//---------------------</span><br /><span style="color: #00C800;">if</span> xkilos <= <span style="color: #000000;">100</span><br />xcolorkgs:=<span style="color: #000000;">32768</span> <span style="color: #B900B9;">// verde</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> xkilos > <span style="color: #000000;">100</span> .amd. xkilos <=<span style="color: #000000;">1000</span><br />xcolorkgs:=<span style="color: #000000;">8388608</span> <span style="color: #B900B9;">// azul</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> xkilospro > <span style="color: #000000;">1000</span><br />xcolorkgs:=<span style="color: #000000;">255</span> <span style="color: #B900B9;">// rojo</span><br /><span style="color: #00C800;">endif</span><br />odlg:<span style="color: #0000ff;">update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oxkilos:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//sino funciona odlg:update()</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:15su3877] |
Cambio de colores en un GET | [code=fw:votzzh44]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> CambiaClrSay<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">local</span> oDlg, oFont, oBold, oSay<br /> <span style="color: #00C800;">local</span> nKilos := <span style="color: #000000;">2000</span><br /> <span style="color: #00C800;">local</span> bColor := <span style="color: #000000;">{</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKilos <= <span style="color: #000000;">50</span>, cClr := CLR_HBLUE ,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKilos >= <span style="color: #000000;">51</span> .and. nKilos <=<span style="color: #000000;">500</span>, cClr := CLR_GREEN ,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKilos >= <span style="color: #000000;">501</span> .and. nKilos <=<span style="color: #000000;">1000</span>, cClr := CLR_HRED,<span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ,;<br /> oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span>cClr,CLR_YELLOW<span style="color: #000000;">)</span> ,;<br /> oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SAY COLOR TEST"</span><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> nKilos <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">36</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> <br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"50"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nKilos := <span style="color: #000000;">50</span>, Eval<span style="color: #000000;">(</span>bColor<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"500"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nKilos := <span style="color: #000000;">500</span>, Eval<span style="color: #000000;">(</span>bColor<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">280</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"1000"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nKilos := <span style="color: #000000;">1000</span>, Eval<span style="color: #000000;">(</span>bColor<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:votzzh44] |
Cambio de colores en un GET | This works for FWH1709.
[code=fw:w4pirlua]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> SayColors<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oFont, oBold, oSay<br /> <span style="color: #00C800;">local</span> nValue := <span style="color: #000000;">2000</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br /> <span style="color: #0000ff;">TITLE</span> FWVERSION<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> nValue <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">36</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">COLOR</span> SayClr<span style="color: #000000;">(</span> nValue <span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #0000ff;">UPDATE</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"50"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">50</span>, oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> SayClr<span style="color: #000000;">(</span> nValue <span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">)</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"500"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">500</span>, oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> SayClr<span style="color: #000000;">(</span> nValue <span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">)</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">80</span>,<span style="color: #000000;">280</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"5000"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> nValue := <span style="color: #000000;">5000</span>, oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> SayClr<span style="color: #000000;">(</span> nValue <span style="color: #000000;">)</span>, CLR_WHITE <span style="color: #000000;">)</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SayClr<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> n <= <span style="color: #000000;">100</span>, CLR_BLUE, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> n <= <span style="color: #000000;">1000</span>, CLR_GREEN, CLR_HRED <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:w4pirlua]
[url=https://imageshack.com/i/pny2xRKep:w4pirlua][img:w4pirlua]https://imagizer.imageshack.com/v2/xq90/923/y2xRKe.png[/img:w4pirlua][/url:w4pirlua]
We request you to indicate your FWH version, whenever you make a posting. This will help us to provide a solution that works for your version. This saves a lot of time for us and you. |
Cambio de colores en un GET | Muchas gracias amigos por su ayuda !!!
Saludos !
Pedro. |
Cambio de funciones FWH 9.03->FWH 10.09 | Hola a todos,
Alguien me podría decir como debo hacer para substituir esta línea de código para que compile y linque con la versión 10.09 de Fivewin (y su Harbour)?
__oDb := HbClass():New( DbClass, __CLS_PARAM ( "TBASICO" ) )
El caso es que con la versión actual FWH 10.09 la función __CLS_PARAM no es admitida (no debe estar en las .LIB lincadas), y no encuentro información sobre que la ha substituido.
Esto sería correcto?
__oDb := HbClass():New( DbClass, @TBASICO() )
Gracias. |
Cambio de funciones FWH 9.03->FWH 10.09 | Sigo |
Cambio de funciones FWH 9.03->FWH 10.09 | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=28077&p=200642#p200642">viewtopic.php?f=6&t=28077&p=200642#p200642</a><!-- l --> |
Cambio de lenguaje - Change programming language | Pues eso, he decidido dejar de programar en Fivewin y Harbour y migrar a programar en Visual Basic a partir de hoy
Well, that's why I decided to stop programming in Fivewin and Harbour and migrate to programming in Visual Basic as of today.
[b:14ya5m5w]28 of December of 2017[/b:14ya5m5w] |
Cambio de lenguaje - Change programming language | Is it a joke?
EMG |
Cambio de lenguaje - Change programming language | <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
Cambio de lenguaje - Change programming language | Yo estoy pensando lo mismo... eso de no poder encriptar dbfs me tiene frito.
Me voy a pasar a ensamblador, que ahí se puede hacer de todo y no tiene las limitaciones que tiene Harbour. |
Cambio de lenguaje - Change programming language | [quote="hmpaquito":2ya2e4wd]Yo estoy pensando lo mismo... eso de no poder encriptar dbfs me tiene frito.
Me voy a pasar a ensamblador, que ahí se puede hacer de todo y no tiene las limitaciones que tiene Harbour.[/quote:2ya2e4wd]
Pensándolo bien, me has convencido
Mejor Clipper y ensamblador y dejar las "windows", los 32 bits, etc. para otro momento |
Cambio de lenguaje - Change programming language | [quote="Enrico Maria Giordano":1csrpnrz]Is it a joke?
EMG[/quote:1csrpnrz]
Well, of course, December 28 is the day of the Holy Innocents in Spain
( Dia de los santos inocentes )
<!-- 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:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> |
Cambio de lenguaje - Change programming language | <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
EMG |
Cambio de oFont y Color | Holas,
estoy intentando cambiar el tipo de fuente y color de textos en dialogos (recurso)
[code=fw:5hwkooaw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> changeFont<span style="color: #000000;">(</span> oDlg, oFont <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------</span><br /> <span style="color: #00C800;">LOCAL</span> hCtrl := GetWindow<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span>, GW_CHILD <span style="color: #000000;">)</span>, hdc<br /><br /> <span style="color: #00C800;">WHILE</span> hCtrl != <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">IF</span> GetClassName<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"Static"</span> .AND. GetWindowLong<span style="color: #000000;">(</span> hCtrl, GWL_ID <span style="color: #000000;">)</span> == <span style="color: #000000;">-1</span><br /> SendMessage<span style="color: #000000;">(</span> hCtrl, WM_SETFONT, oFont:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> hdc = GetDC<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span><br /> SetTextColor<span style="color: #000000;">(</span> hdc, RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> RELEASEDC<span style="color: #000000;">(</span> hCtrl, hdc <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> hCtrl := GetWindow<span style="color: #000000;">(</span> hCtrl, GW_HWNDNEXT <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDDO</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:5hwkooaw]
Logro cambiar el tipo de fuente, pero no el color, alguien tiene algo de experiencia en esto?
llamo la funcion en la clausula ON INIT
saludos
Marcelo |
Cambio de oFont y Color | Alguna idea? |
Cambio de oFont y Color | Marcelo.
Estas constantes no las encuentro para poder hacer pruebas. Puedes indicarme donde las hallo, o mostrarlas?
[code=fw:38rdukc3]<div class="fw" id="{CB}" style="font-family: monospace;">GWL_ID <br />WM_SETFONT<br /> </div>[/code:38rdukc3]Saludos |
Cambio de oFont y Color | Los encontré aqui:
[code=fw:1wwxu5rp]<div class="fw" id="{CB}" style="font-family: monospace;">http:<span style="color: #B900B9;">//forums.fivetechsupport.com/viewtopic.php?f=6&t=16270&hilit=gwl+id+GW_CHILD#p93219</span><br /> </div>[/code:1wwxu5rp]Voy a hacer pruebas. |
Cambio de oFont y Color | Hola,
[code=fw:2b9ue1nz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> GW_CHILD <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> GW_HWNDNEXT <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> GWL_ID <span style="color: #000000;">-12</span><br /><span style="color: #00D7D7;">#define</span> WM_SETFONT <span style="color: #000000;">48</span><br /> </div>[/code:2b9ue1nz]
saludos
Marcelo |
Cambio de oFont y Color | Gracias, Marcelo. |
Cambio de oFont y Color | Marcelo,
Esto no te funciona?
[code=fw:3oxu7q3r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"preferences"</span> ;<br /> <span style="color: #0000ff;">TITLE</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Preferences"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">FONT</span> oFontMenu<br /> oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> , CLR_BLUE <span style="color: #000000;">)</span> <br /><br />.../...<br /> </div>[/code:3oxu7q3r]
o tienes otro motivo para desarrollar esa funcion? |
Cambio de oFont y Color | Cristobal,
lo que estoy intentando hacer es cambiar todos los text (SAY) de un dialogo definido en recursos sin tener que redefinirlos, pude cambiar la fuente pero no logro cambiar su color.
Gracias por tu respuesta
saludos
Marcelo |
Cambio de propiedades de un MP3 | Hola jovenes,
Alguien sabe alguna funcion para extraer y asignar o modificar las propiedades multimedia de un archivo MP3?
Esto es:
* Interpretes
* Interprete album
* Album
* Año
* Numero de pista
* Genero
* Duracion
* etc
Salu2 |
Cambio de propiedades de un MP3 | <!-- m --><a class="postlink" href="http://www.recursosvisualbasic.com.ar/htm/trucos-codigofuente-visual-basic/145-leer-tag-mp3.htm">http://www.recursosvisualbasic.com.ar/h ... ag-mp3.htm</a><!-- m -->
Aqui tienes varios ejemplos simples en Visual basic con todo el código fuente ( uno en la pagina y dos descargables ) , sería solo pasarlos a fivewin .
Saludos. |
Cambio de propiedades de un MP3 | Gracias Mastintin.
Para no "inventar el hilo negro", alguien ya lo paso a FWH?
Salu2 |
Cambio de propiedades de un MP3 | Rodolfo, si me das un poco de tiempo en algún lado tengo algo hecho (solo leía las cabeceras para grabar en una .dbf) ... solo necesito ver donde.
Un abrazo.
Miguel |
Cambio de propiedades de un MP3 | Te lo agradeceria. Salu2 |
Cambio de propiedades de un MP3 | Rodolfo, es muy urgente lo tuyo ?. Porque pensé que lo tenia en el disco portátil... pero no. Tendría que fijarme en casa en los otro discos y recién llego el lunes...
Si me aguantas, lo busco cuando vuelva.
Abrazo.
Miguel |
Cambio de propiedades de un MP3 | No te preocupes Don Miguel, por ahora logre solucionar ese problema de otra forma temporal. El dia que encuentres te agradecere me lo indiques y entonces lo aplicare ya de forma correcta.
Muchas gracias por tus atenciones.
Salu2 |
Cambio de texto en menú. | Hola a todos,
Como debo hacer para cambiar el texto de una opción de menú?
Saludos
Carlos G. |
Cambio de texto en menú. | Hola,
Mira en el \samples\TESTMNU?.PRG
Saludos. |
Cambio de texto en menú. | Hola Carlos:
[quote="FiveWiDi":2bby4jfd]Como debo hacer para cambiar el texto de una opción de menú?[/quote:2bby4jfd]
Prueba lo siguiente:
oMenu:aItems[ nItem ]:SetPrompt( "Nuevo Texto" )
Un abrazo. |
Cambio de texto en menú. | Gracias a ambos, ya lo conseguí, lo hice así:
Local oMenuResPer := Nil
MENUITEM oMenuResPer PROMPT "Personalizada (" + cGetScrApl( AMPAARRA ) + ")" ;
ACTION ( uSetScrResolution( AMPAARRA ), oMenuResPer:SetPrompt("Personalizada (" + cGetScrApl( AMPAARRA ) + ")") )
Saludos
Carlos G. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.