topic
stringlengths
1
63
text
stringlengths
1
577k
Color del COMBOBOX?
Hola amigos del foro: Es posible cambiar el color del COMBOBOX cuando este toma el foco? Saludos
Color del COMBOBOX?
Armando Try this code with the ON INIT clause .. [code=fw:25xdddxv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">PostMsg</span><span style="color: #000000;">&#40;</span> WM_KEYDOWN, VK_TAB <span style="color: #000000;">&#41;</span>, ;<br />&nbsp;</div>[/code:25xdddxv] This will allow you to see the combobox as you tab thru your fields ... Let me know if this is the effect you are looking for .. Rick Lipkin
Color del COMBOBOX?
Rick: Thanks for your kind and quick response, but no, it's not what I need. I need to change the color of the combobox when it has the focus With best regards
Color del COMBOBOX?
Armando, tenta asi: [code=fw:3hgte4vt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;SetCbxColorFocus<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">202</span>, <span style="color: #000000;">213</span>, <span style="color: #000000;">251</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3hgte4vt] Saludos.
Color del COMBOBOX?
March 2015 ========== * New: function SetCbxColorFocus( nClrFocus ) same as SetGetColorFocus() but for ComboBoxes. We tried to take these functions into Class TControl may there are many side effects for other controls. * Enhancement: Class TComboBox support for color change on focus gain/loose.
Color del COMBOBOX?
Karinha: Algún ejemplo? Saludos
Color del COMBOBOX?
Estimado armando Solo hay que colocar la función al inicio del programa y listo. Saludos Fernando Espinoza A.
Color del COMBOBOX?
Fer: Llevas razón, estaba probando con xHarbour FWH0810 y parece que necesita Harbour <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Saludos
Color del Footer en Xbrowse
Hola a todos, estoy haciendo un browse de ingresos/gastos y en las líneas del browse pinto el color del contenido en color distinto para ingresos y gastos. oApp():oGrid:bClrRowFocus := { || { iif( AP->ApTipo == "I", oApp():cClrIng, oApp():cClrGas ), oApp():nClrHL } } oApp():oGrid:bClrSelFocus := { || { iif( AP->ApTipo == "I", oApp():cClrIng, oApp():cClrGas ), oApp():nClrHL } } El tema es que quiero hacer lo mismo en los footer de la columna que muestran los importes, que cuando sea positivo tenga un color y cuando sea negativo sea de otro, pero esto no sé como hacerlo. El valor del footer lo obtengo en cada columna mediante una función que suma ingresos y resta gastos. ¿ Alguna idea de como cambiar el color al footer de un xbrowse de manera condicional en función de si la suma de la columna es positiva o negativa ? Muchas gracias, José Luis
Color del Footer en Xbrowse
Una idea [code=fw:1xd8wm7n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">bClrFooter</span>  = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>CLR_BLACK,colorEstado2<span style="color: #000000;">&#40;</span> cValtoChar<span style="color: #000000;">&#40;</span> oRsFtr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ll_anulad"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br /><br />*****************************************<br />*CAMBIA EL <span style="color: #0000ff;">COLOR</span> DE LA CELDA SELECCIONADO<br />*****************************************<br /><span style="color: #00C800;">Function</span> colorEstado2<span style="color: #000000;">&#40;</span>valor<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">IF</span> valor==<span style="color: #ff0000;">"A"</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">212</span>,<span style="color: #000000;">212</span>,<span style="color: #000000;">212</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//gris claro</span><br />ELSEIF valor==<span style="color: #ff0000;">"D"</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">187</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//verde claro</span><br />ELSEIF valor==<span style="color: #ff0000;">"E"</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">187</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo claro</span><br />ELSEIF valor==<span style="color: #ff0000;">"V"</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">187</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo claro</span><br />ELSEIF valor==<span style="color: #ff0000;">"I"</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">251</span>,<span style="color: #000000;">164</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Amarillo claro</span><br /><span style="color: #00C800;">ELSE</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Blanco</span><br /><span style="color: #00C800;">ENDIF</span><br /> </div>[/code:1xd8wm7n]
Color del Footer en Xbrowse
Gracias Leandro, funciona perfectamente. Saludos,
Color del GET cuando tiene el foco
Antonio y amigos del foro: Con las siguientes líneas [code=fw:2klh23qq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;TGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">lClrFocus</span> := <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrFocus</span> := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">197</span>, <span style="color: #000000;">205</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <br />&nbsp;</div>[/code:2klh23qq] Se logra que los gets al momento de tomar el foco cambien al color especificado y al perderlo vuelven al color por default (Blanco). Hasta aquí todo bien, pero, sería posible que también los gets tipo MEMO tengan esta misma propiedad ? Saludos
Color del GET cuando tiene el foco
At the beginning of your program: [code=fw:5ri89i57]<div class="fw" id="{CB}" style="font-family: monospace;">SetGetColorFocus<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><nBackColor><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span></div>[/code:5ri89i57]
Color del GET cuando tiene el foco
Mr. Rao: Thank you very much for your kind response, as always. I need to change the background color for gets with memo fields and only when they have the focus. Best regards
Color del GET cuando tiene el foco
[code=fw:1y0b0r96]<div class="fw" id="{CB}" style="font-family: monospace;">TMultiGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">lClrFocus</span> :=  .T.<br />TMultiGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrFocus</span> := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">197</span>, <span style="color: #000000;">205</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// default is nRGB( 235, 235, 145 ) </span><br /> </div>[/code:1y0b0r96]
Color del GET cuando tiene el foco
Recibe el Focus oGet:bGotFocus :={|| oGet:SetColor(nRGB( 0, 64, 64),nRGB(132,215,254)), oGet:Refresh() } Pierde el Focus oGet:bLostFocus:={|| oGet:SetColor(nRGB( 0,128,255),nRGB(255,255,225)), oGet:Refresh() }
Color del GET cuando tiene el foco
Mr. Rao And Tocayo: Both solutions work well. for ease I prefer the suggestion of Mr. Rao. Ambas soluciones funcionan muy bien, por facilidad y menos código me decanto por la solución de Mr. Rao. Many thanks
Color del GET cuando tiene el foco
Buenos días, ¿Y el color del texto como se cambiaría globalmente ? ¿Y el color del cursor? Porque se me ha planteado poner fondo negro, por ejemplo, y claro, no se ve nada. No entiendo como se crea esta función global para cambiar el color de los TGet, y sólo se refiere al fondo, cuando se habla de colores, siempre es color de texto y color de fondo.
Color del GET cuando tiene el foco
Es cierto, creo que puede ser más conveniente establecer valores globales objeto y asi con una funcion Set/Get se cubre todo el espectro relacionado. [code=fw:3vtgvcv2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Usando</span><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />GetClassGlobalParam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrFocus</span>:= CLR_READ<br />o:= GetClassGlobalParam<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />o:<span style="color: #000000;">nClrFocus</span>:= CLR_RED<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> GetClassGlobalParam<span style="color: #000000;">&#40;</span>oPar<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">STATIC</span> o<br /><span style="color: #00C800;">IF</span> PCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />   o:= oPar<br /><span style="color: #00C800;">ELSE</span><br />   <span style="color: #00C800;">IF</span> o == <span style="color: #00C800;">NIL</span><br />       o:= TGetValueGlobal<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> o<br /><br /><br /><span style="color: #00C800;">CLASS</span> TGetValueGlobal<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">DATA</span> nClrFocus<br />    <span style="color: #00C800;">DATA</span> nClrText<br /><br />     <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />::<span style="color: #000000;">nClrFocus</span>:= CLR_YELLOW<br />::<span style="color: #000000;">nClrText</span>:= CLR_BLACK<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span></div>[/code:3vtgvcv2]
Color del GET cuando tiene el foco
masters good afternoon for dtpicker ? best regards wilson
Color del GET cuando tiene el foco
i have tried both but nothing. the color no change [code=fw:3qrf7ys4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;SetGetColorFocus<span style="color: #000000;">&#40;</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// &nbsp; TGet():nClrFocus := nRGB( 40, 240, 255 )</span><br />&nbsp;</div>[/code:3qrf7ys4]
Color del borde en un dialogo con style WS_popup
Quisiera saber si es posible que el borde de un dialogo con estilo ws_popup tenga un color diferente o variable. Saludos Fernando Espinoza
Color del borde en un dialogo con style WS_popup
Fernando, El color viene definido por la configuracion de colores de Windows. Una solucion seria que no uses borde y que lo dibujes tu con la forma, colores, etc que desees Otra opcion es redefinir el metodo NcPaint() ("Non client paint") que se encarga de dibujar las zonas "no cliente" y asi tu dibujarlas como quieras. De todas formas cuando ya tengas que hacer transparencias, etc (tipo Windows 7) la cosa se complica <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Color del oGet : SelectAll()
Hay alguna manera de cambiar el color de la selección de un get ?. Muchas gracias. Saludos
Color del oGet : SelectAll()
Quizás aqui encuentres alguna solucion <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=31197&start=0&hilit=color+get">viewtopic.php?f=6&t=31197&start=0&hilit=color+get</a><!-- l -->
Color del selector en xBrowse
Antonio He cambiado el color en el xBrowse para que salga agua: [code=fw:1vi5x3xe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nMarqueeStyle</span> == MARQSTYLE_HIGHLWIN7<br />      ::<span style="color: #000000;">bClrSelFocus</span>       := ;<br />      ::<span style="color: #000000;">bClrSel</span>            := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK,<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">238</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">235</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">endif</span><br /> </div>[/code:1vi5x3xe] Me sale asi: [img:1vi5x3xe]http&#58;//200&#46;58&#46;169&#46;10/acr/xBrowse&#46;png[/img:1vi5x3xe] Se puede quitar el borde o reducir su grosor? Gracias por la ayuda. Saludos, Adheamar
Color del selector en xBrowse
Hola Acuellar: [img:1m0icjjz]http&#58;//www&#46;grupes&#46;es/basura/502&#46;png[/img:1m0icjjz] Según la imagen ampliada te la esta pintando con el grosor mínimo, la solución seria solo: ( en particular para mi quedan mas bonitos y visibles los Browses ). [code=fw:1m0icjjz]<div class="fw" id="{CB}" style="font-family: monospace;">          oGrid:<span style="color: #000000;">nColDividerStyle</span>    := LINESTYLE_BLACK<br /> </div>[/code:1m0icjjz] Te quedaría algo así usando solo esta DATA: [img:1m0icjjz]http&#58;//www&#46;grupes&#46;es/basura/501&#46;png[/img:1m0icjjz] Un saludo JLL
Color del selector en xBrowse
Gracias JLL Asi es, sin las líneas divisorias sale perfecto. Mi idea era utilizando oBrw:nRowDividerStyle:=LINESTYLE_LIGHTGRAY Saludos, Adhemar
Color del selector en xBrowse
Lo he solucionado asi: [code=fw:3h1znkod]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; oBrw:<span style="color: #000000;">nMarqueeStyle</span>:=MARQSTYLE_HIGHLROW<br />&nbsp; oBrw:<span style="color: #000000;">nColDividerStyle</span>:=LINESTYLE_LIGHTGRAY<br />&nbsp; oBrw:<span style="color: #000000;">nRowDividerStyle</span>:=LINESTYLE_LIGHTGRAY<br />&nbsp; oBrw:<span style="color: #000000;">bClrSelFocus</span>:=<span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK,<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">238</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">235</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3h1znkod] Sale como queria. Saludos, Adhemar
Color del selector en xBrowse
Adhemar lo uso asi [img] [url=http&#58;//www&#46;hiboox&#46;es/go/imagenes/otros/xbrw1,f2eb621ff9e358e6a495f29f347c2dcc&#46;jpg&#46;html:2lo0pfzu][img:2lo0pfzu]http&#58;//free0&#46;hiboox&#46;com/images/2112/f2eb621ff9e358e6a495f29f347c2dcc&#46;jpg[/img:2lo0pfzu][/url:2lo0pfzu] [/img] [img] [url=http&#58;//www&#46;hiboox&#46;es/go/imagenes/otros/xbrw2,4cd985c214f73709b1bce663ede156cf&#46;jpg&#46;html:2lo0pfzu][img:2lo0pfzu]http&#58;//free0&#46;hiboox&#46;com/images/2112/4cd985c214f73709b1bce663ede156cf&#46;jpg[/img:2lo0pfzu][/url:2lo0pfzu] [/img] saludos paco
Color del texto por defecto
Hola foroSaludo cordialy mis mejores deseos de bienestar para todos en esta navidadAntonioComo Cambio el color por defecto del texto en richedit?GraciasJairo Barbosa
Color del texto por defecto
Hola Jairo a mi me pasaron este dato, quizas te sirvaoRich = TRichEdit():Redefine( 101, { || "" }, oDlg )oRich:LoadFromRTFFile(xfileRtf ) && Lee el archivo Rtf * Cambio de color oRich:bGotFocus:= {||oRich:SetBkGndColor(nRGB(0,100,250)) } oRich:bLostFocus:= {||oRich:SetBkGndColor(nRGB(255,255,255)) } Lubin [quote="jaba":1c7bhynn]Hola foro Saludo cordial y mis mejores deseos de bienestar para todos en esta navidad Antonio Como Cambio el color por defecto del texto en richedit? Gracias Jairo Barbosa[/quote:1c7bhynn]
Color del texto por defecto
[quote="lubin":2hbclnqz]Hola Jairo a mi me pasaron este dato, quizas te sirva oRich = TRichEdit():Redefine( 101, { || "" }, oDlg ) oRich:LoadFromRTFFile(xfileRtf ) && Lee el archivo Rtf * Cambio de color oRich:bGotFocus:= {||oRich:SetBkGndColor(nRGB(0,100,250)) } oRich:bLostFocus:= {||oRich:SetBkGndColor(nRGB(255,255,255)) } Lubin //******************************* Lubin Gracias por tu respuesta Intento y te cuento Jairo [quote="jaba":2hbclnqz]Hola foro Saludo cordial y mis mejores deseos de bienestar para todos en esta navidad Antonio Como Cambio el color por defecto del texto en richedit? Gracias Jairo Barbosa[/quote:2hbclnqz][/quote:2hbclnqz]
Color del texto por defecto
[quote="jaba":vohp75om][quote="lubin":vohp75om]Hola Jairo a mi me pasaron este dato, quizas te sirva oRich = TRichEdit():Redefine( 101, { || "" }, oDlg ) oRich:LoadFromRTFFile(xfileRtf ) && Lee el archivo Rtf * Cambio de color oRich:bGotFocus:= {||oRich:SetBkGndColor(nRGB(0,100,250)) } oRich:bLostFocus:= {||oRich:SetBkGndColor(nRGB(255,255,255)) } Lubin //******************************* Lubin Gracias por tu respuesta Intento y te cuento Jairo [quote="jaba":vohp75om]Hola foro Saludo cordial y mis mejores deseos de bienestar para todos en esta navidad Antonio Como Cambio el color por defecto del texto en richedit? Gracias Jairo Barbosa[/quote:vohp75om][/quote:vohp75om][/quote:vohp75om]*------------------------------------------------------------------------------Lubin he probado las expresiones que me diste pero solo funciona esta oRich:bGotFocus:= {||oRich:SetBkGndColor(nRGB(215,250,223)) } y cambia solo el color del fondo del texto, y la segunda expresion oRich:bLostFocus:= {||oRich:SetBkGndColor(nRGB(255,255,255)) } no hace nadaEspero que Antonio o algun colega que tenga la experiencia de controlar el color del texto en la lase Richedit me puedan ayudarUn abrazoCordialmenteJairo Barbosa
Color del títulos en dialogos
Estimados: necesito fijar un color especifico en el titulo de un dialogo y también su color de fondo, no es el contenido del dialogo, sino en titulo y su fondo y sus bordes. busque y busque en el foro pero no encontré nada. espero que me entiendan Gracias.
Color del títulos en dialogos
Armando, El color del título viene fijado por la configuración de colores de Windows. Si necesitas que sea de otro color, lo más sencillo es que no uses barra de título y la dibujes tu. Revisa el ejemplo FWH\samples\skin1.prg
Color del títulos en dialogos
muchas gracias, era lo que buscaba. <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
Color em Head..Wbrowse ??
Estou usando Twbrowse do Fwh712, mas, no estou conseguindo por Cor nos heads. oBrw:nClrBackHead := CLR_BLUE oBrw:nClrForeHead := CLR_WHITE No muda las Cores...continuam las cores de Default. Saluds
Color em Head..Wbrowse ??
Ale, Usas temas en tu aplicación ? De ser así, el browse muestra el pintado típico de las cabeceras con temas y no usa los datos definidos en esas DATAs
Color em prompt GroupBox no Vista ???
No estou conseguindo por Cor em Prompt do GroupBox.. No XP, el Prompt fica Blue. No Vista, el Prompt fica Black. REDEFINE GROUP oGrp[1] ID 301 COLOR CLR_VERMELHO OF oDlg ; FONT Arial12B PROMPT "Dados da Distribuição de Rotas" No aceitam o Color, oq fazer ? Saluds
Color em prompt GroupBox no Vista ???
Este Problema, és Desde la Version 2.7. Mira: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8039&highlight=color">http://fivetechsoft.com/forums/viewtopi ... ight=color</a><!-- m -->
Color em prompt GroupBox no Vista ???
Valew..Joao.... No Xp..ate q fica legal....pq ele pega o Azul..como titulo..mas no Vista..o Titulo fica Preto... O geito entao seria..fazer como o Antonio disse...usar um Say...como Titulo.... Mas Blz... Gracias pela dica
Color en Barra de botones
Hola Quiero utilizar esta declaracion para la Barra de Botones pero al parecer ha cambiado oBar:SETCOLOR( NIL,nGris ) Alguna sugerencia
Color en Barra de botones
Prueba a usar la cáusula 2007 DEFINE BUTTONBAR ... 2007 En la versión actual de FWH tienes muchos más estilos para que tu aplicación se vea como Microsoft Office.
Color en Barra de botones
Este codigo funciona perfectamente [code=fw:zylm1cyg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span> <span style="color: #B900B9;">//LEFT</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> , CLR_RED <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> TestBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">MENU</span> BuildPopup<span style="color: #000000;">&#40;</span> oBar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp;<br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:zylm1cyg] [img:zylm1cyg]https&#58;//s24&#46;postimg&#46;org/8gebqcixh/child03&#46;png[/img:zylm1cyg]
Color en GET ReadOnly
Antonio En FWH existe la posibilidad de darle color a un Get con la cláusula READONLY. ¿Sería posible incluir esta posibilidad en FWPPC? Saludos
Color en GET ReadOnly
Toni, En Windows cuando un Get está deshabilitado el propio Windows lo pinta de una forma diferente. En Pocket PC, si no me equivoco, no hay diferencia. Has probado a hacer oGet:SetColor( ..., ... ) al Get que quieras cambiarle el color ?
Color en GET ReadOnly
[quote="tsales":3fuzw3mm]Antonio En FWH existe la posibilidad de darle color a un Get con la cláusula READONLY. ¿Sería posible incluir esta posibilidad en FWPPC? Saludos[/quote:3fuzw3mm] Buenas, Defínelo SIN utilizar la cláusula READONLY, le aplicas el color que quieras, después realizas un oTuGet:lReadOnly := .T. y como dicen por aquí 'listo el pollo' (supongo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ). Saludos Carlos G.
Color en GET ReadOnly
Ok Gracias a los dos Saludos
Color en GET ReadOnly
Carlos La asignacion de colores funciona pero recibe el foco y por tanto no nos sirve. He realizado pruebas utilizando el metodo Disable() y te permite cambiar el color de Fondo pero no el color del Texto. El problema que me encuentro es que con el reducido tamaño de la pantalla en una PDA cuando un Get está con el estado disable o readonly el texto prácticamente no se vé. Saludos
Color en GET ReadOnly
[quote="tsales":1r8p12kz]Carlos La asignacion de colores funciona pero recibe el foco y por tanto no nos sirve. He realizado pruebas utilizando el metodo Disable() y te permite cambiar el color de Fondo pero no el color del Texto. El problema que me encuentro es que con el reducido tamaño de la pantalla en una PDA cuando un Get está con el estado disable o readonly el texto prácticamente no se vé. Saludos[/quote:1r8p12kz] Prueba esto: oGet:bGotFocus := {|| ::oWnd:GoNextCtrl( ::hWnd ) } o esto: oGet:bGotFocus := {|| oGet:oWnd:GoNextCtrl( oGet:hWnd ) } o esto: oGet:bGotFocus := {|| Self:oWnd:GoNextCtrl( Self:hWnd ) } en fin, creo que la idea es fácil, su lógica ... Mejor aún: oGet:bGotFocus := {|| If(::lReadonly, ::oWnd:GoNextCtrl( ::hWnd ), Nil) } Saludos Carlos G.
Color en GET ReadOnly
Carlos No sirve. Gracias de todas formas. Saludos
Color en GET ReadOnly
#Define AzulB 16711680 #Define GrisB 12632256 Function Mifuncion() ... ... REDEFINE GET oGet VAR vGet ID 100 OF oDlg READONLY COLOR AzulB,GrisB ... ... Return nil // AzulB será el color de la letra dentro del get. GrisB será el color del get propiamente dicho. Yo lo hago de esta forma y funciona perfecto Solo debes definir los colores que quieres utilizar en la cabecera de tu PRG como se muestra arriba y en el caso de no utilizar generador de recursos solo debes cambiar REDEFINE por DEFINE. Saludos, Esteban
Color en Radio y Checkbox
Amigos del foro, ¿es posible cambiar el color a Radio o Checkboxs? Lo he intentado durante 2 horas y no lo logro. He revisado en el foro varios ejemplos pero están definidos desde codigo. Los míos son desde recursos y no funciona el cambio de color, con brush o degradado (SetDlgGradient()). Uso FWH 1204 Este es el codigo que estoy usando: [code=fw:2yv5hos8]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadioB <span style="color: #0000ff;">VAR</span> nRadioB <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">16642248</span>   <span style="color: #B900B9;">//NO FUNCIONA</span><br /> </div>[/code:2yv5hos8] Este tampoco me funciona: [code=fw:2yv5hos8]<div class="fw" id="{CB}" style="font-family: monospace;">     <span style="color: #00C800;">For</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nLen<br />        <span style="color: #00C800;">if</span> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CLASSNAME</span> == <span style="color: #ff0000;">"TSAY"</span>    <span style="color: #B900B9;">//funciona</span><br />           oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">252</span>,<span style="color: #000000;">232</span>,<span style="color: #000000;">171</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />        elseif oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CLASSNAME</span> == <span style="color: #ff0000;">"TGET"</span>     <span style="color: #B900B9;">//funciona </span><br />           oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>,RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />        elseif oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CLASSNAME</span> == <span style="color: #ff0000;">"TRADIO"</span> <span style="color: #B900B9;">// NO FUNCIONA</span><br />           oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">endif</span><br />     <span style="color: #00C800;">Next</span><br />     oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2yv5hos8] Agradezco cualquier sugerencia. Saludos.
Color en Radio y Checkbox
[url=http&#58;//www&#46;4shared&#46;com/photo/5WKL7_xI/Sin_ttulo&#46;html?refurl=d1forum:73z4335r][img:73z4335r]http&#58;//dc620&#46;4shared&#46;com/img/5WKL7_xI/0&#46;47084673681479394/Sin_ttulo&#46;jpg[/img:73z4335r][/url:73z4335r]
Color en Radio y Checkbox
// Intenta modificar CONTROL.PRG talbéz funcione... [code=fw:kq6hqdam]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Colors<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TControl<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">nClrText</span> := GetTextColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nClrPane</span> := GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>,; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBrush</span> &nbsp; := TBrush<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lTransparent</span> := .F.<br /><br />&nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrText</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lTransparent</span><br />&nbsp; &nbsp; &nbsp; SetBkMode<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// TRANSPARENT</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBrushOrgEx<span style="color: #000000;">&#40;</span> hDC, nBmpWidth<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span> - ::<span style="color: #000000;">nLeft</span>, nBmpHeight<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span> - ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> hDC, GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">else</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsAppThemed<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">"TCHECKBOX;TRADIO;TGROUP"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawPBack<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, &nbsp;hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span><br />&nbsp;</div>[/code:kq6hqdam]
Color en Radio y Checkbox
Hola, aqui, de nuevo. Omitiendo esto en el RC no funciona 1 24 ThemesXp.Manifest Usando IsAppThemed() return .f. //no funciona Usando IsAppThemed() return .t. //no funciona Con este codigo: REDEFINE CHECKBOX oCkBoxProf VAR lCkBoxProf ID 239 OF oDlg COLOR 123123,0 //no Funciona oCkBoxProf:SETCOLOR( 123123, ) //No funciona AEval( oDlg:aControls, {|o| ; if(UPPER(o:CLASSNAME) == "TSAY", o:SetColor( RGB(252,232,171),0 ) ,; //funciona if(UPPER(o:CLASSNAME) == "TGET", o:SetColor( 0,RGB(199,216,237) ) ,; //funciona if(UPPER(o:CLASSNAME) == "TCHECKBOX" .or. UPPER(o:CLASSNAME) == "TRADIO", o:SetColor( RGB(199,216,237),0 ),))) } ) //NO FUNCIONA Quizas la imagen anterior no dice nada. [url=http&#58;//www&#46;4shared&#46;com/photo/HgYM5B1H/Rad_Check&#46;html?refurl=d1forum:4jsb2w7t][img:4jsb2w7t]http&#58;//dc587&#46;4shared&#46;com/img/HgYM5B1H/0&#46;19762211087187787/Rad_Check&#46;bmp[/img:4jsb2w7t][/url:4jsb2w7t] Saludos.
Color en Radio y Checkbox
Gracias por contestar, Karinha. Voy a probar y te digo. Saludos.
Color en Radio y Checkbox
Karinha, agregue Control.prg a mi compilacion, modificado con lo que sugeriste. Desafortunadamente, persiste el comportamiento. (No cambia colores de Radio o CheckBox). Saludos.
Color en Radio y Checkbox
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=20937">http://www.fivewin.com.br/forum/topic.a ... C_ID=20937</a><!-- m -->
Color en Radio y Checkbox
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=9567">http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=9567</a><!-- m -->
Color en Radio y Checkbox
Gracias Karinha, por tu interés. Ya he probado de muchas maneras, en XP SP2 y W7 ULTIMATE, y nada. Lo raro es que si desactivo los Radios, si los presenta desactivados. (tanto XP como W7). "Sigo de frente" (como decimos aqui). Saludos.
Color en Radio y Checkbox
Hola, por favor ejecuten este ejemplo y me dicen. ( compilado con FWH 1204 - XHARBOUR Compiler build 1.2.1 (SimpLex) (Rev. 9445) - BORLAND 582) [code=fw:2579xnm5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//------------------</span><br /><span style="color: #00C800;">Function</span> Prueba<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg,oRad,nVar:=<span style="color: #000000;">2</span>,oCheck, lCkbox:=.f.<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;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span><br />oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />@<span style="color: #000000;">2</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">CHECKBOX</span> oCheck  <span style="color: #0000ff;">VAR</span> lCkBox <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> ; <span style="color: #B900B9;">//COLOR 16777215</span><br />   <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>lCkbox,oRad:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oRad:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />oCheck:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">" Prueba de Color"</span><br />oCheck:<span style="color: #000000;">nClrText</span> := <span style="color: #000000;">16777215</span><br /><br />@<span style="color: #000000;">20</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">RADIO</span> oRad <span style="color: #0000ff;">VAR</span> nVar <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"UNO"</span>,<span style="color: #ff0000;">"DOS"</span>,<span style="color: #ff0000;">"TRES"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span><br />AEval<span style="color: #000000;">&#40;</span> oRad:<span style="color: #000000;">aItems</span>,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #000000;">nClrText</span> := <span style="color: #000000;">16777215</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</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: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2579xnm5] Me he visto obligado a hacerlo de la manera "mas chapucera" que se conoce: agregando controles say a cada Radio y CheckBox. Saludos.
Color en Radio y Checkbox
Francisco, Estas usando un degradado en el diálogo y quieres que esos controles tengan un color distinto, si ?
Color en Radio y Checkbox
Antonio, gracias por tu tiempo. Efectivamente, tengo un dialogo degradado con SetDlgGradient(), y su color es negro puro. Lo que quiero es poner el texto de los CheckBox y Radio en un color diferente (celeste, por ejemplo), ya que siempre se toman con su color original (negro) y no se visualizan. Si los pongo :disabled() si se reflejan, apenas, con su color plomo bajo. Inluso, en pruebas sin degradado, no cambian de color. Aprovecho para preguntarte ¿donde te puedo subir una carpeta que contiene 20 ficheros de musica? (55MB) [url=http&#58;//www&#46;4shared&#46;com/photo/s1wB2NYG/docum&#46;html?refurl=d1forum:30b9vtos][img:30b9vtos]http&#58;//dc614&#46;4shared&#46;com/img/s1wB2NYG/0&#46;4917069501640057/docum&#46;bmp[/img:30b9vtos][/url:30b9vtos] Nuevamente gracias. Saludos.
Color en Radio y Checkbox
Francisco, Encontraste alguna forma de resolver esto??? Mi problema es con el color de fondo... Yo tambien ya había probado colocando Say's junto a los checkboxes, pero hay que encontrar la forma de resolver el problema... Por ahora tengo estos dos problemas: Check Boxes y Group Boxes: [img:396bt18z]http&#58;//www&#46;mayapos&#46;com/FiveWin/setdlg&#46;png[/img:396bt18z] MsgSiNo() [img:396bt18z]http&#58;//www&#46;mayapos&#46;com/FiveWin/setdlg1&#46;png[/img:396bt18z] [code=fw:396bt18z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MsgSiNo<span style="color: #000000;">&#40;</span>cCaption, cTitle<span style="color: #000000;">&#41;</span><br />    <br />    SiNo := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">" Sí "</span> , <span style="color: #ff0000;">" No "</span> <span style="color: #000000;">&#125;</span> <br />    nOK := ALERT<span style="color: #000000;">&#40;</span>cCaption, SiNo, cTitle, <span style="color: #000000;">1</span>, <span style="color: #000000;">32516</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// 32512 al 32516</span><br />    <br />    <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOK == <span style="color: #000000;">1</span> , nOK := .T. , nOK := .F. <span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #00C800;">RETURN</span> nOK<br /> </div>[/code:396bt18z]
Color en Radio y Checkbox
Bayron, aun tengo los mismos problemas. Saludos.
Color en Radio y Checkbox
Alguna sugerencia Antonio...!!!! Gracias...
Color en Radio y Checkbox
SOLUCIONADO [url:q2f15ypr]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=25716#p140639[/url:q2f15ypr]
Color en TcBrowse()
Hola a todos. Tengo un problema con una grilla que deseo colorear una linea de color verde claro ( por ejemplo ) si algo ocurre en el registro. Con TcBrowse, usaba el ::nClrPane pero con columnas no ha funcionado. Alguien tiene una idea para corregir esto, les adjunto un trozo de codigo, cualquier ayuda sera bien recibida. Saludos Tb:nClrPane := {|| If( Paso->estado==1, CLR_YELLOW ,; If( Paso->Estado==2, CLR_HGRAY, CLR_WHITE ) ) }
Color en TcBrowse()
Revisa el ejemplo samples\TestTcbr.prg
Color en TcBrowse()
antonio, gracias. logré colorear las letras sin interferir con el fondo, pues cada vez que intentaba usar el fondo ( mi tecnica anterior ) todo se volvio negro. pero use esas ayudas y logré superarlo. Saludos
Color en barra de Título
Como hago para poder al crear otra ventana, cambiar el color de la barra de título. También se me presenta otro problema, que es al crearla y luego al cerrarla, me cambia la tipografía de la primera ventana, solamente en el lugar en que fue creada la 2da ventana Gracias : <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Color en barra de Título
El color de la barra del título es un valor de la configuración de Windows, y que afecta a todo Windows. Lo que puedes hacer es crear una ventana ó diálogo, sin título, y dibujarlo tu con los colores que precises. Para evitar ese problema con los fonts haz: <oWnd>:oFont:nCount++ en donde <oWnd> es el nombre de la variable de tu ventana.
Color en celdas en el browse y problemas con ODBC-MYSQL
Hola a todos tengo 2 problemas que espero me puedan ayudar. 1.- Yo uso el TWbrowse, para los browse. ( o por lo menos eso dice el nombre cuando construyo en el resource workshop de borland) Necesito cambiar el color de algunas celdas del browse dependiendo de ciertas condiciones. Como puedo hacer eso ? si necesito cambiar de browse de donde lo bajo ? como lo instalo ? como lo llamo desde el editor de recursos ?, que tengo que hacer diferente en la programacion para llamar a este nuevo browse ? Yo defino el browse de la sig manera : REDEFINE LISTBOX oLbx1 FIELDS act->act ..... 2.- Tengo un odbc con mysql que funciona bien con FW. Pero al momento de hacer un browse con una tabla de odbc, el primer registro como que se duplica al momento de llegar al inicio cuando estas recorriendo el browse con los vertical scroll bars. Como que llegas al primero, pero si intentas ir mas arriba, te muestra el segundo registro y luego se devuelve al primero etc... algo raro. Muchas Gracias por su ayuda.
Color en checkbox no editable
Hola a todos, en el Puchero [url:19xyyv5v]https&#58;//github&#46;com/JoseluisSanchez/puchero[/url:19xyyv5v] tengo un formulario de recetas donde determinados campos se calculan de manera automática. Estos campos son GET no editables y los pongo en color haciendo lo siguiente: [code=fw:19xyyv5v]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aSayEsc<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nReAz2 <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 9,999,999.99"</span> ;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">27</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">WHEN</span> .F.<br />   aSayEsc<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lDisColors</span>  := .F.<br />   aSayEsc<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrTextDis</span> := GetSysColor<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:19xyyv5v] El resultado es [img:19xyyv5v]https&#58;//www&#46;alanit&#46;com/wp-content/uploads/2020/05/pch662afwh&#46;png[/img:19xyyv5v] Ahora quiero hacer lo mismo con unos checkbox que también llevan la clausula WHEN .f para que el usuario no los edite, pero no encuentro la forma. Quiero darles el mismo color por un tema de coherencia del interfaz, pues el gris de control deshabilitado queda un tanto feote. [img:19xyyv5v]https&#58;//www&#46;alanit&#46;com/wp-content/uploads/2020/05/pch662bfwh&#46;png[/img:19xyyv5v] ¿ Alguien sabe como hacer esto ? Saludos, José Luis
Color en checkbox no editable
Jose I have had trouble tabbing thru check-boxes and active gets in a mix of controls was confusing to users . I found this simple code which changes the color of the Get when it gets in focus: [code=fw:3cygelqg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SetGetColorFocus<span style="color: #000000;">&#40;</span> rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">209</span>,<span style="color: #000000;">224</span>,<span style="color: #000000;">252</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// turn on color for in focus gets</span><br /><br />SetGetColorFocus<span style="color: #000000;">&#40;</span> CLR_WHITE <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// resets the in-focus back to default ..</span><br />&nbsp;</div>[/code:3cygelqg] may not be exactly what you are looking for .. Rick Lipkin
Color en checkbox no editable
Buenos días José Luis. Prueba, si lo deseas este ejemplo. Por si te puede inspirar algo. [code=fw:3k9r6pq2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># INCLUDE <span style="color: #ff0000;">"FIVEWIN.CH"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> oDlg, oFont<br /><span style="color: #00C800;">LOCAL</span> oCheck, lCheck:=.t.<br /><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;">"calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><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;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">600</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Prueba de color en CheckBox desactivado"</span><br /><br /><br />      @<span style="color: #000000;">20</span>,<span style="color: #000000;">50</span> <span style="color: #0000ff;">CHECKBOX</span> oCheck <span style="color: #0000ff;">VAR</span> lCheck <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Gluten"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">20</span><br /><br /><br />     @<span style="color: #000000;">120</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Desactivar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">ACTION</span> xDisable<span style="color: #000000;">&#40;</span>oCheck<span style="color: #000000;">&#41;</span><br />     @<span style="color: #000000;">120</span>,<span style="color: #000000;">70</span>  <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Activar"</span>    <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">ACTION</span> oCheck:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     @<span style="color: #000000;">120</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span>      <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">22</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><br /><br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> xDisable<span style="color: #000000;">&#40;</span>oCheckBox<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> oWnd     := oCheckBox:<span style="color: #000000;">oWnd</span><br /><span style="color: #00C800;">LOCAL</span> oFont    := oCheckBox:<span style="color: #000000;">oFont</span><br /><span style="color: #00C800;">LOCAL</span> cCaption := oCheckBox:<span style="color: #000000;">cCaption</span><br /><span style="color: #00C800;">LOCAL</span> nTop     := oCheckBox:<span style="color: #000000;">nTop</span><br /><span style="color: #00C800;">LOCAL</span> nLeft    := oCheckBox:<span style="color: #000000;">nLeft</span><br /><span style="color: #00C800;">LOCAL</span> nWidth   := oCheckBox:<span style="color: #000000;">nWidth</span><span style="color: #000000;">-18</span>      <span style="color: #B900B9;">// Los ajustes -18 y -12 dependen del tipo de letra, si es un Dialogo, etc..</span><br /><span style="color: #00C800;">LOCAL</span> nHeight  := oCheckBox:<span style="color: #000000;">nHeight</span><span style="color: #000000;">-12</span>      <span style="color: #B900B9;">// Debería ser calculado para cualquier font. Esto es solo para el ejemplo</span><br /><br />oCheckBox:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />@nTop<span style="color: #000000;">+12</span>,nLeft<span style="color: #000000;">+18</span> <span style="color: #0000ff;">SAY</span> cCaption <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PIXEL</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3k9r6pq2]
Color en checkbox no editable
José Luis, ¿Podrías decirnos como pones el título del diálogo en azul? Muchas gracias.
Color en checkbox no editable
Rick, thanks but that's not what I'm looking for Jesús, pues lo de la letra lo veo complicado de calcular, pero me has dado una idea. Tendría que hacerlo con bitmaps, es un trabajazo pero puede quedar bien. MG, los colores son los de Windows con énfasis en la barra de título, no es cosa de mi programa. Saludos,
Color en checkbox no editable
José Luis, pon los checkbox sin texto y a la derecha de cada uno, le pones un say, al say le cambias el color... Un saludo
Color en checkbox no editable
Al final decidí hacerme mis propios checkbox usando un bitmappara el cuadro y un text para la etiqueta. De esta manera tengo los mismos colores que en los get no editables. Es más frabajo, pero creo que el resultado ha valido la pena: [img:22sau9fl]https&#58;//www&#46;alanit&#46;com/wp-content/uploads/2020/05/imagen-3&#46;png[/img:22sau9fl] El código es muy sencillo: [code=fw:22sau9fl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> BITMAP aAler<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> ;<br />      <span style="color: #0000ff;">RESOURCE</span> IIF<span style="color: #000000;">&#40;</span>lReEGluten==.t., <span style="color: #ff0000;">"16_CHECK_BOX"</span>, <span style="color: #ff0000;">"16_UNCHECK_BOX"</span><span style="color: #000000;">&#41;</span> TRANSPARENT <span style="color: #0000ff;">UPDATE</span> <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aAler<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">COLOR</span> GetSysColor<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:22sau9fl] Saludos,
Color en filas de XBrowse
Hola a todos, Que data de XBrowse tengo que setear para variar el color de la línea que tenía el foco en un XBrowse, y que ya no lo tiene por que el usuario ha cambiado a otro control (p.e. un GET)? Gracias,
Color en filas de XBrowse
bClrSelFocus // when the browse has focus bClrSel // when browse is not in focus
Color en los Get's
Hola foro. Tengo un dialogo con unos cuantos Gets y unos botones para activar o desactivar la edicion de los gets. Cuando estan inactivos el color de estos tiene muy poco brillo. Como puedo hacer para cambiarlos el color. Gracias
Color en los Get's
Jose Martín, Ya hemos implementado esa mejora y se publicará en unos dias en el build de Enero 2006 de FWH.
Color en los Get's
Gracias Antonio, He estado siguiendo un mensaje sobre el When en los get's (El cual habeis borrado del foro,no se porque) y he solucionado el problema. Saludos y feliz Año nuevo a tod el mundo
Color en los Get's
Rectifico Antonio. Pasa que no se porque no lo encontraba. Saludos
Color en un listbox
Hola, estoy atorado con un problema:_ tengo una base de datos, la cual contiene entre sus campos: REGISTRO--->Numerico, 1, 0 (lo uso para determinar si la existencia es suficiente ) cuando el campo REGISTRO es 1 debe mostrar el registro en color rojo, para lo cual hago: nClr1:=Rgb(250,0,0) //EL SELECCIONADO nClr2:=RGB(255,255,255) oLbx:nClrPane:={ || iif(aMostr_&vdos->Registro=1,nClr1,nClr2)} funciona bien, pero cuando "paso el cursor x uno que esta en color rojo" el prompt pone el color "azul" (x default), lo que necesito es que se quede en rojo ("rojo y letras blanas x ejemplo), y al darle la flecha abajo o arriba si encuantra aMostr_&vdos->Registro=0 siga igual es decir prompt "azul/letras blancas", espero haberme explicado bien gracias por su ayuda. saludos Veracruz, Mexico PD.-uso 1 y 0 por que la existencia la verifica en otra base de datos al no encontrar existencia suficiente marca el registro con "1" de lo contrario pone "0"
Color en un listbox
Creo que esto es lo que necesitas: [code:mfwqjcwy] //CAMBIOS DE COLORES Y ALINEACION oLbx&#58;aJustify&#58;=&#123;&#40;&#46;F&#46;&#41;,&#40;&#46;F&#46;&#41;,&#40;&#46;F&#46;&#41;,&#40;&#46;F&#46;&#41;&#125; oLbx&#58;nClrBackFocus&#58;=RGB&#40;0,0,255&#41; oLbx&#58;nClrForeFocus&#58;=RGB&#40;255,255,255&#41; oLbx&#58;NCLRPANE&#58;=&#123;||IIF&#40;&#40;ORDKEYNO&#40;&#41;&#41;%2==0,CLR_1,CLR_2&#41;&#125; oLbx&#58;nClrBackHead&#58;=RGB&#40;0,0,255&#41; oLbx&#58;nClrForeHead&#58;=RGB&#40;255,255,255&#41; [/code:mfwqjcwy] Espero te sirva..
Color en un listbox
gracias leandro, ahora mismo lo intento saludos
Color en xBrowse vacío (SOLUCIONADO)
Me gustaría saber si hay alguna manera de cambiar el color del area vacia de un xBrowse... Ahora es blanca y siendo un area tan grande de la pantalla me gustaría colocarle otro color... [img:3jtlsb3p]http&#58;//www&#46;mayapos&#46;com/FiveWin/puntotactil10&#46;png[/img:3jtlsb3p]
Color en xBrowse vacío (SOLUCIONADO)
Hola Bayron, puedes ponerle una imagen de fondo, hay ejemplos en el foro, si lo necesitas busco uno y lo pongo aquí. Saludos Ruben Fernandez
Color en xBrowse vacío (SOLUCIONADO)
Gracias Ruben, estoy intentando con: [code=fw:10w08a3c]<div class="fw" id="{CB}" style="font-family: monospace;">ListVen:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> Camino + <span style="color: #ff0000;">'images<span style="color: #000000;">\P</span>resentacion.bmp'</span>, BCK_FILL <span style="color: #000000;">&#41;</span><br />ListVen:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:10w08a3c] Pero me da el siguiente error: [code=fw:10w08a3c]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">L</span>:\Violetas\Violetas.EXE <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">4</span>,<span style="color: #000000;">657</span>,<span style="color: #000000;">152</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">17660</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">12.03</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7600</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">2</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">23</span>/<span style="color: #000000;">06</span>/<span style="color: #000000;">2012</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">36</span>:<span style="color: #000000;">31</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span>  <span style="color: #0000ff;">Message</span> not found: <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">EVAL</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U   <br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => __ERRRT_SBASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HBOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TXBROWSE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">407</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #000000;">KEYCOUNT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1184</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">562</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TXBROWSE:<span style="color: #000000;">SETBRUSH</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #000000;">SETBACKGROUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5347</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">L</span>:\Violetas\prg\Ventas.prg => VENTAS<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">L</span>:\Violetas\prg\MayaPOS.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAKERIBBON<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">676</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">854</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1690</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1520</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3153</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">980</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">L</span>:\Violetas\prg\MayaPOS.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:10w08a3c] [color=#FF0000:10w08a3c]Seguramente es porque el xBrowse está vacío???? No creo que debería ser de esta manera, ya que el area del browse sigue estando ahí aunque esté vacío...[/color:10w08a3c]
Color en xBrowse vacío (SOLUCIONADO)
Bayron, intenta colocar el background despues de creado el browse. ListVen:CreateFromCode() ListVen:SetBackGround( Camino + 'images\Presentacion.bmp', BCK_FILL ) Saludos.
Color en xBrowse vacío (SOLUCIONADO)
[quote="FranciscoA":9ike0fdm]Bayron, intenta colocar el background despues de creado el browse. ListVen:CreateFromCode() ListVen:SetBackGround( Camino + 'images\Presentacion.bmp', BCK_FILL ) Saludos.[/quote:9ike0fdm] [color=#0000FF:9ike0fdm]Mismo error...[/color:9ike0fdm]
Color en xBrowse vacío (SOLUCIONADO)
En un programa para restaurantes que tengo, lleno el xbrowse con la estructura vacía de una dbf y el background lo creo en el ON INIT del dialogo contenedor. Así me funciona. No sé en tu caso. Está hecho con FWXH1006. Saludos.
Color en xBrowse vacío (SOLUCIONADO)
Así si funcionó... Muchas gracias Francisco
Color en xBrowse vacío (SOLUCIONADO)
Logré lo que quería al incluirlo así en el ON INIT: [code=fw:267sbv0z]<div class="fw" id="{CB}" style="font-family: monospace;">ListVen:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> Camino + <span style="color: #ff0000;">'images<span style="color: #000000;">\P</span>resentacion.bmp'</span>, BCK_FILL <span style="color: #000000;">&#41;</span>,;<br />ListVen:<span style="color: #000000;">lTransparent</span> := .F.,;<br /> </div>[/code:267sbv0z] [img:267sbv0z]http&#58;//www&#46;mayapos&#46;com/FiveWin/xbrowse7&#46;png[/img:267sbv0z] Por supuesto que voy as utilizar otra imagen.....
Color error in tPrinter.prg
If you use SAY( x,y, oText, oFont, nWidth, nClrText ) in tPrinter, and specify a nClrText, it should be used only for that oText specified, and return to default. Instead, any further calls where nClrText is not specified will print in the nClrText from that line. Example: SAY( x, y, "Hello" ). // prints in the default SAY( x, y, "Highlight",,,CLR_BLUE ). // prints in blue SAY( x,y, "Oops" ). // prints in blue rather than the default