topic
stringlengths
1
63
text
stringlengths
1
577k
¿Error de Tdolphin con decimales MySql?
Tal cual indica Jose, yo hice las mismas pruebas y obtuve lo mismo Usando un [code=fw:3r43phr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> FORMAT<span style="color: #000000;">&#40;</span>micampo, <span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> as campo_formateado ,micampo <span style="color: #0000ff;">FROM</span> mitabla <br />&nbsp;</div>[/code:3r43phr7] Y luego haciendo xbrowse(oQry) obtento en el campo campo_formateado bien el numero con toda la precisión decimal (en formato texto) y no asi en micampo (el campo definido como DECIMAL 21,8 y tambien probé con float y double). Claramente es una limitación de harbour
¿Error en la clave del Indice?
Estimados compañeros: No se por que no funciona, el Indice, de mi aplicación: [code:27wly745] INDEX FILE PFMesFac ; TAG MesFactu ; ON UPPER&#40; CMONTH&#40; fechafactu &#41; &#41; + codigo + ; numfactura ; UNIQUE ; EVAL &#40; lPrimerVez &#58;= TRUE , ; PorcentInd&#40; oDbfFactP, aoMeter&#91; 5 &#93; &#41; &#41; ; OF oDbfFactP [/code:27wly745] Como podreis ver, lo que me interesa, es localizar las facturas del mes, para cada proveedor. Pero, solo me incluye la primera de cada proveedor. Supongamos que hay tres facturas: [code:27wly745] CODIGO NUMFACTURA FECHAFACTU 0000001 36 02/20/2006 0000001 5160/1 01/31/2005 0000001 999999 02/28/2006 0000001 LFF2 02/20/2006 [/code:27wly745] Al crear el indice, solo introduce la factura 36. ¿Por que? Saludos, José Mª
¿Error en la clave del Indice?
José María: Y si quitas la claúsula UNIQUE ? Saludos, Armando
¿Error en la clave del Indice?
¡GARCIAS!, Armando. Probe a quitar el UNIQUE. Y lo que sucede es que me incluye todos los registros. ¿No se supone, que con UNIQUE, en el indice solo se incluyen, la primera aparición, de lo que indique la clave? Saludos. José Mª
¿Error en la clave del Indice?
¿En que estoy equivocado?. En una Base de Datos, pequeña, no influye. Pero si encima el ordenador es lento. Mi intención, es barrer solo las facturas de un cierto mes, o meses seleccionados, de un proveedor. Apreciaré cualquier ayuda. ¡ GRACIAS!, anticipadas. José Mª
¿Error en la clave del Indice?
Hola,,, talvez asi? INDEX FILE PFMesFac ; TAG MesFactu ; ON DTOS(fechafactu ) ; EVAL ( lPrimerVez := TRUE , ; PorcentInd( oDbfFactP, aoMeter[ 5 ] ) ) ; OF oDbfFactP ... ... .. SETSCOPE(cFecha1,cFecha2) browse()..............// aqui solo te aparecen las facturas que estan entre las fechas
¿Error en la clave del Indice?
Hola,,, talvez asi? INDEX FILE PFMesFac ; TAG MesFactu ; ON DTOS(fechafactu ) ; EVAL ( lPrimerVez := TRUE , ; PorcentInd( oDbfFactP, aoMeter[ 5 ] ) ) ; OF oDbfFactP ... ... .. SETSCOPE(cFecha1,cFecha2) browse()..............// aqui solo te aparecen las facturas que estan entre las fechas cFecha1 y cFecha2 Salu2
¿Error en la clave del Indice?
Ups,,, olvide esto: Function SetScope(vCodi,vCodi2) DEFAULT vCodi := Nil DEFAULT vCodi2 := Nil ORDSCOPE(0,Nil) // SET SCOPE TO ORDSCOPE(1,Nil) Do Case Case vCodi = Nil .AND. vCodi2 = Nil Return nil Case vCodi2 = Nil .AND. vCodi <> Nil ORDSCOPE(0,vCodi) // SET SCOPETOP TO vCodi Case vCodi = Nil .AND. vCodi2 <> Nil ORDSCOPE(1,vCodi2) //SET SCOPEBOTTOM TO vCodi2 Other ORDSCOPE(0,vCodi) //SET SCOPE TO vCodi,vCodi2 ORDSCOPE(1,vCodi2) EndCase DbGoTop() Return nil //------------------------------------------------
¿Error en la clave del Indice?
¡Gracias!, Armando, Willi Quintana, y a todos los que están hay detrás. Con vuestras respuestas, y bastantes puebas, se ha logrado lo que se perseguía, al menos eso parece: [code:29swsj3c] INDEX FILE PFMesFac ; TAG MesFactu ; ON UPPER&#40; CMONTH&#40; fechafactu &#41; &#41; + codigo + ; numfactura + DTOS&#40; fechafactu &#41; ; UNIQUE ; EVAL &#40; lPrimerVez &#58;= TRUE , ; PorcentInd&#40; oDbfFactP, aoMeter&#91; 5 &#93; &#41; &#41; ; OF oDbfFactP [/code:29swsj3c] Saludos, José Mª
¿Es clipper/Five un lenguaje en desuso?
Hola amigos, Esta es la pregunta que lanzo a los cuatro vientos del foro. No! no soy un aguafiestas ni creo que así sea, pero me ocurre que muchos de los colegas con los que hablo. Sobre todo programadores de lenguajes "mas modernos" según sus propias palabras, me tachan de utilizar un lenguaje extinto y sin futuro y del que según ellos ya no queda nadie que programe. Independientemente de la ultima afirmación, pues no hay mas que entrar en el foro para ver que hay alguien mas que yo, programando en Clipper, les pregunté en qué se basan para decir que el lenguaje está en desuso. Su respuesta no pudo sorprenderme mas: Pues segun ellos, las razones son. 1) Se programa en una ventana MS-DOS. 2) Se basa en productos de terceros y no en una empresa solida. 3) Viene de un lenguaje de 1985. En fin, creo que la 1 y la 2 merece de vuestra opinión y yo pienso que son muy discutibles. Pues creo que detras de windows, sigue estanto la base DOS. Por otro lado, hay lenguajes que siguen vigentes o incluso en auge en entornos mainframes como es el caso de COBOL. Que si fuera por antiguedad, Clipper es un lenguaje nuevo comparado con cobol, pues éste viene de 1960. No sé, yo he probado con VB y con Delphi y solo le veo ventajas a mi clipper. Pero que esté en desuso.... ¿que opinais?
¿Es clipper/Five un lenguaje en desuso?
todos los sistemas operativos "modernos" ( incluido windows 7) estan programados en C ,no estaría mal que miraran la fecha en la que se creo este lenguaje . A sumar si te has pasado a harbour tu lenguaje de programación realmente es C ...si usas xmate o cualquier otro ide para programar no veras ninguna ventana msdos. Lo de la empresa solida ... pregunta a los de delphi con borland , a los de foxpro con microsoft , o los de visualBasic que se han tenido que reciclar a eso que llaman .net ... la solidez de una empresa no garantiza que los años invertidos en aprender un lenguaje se tiren a la basura por una decisión empresarial . Saludos.
¿Es clipper/Five un lenguaje en desuso?
Estoy totalmente de acuerdo. Ademas, no conozco ningun otro lenguaje a este nivel, que permita programar con un simple editor de texto. Hasta el edit del ms-dos bastaría, que genere ejecutables de un tamaño nada desmensurado o cuyos requisitos hardware sean tener un 386 con 4MB de RAM y un disco duro de 20 megas. En fin, si esto no es potencia. Que venga Dios y lo vea. Al final, creo que no es mas que cuestión de imagen y de las "modas" que imponen los canones comerciales. Pues que sepan esos listos que contaplus se hizo en Clipper!!! entre otros muchos.
¿Es clipper/Five un lenguaje en desuso?
Perdón por reflotar el tema, pero la cuestión me parece interesante porque se me plantea una situación que probablemente me podréis ayudar a resolver. Resulta que a la oficina se ha incorporado un compañero nuevo, joven y muy curioso, y dado que la mayoria desarrollamos en xbase se ha mostrado interesado en aprender. Como es programador php, está acostumbrado al autoaprendizaje, y me ha preguntado donde puede encontrar documentacion y/o tutoriales para aprender [x]Harbour, a lo que he sido incapaz de responder, salvo la documentación antigua original de Clipper. ¿Algún compañero tiene algo como para indicarle algún tipo de información, tutorial, o algo parecido para iniciarce con Harbour? Asocié mi pregunta a este hilo porque esta situación hace evidente porqué la gente considera al xbase un lenguaje en vias de extinsión, sin importar lo potente, flexible o útil que pueda ser. Va a durar lo que duremos nosotros mismos. Hasta no hace mucho buscaban programadores xbase aca en la empresa. Sin importar las tasas de paro, la búsqueda en Madrid y alrededores ha sido infructuosa, aún con las tasas de paro actuales. Son señales que no deberíamos ignorar. Un saludo
¿Es clipper/Five un lenguaje en desuso?
Carlos, <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=116464#p116464">viewtopic.php?p=116464#p116464</a><!-- l -->
¿Es clipper/Five un lenguaje en desuso?
Gracias Antonio, interesante colección de documentos, sobre todo lex y yacc. Esto me confirma que no hay como iniciarse en Harbour, solo comenzar la aproximación a partir de Clipper, y no tenemos nada que diga específicamente que es para Harbour. Está complicado el asunto, no tendremos recambio generacional. Un saludo y gracias
¿Es clipper/Five un lenguaje en desuso?
Carlos, En mi opinión Harbour seguirá en uso por mucho tiempo mientras haya que mantener y desarrollar las aplicaciones existentes, que son muchas y muy importantes, y desarrollos nuevos que esas empresas puedan necesitar, reusando en parte los desarrollos existentes <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Las propias aplicaciones mantendrán el interés y el apoyo de este compilador, más allá de los intereses personales de los programadores que lo usen <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> De hecho conozco empresas en las que gente joven está usando Harbour pues precisan de programadores aunque eso implique que tengan que formarse desde cero con Harbour.
¿Es clipper/Five un lenguaje en desuso?
Quiero destacar algo MUY IMPORTANTE!!... YO NO SOY PROGRAMADOR, solo soy un usuario de un sistema desarrollado completamente en este lenguaje. Esta es una importante empresa y todos los dias ingresan al sistema simultaneamente 50 usuarios. Esto funciona a la perfeccion desde hace mas de dos años. El sistema jamas estuvo una sola hora fuera de funcionamiento y su rapidez en las consultas u carga de datos es admirable. Suguramente habra lenguajes mas nuevo o poderosos... pero les digo una cosa amigos: NO CAMBIAMOS ESTO POR NINGUN OTRA COSA. Hemos visto todo tipo de sistema, sus costos eran prohibitibos.... pero este... es una maravilla....
¿Es posible cTooltip en la pestaña Folderex?
¿Es posible cTooltip en la pestaña Folderex? Gracias. Saludos.
¿Es posible cTooltip en la pestaña Folderex?
Resuelto. Oh my god!! jajajaja [url:3s4m2em7]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=33510&p=197641&hilit=tooltip+en+folder&sid=ed94f9ac3b50f8846c86752bfc6c8f50&sid=ed94f9ac3b50f8846c86752bfc6c8f50#p197641[/url:3s4m2em7] Regards, saludos.
¿Es posible cambiar el aspecto de una ventana child?
Hola amigos, partiendo del ejemplo testmdi.prg , que realiza un entorno MDI simple me pregunto si es posible que la ventana tenga un aspecto "moderno" o adecuado al tema que tiene Windows en ese momento como se muestra si creamos un diálog : Ventana [img:1m4xnrdd]https&#58;//fotos&#46;subefotos&#46;com/2685288a60d3683308a1b0f75841a4f4o&#46;png[/img:1m4xnrdd] Diálogo [img:1m4xnrdd]https&#58;//fotos&#46;subefotos&#46;com/dc26ef30f68b3875e089dc28cae3f987o&#46;png[/img:1m4xnrdd] Gracias,
¿Es posible cambiar el aspecto de una ventana child?
Angel, Windows dejó de dar soporte a MDI hace ya mucho tiempo y no ha cambiado nada desde entonces. Pero tienes varias posibilidades, entre ellas <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396">viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396</a><!-- l -->
¿Es posible cambiar el aspecto de una ventana child?
Gracias Cristóbal, es justo lo que pensaba. Me miro la info, creo que es del mismo modo que ya lo tengo encarado. Saludos!!
¿Es posible cambiar el color del título de la ventana?
Buen día. ¿Es posible cambiar el color del título de la ventana? ¿Cómo en este ejemplo? [url:sm6vh92m]https&#58;//imgur&#46;com/bDLVala[/url:sm6vh92m] [img:sm6vh92m]https&#58;//i&#46;imgur&#46;com/bDLVala&#46;jpg[/img:sm6vh92m] Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
Lo estuve intentando hace tiempo, y, sí lo conseguí, pero la consecuencia era que cambiaba el color del título en todas las ventanas de Windows, efecto que no me parecía lo que pretendía
¿Es posible cambiar el color del título de la ventana?
Gracias master! Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
No se si te sirva Es un ejemplo que publicaron en el foro No logre encontrar el link <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [code=fw:2d0kdosb]<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: #00D7D7;">#define</span> CLR_MSPURPLE RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>,  <span style="color: #000000;">120</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSRED    RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>,  <span style="color: #000000;">17</span>,  <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSGRAY   RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> TME_LEAVE    <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, nRowPos, nColPos, oBtnClose, oBtnMax, oBtnMin, lDrag := .F., lRResize := .F., lBResize := .F.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   <span style="color: #B900B9;">//oWnd:SetSize( 500, 300 )</span><br />   <span style="color: #B900B9;">//oWnd:Center()</span><br />   oWnd:<span style="color: #000000;">Shadow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">30</span>, <span style="color: #ff0000;">"Caption"</span>, CLR_WHITE, CLR_MSPURPLE, oWnd:<span style="color: #000000;">oFont</span>, .T., .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oWnd:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow < <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lDrag := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                     <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nCol > oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lRResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                     <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nRow > oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lBResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <br />   oWnd:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | TrackMouseEvent<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDrag .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;<br />                                       oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nTop</span> + nRow - nRowPos, oWnd:<span style="color: #000000;">nLeft</span> + nCol - nColPos,,, .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lRResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;    <br />                                       <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span> + nCol - nColPos, oWnd:<span style="color: #000000;">nHeight</span>, .T. <span style="color: #000000;">&#41;</span>, nColPos := nCol <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;    <br />                                       <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> + nRow - nRowPos, .T. <span style="color: #000000;">&#41;</span>, nRowPos := nRow <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <br /><br />   oWnd:<span style="color: #000000;">bLButtonUp</span> = <span style="color: #000000;">&#123;</span> || ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lDrag := .F., lRResize := .F., lBResize := .F. <span style="color: #000000;">&#125;</span><br />   oWnd:<span style="color: #000000;">bMLeave</span>    = <span style="color: #000000;">&#123;</span> || lDrag := .F. <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/closew.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMax BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/max.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMin BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/min.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsIconic<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Iconize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   oBtnClose:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnClose:<span style="color: #000000;">lMOver</span>, CLR_MSRED, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMax:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMax:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMax:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMin:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMin:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMin:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span>, oBtnMax:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #000000;">&#41;</span>,;<br />                        oBtnMin:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2d0kdosb]
¿Es posible cambiar el color del título de la ventana?
Leandro, muy buenos los ejemplos y con muchas posibilidades prácticas
¿Es posible cambiar el color del título de la ventana?
Excelente Leandro, pero si uso MDI ya no funcionará correctamente. Pruébelo allí y vea si puede obtener una solución con MDI. Muchas gracias. [quote="leandro":2zszr51p]No se si te sirva Es un ejemplo que publicaron en el foro No logre encontrar el link <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [code=fw:2zszr51p]<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: #00D7D7;">#define</span> CLR_MSPURPLE RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>,  <span style="color: #000000;">120</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSRED    RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>,  <span style="color: #000000;">17</span>,  <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSGRAY   RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> TME_LEAVE    <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, nRowPos, nColPos, oBtnClose, oBtnMax, oBtnMin, lDrag := .F., lRResize := .F., lBResize := .F.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   <span style="color: #B900B9;">//oWnd:SetSize( 500, 300 )</span><br />   <span style="color: #B900B9;">//oWnd:Center()</span><br />   oWnd:<span style="color: #000000;">Shadow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">30</span>, <span style="color: #ff0000;">"Caption"</span>, CLR_WHITE, CLR_MSPURPLE, oWnd:<span style="color: #000000;">oFont</span>, .T., .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oWnd:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow < <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lDrag := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                     <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nCol > oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lRResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                     <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nRow > oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lBResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <br />   oWnd:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | TrackMouseEvent<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDrag .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;<br />                                       oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nTop</span> + nRow - nRowPos, oWnd:<span style="color: #000000;">nLeft</span> + nCol - nColPos,,, .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lRResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;    <br />                                       <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span> + nCol - nColPos, oWnd:<span style="color: #000000;">nHeight</span>, .T. <span style="color: #000000;">&#41;</span>, nColPos := nCol <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;    <br />                                       <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> + nRow - nRowPos, .T. <span style="color: #000000;">&#41;</span>, nRowPos := nRow <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <br /><br />   oWnd:<span style="color: #000000;">bLButtonUp</span> = <span style="color: #000000;">&#123;</span> || ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lDrag := .F., lRResize := .F., lBResize := .F. <span style="color: #000000;">&#125;</span><br />   oWnd:<span style="color: #000000;">bMLeave</span>    = <span style="color: #000000;">&#123;</span> || lDrag := .F. <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/closew.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMax BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/max.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMin BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/min.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsIconic<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Iconize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   oBtnClose:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnClose:<span style="color: #000000;">lMOver</span>, CLR_MSRED, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMax:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMax:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMax:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMin:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMin:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMin:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span>, oBtnMax:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #000000;">&#41;</span>,;<br />                        oBtnMin:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2zszr51p][/quote:2zszr51p] Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
Otro ejemplo [code=fw:2m6osp0m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CLR_MSPURPLE &nbsp; &nbsp; RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, &nbsp;<span style="color: #000000;">57</span>, <span style="color: #000000;">123</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSRED &nbsp; &nbsp; &nbsp; &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, &nbsp;<span style="color: #000000;">17</span>, &nbsp;<span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSGRAY &nbsp; &nbsp; &nbsp; RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSLIGHTGRAY &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">243</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> TME_LEAVE &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><br /><span style="color: #00D7D7;">#define</span> _nClrPaneRB &nbsp; &nbsp; &nbsp; CLR_MSPURPLE<br /><span style="color: #00D7D7;">#define</span> _nClrBoxOutRB &nbsp; &nbsp; CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _nClrBoxInRB &nbsp; &nbsp; &nbsp;CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _nClrBoxSelOut &nbsp; &nbsp;CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _aGradRB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> _aGradHighRB &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> _aGradOverRB &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, nRowPos, nColPos, oBtnClose, oBtnMax, oBtnMin, lDrag := .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRb<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1000</span>, <span style="color: #000000;">500</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">Shadow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow < <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lDrag := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | TrackMouseEvent<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDrag .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nTop</span> + nRow - nRowPos, oWnd:<span style="color: #000000;">nLeft</span> + nCol - nColPos,,, .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bLButtonUp</span> = <span style="color: #000000;">&#123;</span> || ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lDrag := .F. <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bMLeave</span> &nbsp; &nbsp;= <span style="color: #000000;">&#123;</span> || lDrag := .F. <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/closew.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMax BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/max.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMin BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/min.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsIconic<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Iconize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnClose:<span style="color: #000000;">lMOver</span>, CLR_MSRED, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtnMax:<span style="color: #000000;">bMMoved</span> &nbsp; = <span style="color: #000000;">&#123;</span> || oBtnMax:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMax:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtnMin:<span style="color: #000000;">bMMoved</span> &nbsp; = <span style="color: #000000;">&#123;</span> || oBtnMin:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMin:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span>, oBtnMax:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnMin:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #000000;">&#41;</span>, oRb:<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oRb = TRibbonBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd,,,,, <span style="color: #000000;">120</span>, <span style="color: #000000;">40</span>, _nClrPaneRB, _nClrBoxOutRB, _nClrBoxInRB,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_nClrBoxSelOut, _aGradRB,, _aGradHighRB, _aGradOverRB,,,,,.T.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oTop</span> = <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">nTop</span> = <span style="color: #000000;">30</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">nWidth</span> = oWnd:<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">SetStyles</span><span style="color: #000000;">&#40;</span> .F., .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">nClrPaneRB</span> = CLR_MSPURPLE<br />&nbsp; &nbsp;oRb:<span style="color: #000000;">hSeparation</span> = <span style="color: #000000;">4</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">aGradFld</span> = <span style="color: #000000;">&#123;</span>|nOpt| iif<span style="color: #000000;">&#40;</span> nOpt == oRb:<span style="color: #000000;">nStart</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oRb:<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AFill<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">aClrTabTxt</span>, <span style="color: #000000;">&#123;</span> | oSelf, nPrompt | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nPrompt == oSelf:<span style="color: #000000;">nOption</span>, CLR_BLACK,;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">nOverPrompt</span><span style="color: #000000;">&#40;</span> ScreenToClient<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ScreenToClient<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == nPrompt, CLR_HRED, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"First"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"Second"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"Third"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2m6osp0m]
¿Es posible cambiar el color del título de la ventana?
Este es maravilloso, estaba estudiando los ejemplos. Pero por ahora, no estoy usando Ribbon. Muchas gracias. [url:1bzqmcpj]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=36145&p=244598&hilit=ribbon+theme&sid=830eeb9c818db58967a5cf4c604af37f&sid=1dd75fb11fd670c9253dea41f6f1a6eb#p244598[/url:1bzqmcpj] [quote="leandro":1bzqmcpj]Otro ejemplo [code=fw:1bzqmcpj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CLR_MSPURPLE     RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>,  <span style="color: #000000;">57</span>, <span style="color: #000000;">123</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSRED        RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>,  <span style="color: #000000;">17</span>,  <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSGRAY       RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSLIGHTGRAY  RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">243</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> TME_LEAVE    <span style="color: #000000;">2</span><br /><br /><span style="color: #00D7D7;">#define</span> _nClrPaneRB       CLR_MSPURPLE<br /><span style="color: #00D7D7;">#define</span> _nClrBoxOutRB     CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _nClrBoxInRB      CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _nClrBoxSelOut    CLR_MSLIGHTGRAY<br /><span style="color: #00D7D7;">#define</span> _aGradRB          <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> _aGradHighRB      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> _aGradOverRB      <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd, nRowPos, nColPos, oBtnClose, oBtnMax, oBtnMin, lDrag := .F.<br />   <span style="color: #00C800;">local</span> oRb<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">STYLE</span> WS_POPUP <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1000</span>, <span style="color: #000000;">500</span> <span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">Shadow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow < <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lDrag := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <br />   oWnd:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | TrackMouseEvent<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span>,;<br />                                   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDrag .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;<br />                                       oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nTop</span> + nRow - nRowPos, oWnd:<span style="color: #000000;">nLeft</span> + nCol - nColPos,,, .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <br /><br />   oWnd:<span style="color: #000000;">bLButtonUp</span> = <span style="color: #000000;">&#123;</span> || ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lDrag := .F. <span style="color: #000000;">&#125;</span><br />   oWnd:<span style="color: #000000;">bMLeave</span>    = <span style="color: #000000;">&#123;</span> || lDrag := .F. <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/closew.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMax BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/max.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   @ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMin BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/min.bmp"</span> ;<br />      FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsIconic<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Iconize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />   oBtnClose:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnClose:<span style="color: #000000;">lMOver</span>, CLR_MSRED, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMax:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMax:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMax:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtnMin:<span style="color: #000000;">bMMoved</span>   = <span style="color: #000000;">&#123;</span> || oBtnMin:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMin:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span>, oBtnMax:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #000000;">&#41;</span>,;<br />                        oBtnMin:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #000000;">&#41;</span>, oRb:<span style="color: #000000;">nWidth</span> := oWnd:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#125;</span><br /><br />   oRb = TRibbonBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd,,,,, <span style="color: #000000;">120</span>, <span style="color: #000000;">40</span>, _nClrPaneRB, _nClrBoxOutRB, _nClrBoxInRB,,;<br />                           _nClrBoxSelOut, _aGradRB,, _aGradHighRB, _aGradOverRB,,,,,.T.<span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">oTop</span> = <span style="color: #00C800;">nil</span><br />   oRb:<span style="color: #000000;">nTop</span> = <span style="color: #000000;">30</span><br />   oRb:<span style="color: #000000;">nWidth</span> = oWnd:<span style="color: #000000;">nWidth</span><br />   oRb:<span style="color: #000000;">SetStyles</span><span style="color: #000000;">&#40;</span> .F., .T. <span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">nClrPaneRB</span> = CLR_MSPURPLE<br />   oRb:<span style="color: #000000;">hSeparation</span> = <span style="color: #000000;">4</span><br />   oRb:<span style="color: #000000;">aGradFld</span> = <span style="color: #000000;">&#123;</span>|nOpt| iif<span style="color: #000000;">&#40;</span> nOpt == oRb:<span style="color: #000000;">nStart</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />                                                     <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_MSLIGHTGRAY, CLR_MSLIGHTGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oRb:<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   AFill<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">aClrTabTxt</span>, <span style="color: #000000;">&#123;</span> | oSelf, nPrompt | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nPrompt == oSelf:<span style="color: #000000;">nOption</span>, CLR_BLACK,;<br />       <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">nOverPrompt</span><span style="color: #000000;">&#40;</span> ScreenToClient<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,;<br />           ScreenToClient<span style="color: #000000;">&#40;</span> oRb:<span style="color: #000000;">hWnd</span>, GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == nPrompt, CLR_HRED, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"First"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"Second"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   oRb:<span style="color: #000000;">AddGroup</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">185</span>, <span style="color: #ff0000;">"Third"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1bzqmcpj][/quote:1bzqmcpj] Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
Lo encontré, aquí esta el link del ejemplo publicado por Antonio [url:1jxsmk9g]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37133&p=221803&hilit=caption+color&sid=4ba16057a282a98e055f5da789aa7f87&sid=044cd567d81e01c0080172a69aec34bd#p221803[/url:1jxsmk9g]
¿Es posible cambiar el color del título de la ventana?
[quote="leandro":20tnixk8]Lo encontré, aquí esta el link del ejemplo publicado por Antonio [url:20tnixk8]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37133&p=221803&hilit=caption+color&sid=044cd567d81e01c0080172a69aec34bd&sid=1dd75fb11fd670c9253dea41f6f1a6eb#p221803[/url:20tnixk8][/quote:20tnixk8] Leandro, mira que en ninguno de los ejemplos, el Maestro Antônio, usa MDI ó Look 2007, comprendes? Gracias. Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
Mira Leandro que no funciona y ni siquiera tiene sentido. Es solo un truco de magia de Mestre Antônio Liñares. No me hace ningún bien, ya que uso todo el poder de FiveWin de la mejor manera. Aun así, muchas gracias. [code=fw:7zj8dza7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// => \samples\GRABARIMG.PRG &nbsp;- 15/11/2021</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> CLR_MSPURPLE RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">120</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSRED &nbsp; &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, &nbsp;<span style="color: #000000;">17</span>, &nbsp;<span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_MSGRAY &nbsp; RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#define</span> TME_LEAVE &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd, hLib<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBar, cTitle, cUrl, cSaveAs<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oWnd, nRowPos, nColPos, oBtnClose, oBtnMax, oBtnMin, lDrag := .F., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRResize := .F., lBResize := .F.<br /><br />&nbsp; &nbsp;SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// <!-- m --><a class="postlink" href="https://imgur.com/">https://imgur.com/</a><!-- m --></span><br />&nbsp; &nbsp;cUrl &nbsp; &nbsp;:= <span style="color: #ff0000;">"https://i.imgur.com/UQxRdAp.png"</span><br />&nbsp; &nbsp;cSaveAs := <span style="color: #ff0000;">"GrabaImg.png"</span><br /><br />&nbsp; &nbsp;cTitle &nbsp;:= <span style="color: #ff0000;">"FiveWin Brasil: Grabar Imagen Desde URL"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> cTitle<br />&nbsp; &nbsp;<span style="color: #B900B9;">//DEFINE WINDOW oWnd STYLE WS_POPUP COLOR CLR_BLACK, CLR_MSPURPLE // MDI</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oWnd:SetSize( 500, 300 )</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oWnd:Center()</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">Shadow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">30</span>, <span style="color: #ff0000;">"Caption Color"</span>, CLR_RED, CLR_MSPURPLE, oWnd:<span style="color: #000000;">oFont</span>, .T., .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bLClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow < <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lDrag := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nCol > oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lRResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRow > <span style="color: #000000;">25</span> .and. nRow > oWnd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nRowPos := nRow, nColPos := nCol, lBResize := .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | TrackMouseEvent<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, TME_LEAVE <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDrag .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nTop</span> + nRow - nRowPos, oWnd:<span style="color: #000000;">nLeft</span> + nCol - nColPos,,, .T. <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lRResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span> + nCol - nColPos, oWnd:<span style="color: #000000;">nHeight</span>, .T. <span style="color: #000000;">&#41;</span>, nColPos := nCol <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBResize .and. ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> .and. IsOverWnd<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, nRow, nCol <span style="color: #000000;">&#41;</span>,; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span>, oWnd:<span style="color: #000000;">nHeight</span> + nRow - nRowPos, .T. <span style="color: #000000;">&#41;</span>, nRowPos := nRow <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bLButtonUp</span> = <span style="color: #000000;">&#123;</span> || ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lDrag := .F., lRResize := .F., lBResize := .F. <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bMLeave</span> &nbsp; &nbsp;= <span style="color: #000000;">&#123;</span> || lDrag := .F. <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #0000ff;">BTNBMP</span> oBtnClose BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/closew.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMax BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/max.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsZoomed<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Maximize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #0000ff;">BTNBMP</span> oBtnMin BITMAP <span style="color: #ff0000;">"../bitmaps/16x16/min.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; FLAT NOBORDER NOROUND <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! IsIconic<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Iconize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Restore</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">29</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_MSPURPLE<br /><br />&nbsp; &nbsp;oBtnClose:<span style="color: #000000;">bMMoved</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnClose:<span style="color: #000000;">lMOver</span>, CLR_MSRED, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtnMax:<span style="color: #000000;">bMMoved</span> &nbsp; = <span style="color: #000000;">&#123;</span> || oBtnMax:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMax:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtnMin:<span style="color: #000000;">bMMoved</span> &nbsp; = <span style="color: #000000;">&#123;</span> || oBtnMin:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBtnMin:<span style="color: #000000;">lMOver</span>, CLR_MSGRAY, oWnd:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bResized</span> = <span style="color: #000000;">&#123;</span> || oBtnClose:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">46</span> <span style="color: #000000;">&#41;</span>, oBtnMax:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">92</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtnMin:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oWnd:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">138</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar BUTTONSIZE <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> _3DLOOK TOP <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>loppy.bmp"</span> FLAT &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> URLDownLoad<span style="color: #000000;">&#40;</span> cUrl, cSaveAs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> TOOLTIP <span style="color: #ff0000;">"Saves this Image"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\E</span>xit.bmp"</span> FLAT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <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> TOOLTIP <span style="color: #ff0000;">"Exit this app"</span> GROUP<br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> cTitle &nbsp;NOINSET CLOCK DATE KEYBOARD <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// ON INIT( CLRTEST( CLR_WHITE, CLR_HRED ) ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; ON PAINT( &nbsp;DiagonalGradientFill( hDC, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0, 0, oWnd:nHeight, oWnd:nWidth, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ { 0.16, CLR_WHITE, CLR_CYAN }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ 0.16, CLR_CYAN, nRGB( 181, 61, 29 ) }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ 0.16, nRGB( 181, 61, 29 ), nRGB( 250,157,52 ) }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ 0.16, nRGB( 250,157,52 ), nRGB( 181, 61, 29 ) }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ 0.16, nRGB( 181, 61, 29 ), CLR_CYAN }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ 0.20, CLR_CYAN, CLR_WHITE } },.T. ), PINTA( hDC ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> URLDownLoad<span style="color: #000000;">&#40;</span> cUrl, cSaveAs <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;hLib := LOADLIBRARY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"urlmon.dll"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;CURSORWAIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> cSaveAs <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ERASE cSaveAs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> .NOT. URLDownloadToFile<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, cUrl, cSaveAs, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Image Not Found in: <!-- m --><a class="postlink" href="https://imgur.com/">https://imgur.com/</a><!-- m -->"</span>, <span style="color: #ff0000;">"Attention!"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;FreeLibrary<span style="color: #000000;">&#40;</span> hLib <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;CURSORARROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ShellExecute<span style="color: #000000;">&#40;</span>GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"open"</span>,<span style="color: #ff0000;">'"'</span>+cSaveAs+<span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DiagonalGradientFill<span style="color: #000000;">&#40;</span> hDC, nTop, nLeft, nBottom, nRight, aGradInfo, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDirection <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nClr := <span style="color: #000000;">1</span>, nClrs := Len<span style="color: #000000;">&#40;</span> aGradInfo <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nSize, nStart, nEnd<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lDirection := .T.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> aGradInfo <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;nSize &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> nBottom - nTop <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> nRight - nLeft <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nStart &nbsp; = <span style="color: #000000;">0</span><br />&nbsp; &nbsp;nEnd &nbsp; &nbsp; = <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> nClr := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nClrs<br /><br />&nbsp; &nbsp; &nbsp; nStart = nEnd<br />&nbsp; &nbsp; &nbsp; nEnd &nbsp; += <span style="color: #000000;">&#40;</span> nSize * <span style="color: #000000;">&#40;</span> aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; DiagonalGradient<span style="color: #000000;">&#40;</span> hDC, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> nTop, nLeft, nBottom, nRight <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lDirection, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStart, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nEnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Pinta<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColor<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nLeft &nbsp; := <span style="color: #000000;">80</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRight &nbsp;:= <span style="color: #000000;">220</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTexto &nbsp;:= <span style="color: #ff0000;">"FIVEWIN BRASIL THE BEST"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTexto2 := <span style="color: #ff0000;">"No funciona... &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nLen &nbsp; &nbsp;:= LEN<span style="color: #000000;">&#40;</span> cTexto <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cLetra, n<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nResHoriz, nResVert<br /><br />&nbsp; &nbsp;nResHoriz := oWnd:<span style="color: #000000;">nHorzRes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// retorna a resolucao horizontal</span><br />&nbsp; &nbsp;nResVert &nbsp;:= oWnd:<span style="color: #000000;">nVertRes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// retorna a resolucao vertical</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// atencao: nResolution identifica em que resolucao foram inicialmente</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// desenhadas as telas, e DEVE ter um dos seguintes valores:</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 1 = &nbsp;640 X 480</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 2 = &nbsp;800 X 600</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 3 = 1024 X 768</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 4 = 1152 X 864</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 5 = 1280 X 800</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 6 = 1280 X 1024</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 7 = 1600 X 1200</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 8 = &nbsp;768 X 1024</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 9 = 1440 X 900</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 10 = 1280 X 768</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 11 = 1280 X 720</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nResHoriz = <span style="color: #000000;">1366</span> .AND. nResVert = <span style="color: #000000;">768</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= <span style="color: #000000;">260</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">230</span><br /><br />&nbsp; &nbsp;ELSEIF nResHoriz = <span style="color: #000000;">1360</span> .AND. nResVert = <span style="color: #000000;">768</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= <span style="color: #000000;">210</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">250</span><br /><br />&nbsp; &nbsp;ELSEIF nResHoriz = <span style="color: #000000;">1280</span> .AND. nResVert = <span style="color: #000000;">1024</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= <span style="color: #000000;">210</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">350</span><br /><br />&nbsp; &nbsp;ELSEIF nResHoriz = <span style="color: #000000;">1280</span> .AND. nResVert = <span style="color: #000000;">768</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= <span style="color: #000000;">170</span> <span style="color: #B900B9;">// 210 &nbsp;// my computer.</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">280</span><br /><br />&nbsp; &nbsp;ELSEIF nResHoriz = <span style="color: #000000;">1280</span> .AND. nResVert = <span style="color: #000000;">720</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= <span style="color: #000000;">200</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">200</span><br /><br />&nbsp; &nbsp;ELSEIF nResHoriz = <span style="color: #000000;">1024</span> .AND. nResVert = <span style="color: #000000;">768</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= &nbsp;<span style="color: #000000;">80</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">220</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft &nbsp;:= &nbsp;<span style="color: #000000;">80</span><br />&nbsp; &nbsp; &nbsp; nRight := <span style="color: #000000;">220</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI Symbol"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-80</span> BOLD<br /><br />&nbsp; &nbsp;hFont := SelectObject<span style="color: #000000;">&#40;</span> hDC, oFont:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLen<br /><br />&nbsp; &nbsp; &nbsp; cLetra := <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> cTexto, n, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nColor := SetTextColor<span style="color: #000000;">&#40;</span> hDC, &nbsp;CLR_GREEN <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// TextOut( hDC, 10, nLeft, cLetra )</span><br />&nbsp; &nbsp; &nbsp; TextOut<span style="color: #000000;">&#40;</span> hDC, nRight, nLeft, cLetra <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, nColor <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nLeft += GetTextWidth<span style="color: #000000;">&#40;</span> hDC, cLetra, oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CLRTEST <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;int aElements<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#123;</span> COLOR_CAPTIONTEXT, COLOR_ACTIVECAPTION <span style="color: #000000;">&#125;</span>;<br />&nbsp; &nbsp;DWORD aColors<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>;<br /><br /><br />&nbsp; &nbsp;aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#93;</span> = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetSysColors<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, aElements, aColors <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> URLDownloadToFile<span style="color: #000000;">&#40;</span> pCaller AS LONG, szURL AS STRING, szFileName ;<br />&nbsp; &nbsp;AS STRING, dwReserved AS LONG, lpfnCB AS LONG <span style="color: #000000;">&#41;</span> AS LONG PASCAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"URLDownloadToFileA"</span> LIB hlib<br /><br /><span style="color: #B900B9;">// fin /end</span><br />&nbsp;</div>[/code:7zj8dza7] Regards, saludos.
¿Es posible cambiar el color del título de la ventana?
Amigo buenos días como estas? Tiene toda la razón, lo intente colocar en la aplicación, pero no funciono. Yo también lo uso en un entorno mdi. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Nos toca recurrir a algunos de los Master
¿Es posible cambiar el color del título de la ventana?
Buenos dias Leandro, mira aqui porfa: [url:315su93d]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37922&sid=2b961ab67ea4c74779d1f91ade1defc6#p245883[/url:315su93d] Todo lo que queda es que Silvio Falconi se una a la conversación. jajajajajajajajajajaja. Regards, saludos.
¿Es posible modificar el menú de un diálogo?
Hola amigos, desde testdlg.prg en samples intenté modificar el menú del icono del diálogo pero no lo consigo : Se trata de : [img:fq6afg7f]https&#58;//fotos&#46;subefotos&#46;com/39f80a87ab086477843c467c3ff44ebco&#46;png[/img:fq6afg7f] Sobre el ejemplo : [code=fw:fq6afg7f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oIco, cTest := <span style="color: #ff0000;">"Hello world!   "</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"I am a DialogBox"</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W+/B"</span> ;<br />      <span style="color: #0000ff;">ICON</span> oIco<br /><br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">GET</span> cTest<br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br />      <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #0000ff;">Move</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">200</span>,<span style="color: #000000;">200</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">DEFAULT</span><br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">16</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Cancel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</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;">CENTERED</span> ;<br />      <span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Do you want to end ?"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:fq6afg7f] Traté con : [code=fw:fq6afg7f]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">SetMenu</span> <span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span></div>[/code:fq6afg7f] Sin éxito. ¿Alguna idea?
¿Es posible modificar el menú de un diálogo?
Inclui esa posibilidad e incluso eliminar items [code=fw:3pofpfu6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// MNUNEW05.PRG</span><br /><span style="color: #B900B9;">// Prueba de nuevas caracteristicas en menus</span><br /><span style="color: #B900B9;">// </span><br /><span style="color: #B900B9;">// </span><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oFontMenu<br /><span style="color: #00C800;">Static</span> oBr<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cFont &nbsp; := <span style="color: #ff0000;">"Segoe UI Symbol"</span> &nbsp;<span style="color: #B900B9;">//"Arial" //"Calibri"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cFontH &nbsp;:= <span style="color: #000000;">-14</span> &nbsp;<span style="color: #B900B9;">//-10 //-12 //-16 //-18 &nbsp;//-20 </span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBar<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oIcon<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBrush &nbsp; := <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\c</span>onfetti.bmp"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cVar1 &nbsp; &nbsp;:= <span style="color: #ff0000;">"???"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nHt &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//local cVar &nbsp; &nbsp; &nbsp;:= &nbsp;"????? (India)"</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//local oGet</span><br />&nbsp; &nbsp;Fw_SetUnicode<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp;SetResDebug<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//? Len( cVar1 ), HB_UTF8LEN( cVar1 ), Len( cFont ), HB_UTF8LEN( cFont )</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !IsWin8<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. !IsWindows10<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cFont &nbsp; := <span style="color: #ff0000;">"Calibri"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBr FILE cBrush <span style="color: #B900B9;">//RESIZE</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, cFontH<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\m</span>enu.ico"</span><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">" Pruebas de Menus: &nbsp;Font - "</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, oFontMenu:<span style="color: #000000;">cFaceName</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> +;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, Str<span style="color: #000000;">&#40;</span> oFontMenu:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" &nbsp; - &nbsp;Redefine SYSMENU &nbsp;- &nbsp;5"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//? GetTextWidth( 0, cVar1, oFontMenu:hFont, @nHt ), GetTextWidthW( 0, cVar1, oFontMenu:hFont )</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//? nHt, GetTextHeight( 0, cVar1, oFontMenu:hFont )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//DEFINE WINDOW oWnd FROM 3, 6 TO 30, 100 ; //MDI ;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_WHITE, METRO_OLIVE <span style="color: #B900B9;">//VSCROLL</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oWnd:SetFont( oFontMenu )</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetIcon</span><span style="color: #000000;">&#40;</span> oIcon <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// @ 1, 2 GET oGet VAR cVar OF oWnd NOBORDER //PICTURE "@X" </span><br />&nbsp; &nbsp; <br />&nbsp; <span style="color: #B900B9;">// SET MESSAGE OF oWnd TO "Prueba de Controles" FONT oFontMenu ;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; &nbsp;COLORS CLR_WHITE, RGB( 116, 149, 193 ) ; //RGB( 31, 117, 70 ) ;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; &nbsp;NOINSET CLOCK DATE KEYBOARD NOBORDER </span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BuildMnu0<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//ACTIVATE WINDOW oWnd MAXIMIZED ON INIT BuildMnu0()</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">While</span> oFontMenu:<span style="color: #000000;">nCount</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontMenu:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBr<br />&nbsp; &nbsp; oIcon:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> BuildMnu0<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMnu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> SYSMENU oMnu <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #B900B9;">//2007 //COLORS 2013</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//IMGMENU "..\bitmaps\AlphaBmp\lock.bmp"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//BRUSH "..\bitmaps\backgrnd\confetti.bmp"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SubMenu"</span> &nbsp; &nbsp; &nbsp; &nbsp;CHARICON <span style="color: #000000;">57605</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2007</span> <span style="color: #B900B9;">//FONT oFontMenu COLORS //2013</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Segundo Item"</span> CHARICON <span style="color: #000000;">57696</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tercer Item"</span> &nbsp;CHARICON <span style="color: #000000;">57736</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"????? (India)"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> <span style="color: #B900B9;">// COLORS &nbsp;BRUSH "..\bitmaps\backgrnd\confetti.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//LOGOMENU "..\bitmaps\menu4v.bmp" </span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"FIVEDIT"</span> <span style="color: #0000ff;">SEPARATOR</span> BOLD <span style="color: #B900B9;">//RESOURCE "new16" BOLD</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Methods"</span> HSYSBITMAP <span style="color: #000000;">32761</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datas"</span> HSYSBITMAP <span style="color: #000000;">32760</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages"</span> HSYSBITMAP <span style="color: #000000;">32744</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages"</span> HSYSBITMAP <span style="color: #000000;">32743</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ClassData"</span> CHARICON <span style="color: #ff0000;">"M"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SCINTILLA"</span> <span style="color: #0000ff;">SEPARATOR</span> <span style="color: #00C800;">BREAK</span> BOLD <span style="color: #B900B9;">//RESOURCE "dupline16" BOLD</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Methods de Object"</span> CHECKED <span style="color: #B900B9;">//HSYSBITMAP 32738</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datas Values"</span> HSYSBITMAP <span style="color: #000000;">32739</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages Data"</span> CHARICON <span style="color: #000000;">57731</span> <span style="color: #B900B9;">//HSYSBITMAP 32740</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages Method"</span> HSYSBITMAP <span style="color: #000000;">32741</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ClassData Object"</span> HSYSBITMAP <span style="color: #000000;">32742</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"??? (China)"</span> CHECKED<br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Reset Menu"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> oMnu:<span style="color: #000000;">Reset</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ENDSYSMENU<br /><br /><span style="color: #00C800;">Return</span> oMnu<br /><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:3pofpfu6]
¿Es posible modificar el menú de un diálogo?
Excelente ejemplo Cristóbal como siempre. Aunque observo que se añade el menú al ya existente del sistema , ¿es posible dejar únicamente el menú que definimos nosotros desde código? [img:3uv942c7]https&#58;//fotos&#46;subefotos&#46;com/13e3c84aa991a3d80e36645decc872f5o&#46;png[/img:3uv942c7] Gracias!
¿Es posible modificar el menú de un diálogo?
Si claro, juega un poco con esta function que te permite disable ( la X de cierre ) y eliminar items. Llamala antes de añadir tu systemmenu ( has de hacer una mezcla entre este ejemplo y el anterior ) o después, ves las posibilidades que tiene, y, por favor, pon después aquí tus conclusiones. Ojo, el comportamiento de los sysmenus es distinto si se trata de dialogs o de windows creo recordar ( me refiero al orden en el que son guardados los items que ya trae por defecto ) [code=fw:14hwxeeq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> MF_BYPOSITION <span style="color: #000000;">1024</span> <span style="color: #B900B9;">// 0x0400</span><br /><span style="color: #00D7D7;">#define</span> MF_DISABLED     <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oDlg, ;<br />         lExit := .F.,;<br />         oIcon<br /><br />   <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">ICON</span> oIcon FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\I</span>CONS<span style="color: #000000;">\F</span>iveWin.Ico"</span><br /><br />   <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">ICON</span> oIcon<br /><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">Button</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">Size</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">Pixel</span> <span style="color: #0000ff;">Action</span> <span style="color: #000000;">&#40;</span> lExit := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">Centered</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">Init</span> DisableX<span style="color: #000000;">&#40;</span> oDlg, .T.<span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">Valid</span> lExit<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DisableX<span style="color: #000000;">&#40;</span>oWin, lDisable<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> hMenu  := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nCount := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">DEFAULT</span> lDisable := .T.<br /><br /><span style="color: #00C800;">IF</span> lDisable<br />   hMenu  = GetSystemMenu<span style="color: #000000;">&#40;</span>oWin:<span style="color: #000000;">hWnd</span>, .F.<span style="color: #000000;">&#41;</span><br />   nCount = GetMItemCount<span style="color: #000000;">&#40;</span>hMenu<span style="color: #000000;">&#41;</span><br />   ? nCount<br /><br />   <span style="color: #00C800;">IF</span> oWin:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"TDIALOG"</span><br />      <span style="color: #B900B9;">//RemoveMenu(hMenu, 1, nOR( MF_BYPOSITION, MF_DISABLED) )</span><br />      <span style="color: #B900B9;">//RemoveMenu(hMenu, 1, nOR( MF_BYPOSITION, 0 ) )</span><br />      RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, <span style="color: #000000;">0</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, <span style="color: #000000;">0</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">//RemoveMenu(hMenu, 2, nOR( MF_BYPOSITION, MF_DISABLED) )</span><br />      <span style="color: #B900B9;">//RemoveMenu(hMenu, 0, nOR( MF_BYPOSITION, MF_DISABLED) )</span><br />   <span style="color: #00C800;">ELSE</span><br />      RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">1</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">2</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">ELSE</span><br />   GetSystemMenu<span style="color: #000000;">&#40;</span> oWin:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:14hwxeeq]
¿Es posible modificar el menú de un diálogo?
Perfecto, hago algunas pruebas y comento.
¿Es posible modificar el menú de un diálogo?
Pues funcionó perfecto, aquí el ejemplo que me facilitaste del menú y utilizando el DisableX [code=fw:3h708z88]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// MNUNEW05.PRG</span><br /><span style="color: #B900B9;">// Prueba de nuevas caracteristicas en menus</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> MF_BYPOSITION <span style="color: #000000;">1024</span> <span style="color: #B900B9;">// 0x0400</span><br /><span style="color: #00D7D7;">#define</span> MF_DISABLED &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">Static</span> oWnd<br /><span style="color: #00C800;">Static</span> oFontMenu<br /><span style="color: #00C800;">Static</span> oBr<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cFont &nbsp; := <span style="color: #ff0000;">"Segoe UI Symbol"</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cFontH &nbsp;:= <span style="color: #000000;">-14</span> &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBar<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oIcon<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cVar1 &nbsp; &nbsp;:= <span style="color: #ff0000;">"???"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nHt &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;Fw_SetUnicode<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp;SetResDebug<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !IsWin8<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. !IsWindows10<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cFont &nbsp; := <span style="color: #ff0000;">"Calibri"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, cFontH<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\m</span>enu.ico"</span><br />&nbsp; &nbsp;cTitle := <span style="color: #ff0000;">" Pruebas de Menus: &nbsp;Font - "</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, oFontMenu:<span style="color: #000000;">cFaceName</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> +;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, Str<span style="color: #000000;">&#40;</span> oFontMenu:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" &nbsp; - &nbsp;Redefine SYSMENU &nbsp;- &nbsp;5"</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_WHITE, METRO_OLIVE <br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">SetIcon</span><span style="color: #000000;">&#40;</span> oIcon <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> DisableX<span style="color: #000000;">&#40;</span> oWnd, .T.<span style="color: #000000;">&#41;</span> , BuildMnu0<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">While</span> oFontMenu:<span style="color: #000000;">nCount</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFontMenu:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Enddo</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBr<br />&nbsp; &nbsp; oIcon:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> BuildMnu0<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMnu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> SYSMENU oMnu <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFontMenu <br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SubMenu"</span> &nbsp; &nbsp; &nbsp; &nbsp;CHARICON <span style="color: #000000;">57605</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">2007</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Segundo Item"</span> CHARICON <span style="color: #000000;">57696</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tercer Item"</span> &nbsp;CHARICON <span style="color: #000000;">57736</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"????? (India)"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"FIVEDIT"</span> <span style="color: #0000ff;">SEPARATOR</span> BOLD <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Methods"</span> HSYSBITMAP <span style="color: #000000;">32761</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datas"</span> HSYSBITMAP <span style="color: #000000;">32760</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages"</span> HSYSBITMAP <span style="color: #000000;">32744</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages"</span> HSYSBITMAP <span style="color: #000000;">32743</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ClassData"</span> CHARICON <span style="color: #ff0000;">"M"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SCINTILLA"</span> <span style="color: #0000ff;">SEPARATOR</span> <span style="color: #00C800;">BREAK</span> BOLD<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Methods de Object"</span> CHECKED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Datas Values"</span> HSYSBITMAP <span style="color: #000000;">32739</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages Data"</span> CHARICON <span style="color: #000000;">57731</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Messages Method"</span> HSYSBITMAP <span style="color: #000000;">32741</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"ClassData Object"</span> HSYSBITMAP <span style="color: #000000;">32742</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"??? (China)"</span> CHECKED<br />&nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Reset Menu"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> oMnu:<span style="color: #000000;">Reset</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ENDSYSMENU<br /><br /><span style="color: #00C800;">Return</span> oMnu<br /><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DisableX<span style="color: #000000;">&#40;</span>oWin, lDisable<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hMenu &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCount := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lDisable := .T.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lDisable<br />&nbsp; &nbsp; &nbsp; hMenu &nbsp;= GetSystemMenu<span style="color: #000000;">&#40;</span>oWin:<span style="color: #000000;">hWnd</span>, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nCount = GetMItemCount<span style="color: #000000;">&#40;</span>hMenu<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? nCount<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oWin:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"TDIALOG"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, <span style="color: #000000;">0</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, <span style="color: #000000;">0</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">1</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RemoveMenu<span style="color: #000000;">&#40;</span>hMenu, nCount - <span style="color: #000000;">2</span>, nOR<span style="color: #000000;">&#40;</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; GetSystemMenu<span style="color: #000000;">&#40;</span> oWin:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:3h708z88] Se consigue un menú de sistema totalmente personalizado, fabuloso Cristóbal, gracias.
¿Es posible modificar el menú de un diálogo?
Con el sistema de menús del que disponemos se pueden hacer cosas interesantes !!! <!-- 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 --> [img:2krbby3e]https&#58;//fotos&#46;subefotos&#46;com/00b3306c54517782be0fa0de1246494ao&#46;png[/img:2krbby3e]
¿Es posible modificar el menú de un diálogo?
Aqui puedes ver la información necesaria ( hay en esta pagina un ejemplo especialmente significativo: no dejes de ver y probar el ejemplo MNUSELECT.PRG ) <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_pulldown_menu">http://wiki.fivetechsoft.com/doku.php?i ... ldown_menu</a><!-- m -->
¿Es posible modificar el menú de un diálogo?
En la próxima versión, la barra del menú Bar, admite brush también [img:1q83wat2]https&#58;//i&#46;postimg&#46;cc/Hs4BM372/menu25&#46;png[/img:1q83wat2]
¿Es posible poner un menú Popup con un Rebar?
Amigos, necesito poner un menú con Rebar, y me arroja error, si alguien sabe como agregarlo, se lo agradeceré.
¿Es posible poner un menú Popup con un Rebar?
Leonel, Yo lo hago asi: FUNCTION MiFuncion() LOCAL oMenu, nRow, nCol, aPos := GetCursorPos() nRow := aPos[1] nCol := aPos[2] MENU oMenu POPUP MENUITEM OemToAnsi( "Opcion 1" ) ACTION Funcion1() MENUITEM OemToAnsi( "Opcion 2" ) ACTION Funcion2() ENDMENU ACTIVATE MENU oMenu AT nRow, nCol OF oMainWnd oMainWnd:Refresh() RETURN NIL
¿Es posible poner un menú Popup con un Rebar?
Alvaro, gracias, me di cuenta que sólo tenía que activar el menú.
¿Es posible tratar temas por separado?
Luis Antonio Lo último es: FWH20.04 Harbour 3.2 (r2004201301) BCC 7.40 Editores FivEdit, VSCode MySql/MariaDB Mod_Harbour con Apache24 Conquistando la WEB En el foro encontrarás los Links de descargas y ayuda de como utilizarlos. Empieza con un proyecto y aquí te ayudaremos.
¿Es posible tratar temas por separado?
Muchas gracias por las respuestas y la orientación que entregan. Por el tiempo que dedican para ayudar.
¿Es posible tratar temas por separado?
Hola lagm. Yo también he retomado la programación en Fivewin, Harbour después de muchísimos años, he adaptado un programa que tenía antiguo en Fivewin 2.0 con Clipper imaginate , la verdad que he tenido problemillas pero este foro tiene gente muy grande , puntos en contra, ya sabemos la documentación incompleta pero se suple con la información del foro. Yo soy un hobbyst, y hecho en falta eso pero creo que la gente que se dedica a programar a tiempo completo, que hay muchísima aquí como saben utilizar perfectamente las herramientas no les hace falta ese manual y cuando algo se les atraganta preguntan , la mayoría de las veces obtienen respuesta muy positiva con esto la satisfacción con el entorno es muy alta. En mi caso personal yo estoy muy contento, con Fivetech y con el Foro. Consejo, lo que te dice Armando empieza un proyecto, busca en el Foro, ejemplos etc, cuando no avances, pregunta. Saludos. Enviado desde mi POCOPHONE F1 mediante Tapatalk
¿Es posible tratar temas por separado?
Buen día, Al leer en el foro, me doy cuenta que no soy el único que ha retomado Fivewin después de un largo periodo, por diversas razones. Al llegar, nos damos cuenta que hay muchos cambios y que requiere tiempo entender la evolución de las herramientas. Si tenemos código de versiones anteriores de Fivewin Harbour o xHarbour, hay que decidir si actualizamos o reescribimos el código, si seguimos utilizando dbf’s con NTX o CDX, o damos el salto a SQL (lo recomendado). En resumen, Tenemos que actualizarnos en el uso de las herramientas de apoyo: editor de recursos, editor de texto. Y existen varias alternativas que a veces nos confunden. Y Claro, al revisar en el foro nos encontramos con mucha información y, en algunos casos, des-actualizada. Aprovecho de agradecer el aporte de conocimiento y experiencia de muchas personas, a veces, respondiendo en varias ocasiones la misma pregunta (se deben fastidiar). Por lo anterior, ¿Es posible (o ya existe), contar con apartados que se refieran exclusivamente a un tema en específico?, donde se concentre: documentación, recomendaciones, experiencias, entre otros temas. Por ejemplo: - Herramientas para programar con Fivewin (versión actual) - Lo nuevo en Fivewin (viene con el software al adquirir la licencia) - Manejo de bases de datos, dbf (TDABASE) - Migración de DBF a MySQL/María DB <!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=At443e_FhnI&feature=youtu.be">https://www.youtube.com/watch?v=At443e_ ... e=youtu.be</a><!-- m --> - Manejo de xBrowse - Exportar a Excel, PDF o Word. O, ¿definitivamente es la forma de buscar la información? Luis Antonio GM Curicó-Chile
¿Es posible tratar temas por separado?
Luis Antonio: Me parece que no tienes otra que buscar en el foro o preguntar, si buscas en el foro por un tema especifico seguramente encontraras, lo mismo si preguntas al foro, seguro tendrás respuesta. Migrar a MySQL o MariaDB no es la bestia negra que parece, incluso tú mismo puedes hacerte un programa que lea DBFs y los pase a Tablas SQL, la programación cambia, yo te recomiendo empezar un nuevo proyecto con MySQL para que entiendas la filosofía de las bases de datos SQL y no cargues con el lastre de pensar en DBFs y querer metarlo en tablas SQL. Te dejo mi correo por si puedo apoyarte más <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Saludos
¿Estan incluidas las funciones de pintado GDI?
Antonio Estan incluidas las funciones de pintado GDI. (Rectangle, polypolygon,etc) O en su caso ¿Cuales NO estan incluidas? Saludos Toni Sales
¿Estan incluidas las funciones de pintado GDI?
Toni, El fichero source\winapi\drawing.c no está incluido ya que hay funciones que no están soportadas en Windows Mobile. Cuales necesitas ? Recuerda que puedes usar #pragma BEGINDUMP para rapidamente añadir funciones que necesites del API.
¿Estan incluidas las funciones de pintado GDI?
[quote="Antonio Linares":es8gv4cf]Toni, El fichero source\winapi\drawing.c no está incluido ya que hay funciones que no están soportadas en Windows Mobile. Cuales necesitas ? Recuerda que puedes usar #pragma BEGINDUMP para rapidamente añadir funciones que necesites del API.[/quote:es8gv4cf] Antonio Ahora mismo necesito Polypolygon y "familia". Estoy traspasando una clase que utilizo mucho en FWH BTNGET a FWPPC y utiliza esta función GDI. Saludos Toni Sales
¿Estan incluidas las funciones de pintado GDI?
Toni, Parece que Windows Mobile no soporta Polypolygon <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Ve al directorio include del VCE y busca el nombre de las funciones que necesites y asi ves las que estan disponibles y las que no.
¿Estan incluidas las funciones de pintado GDI?
Buscando en las librerías aparece wce_PolyPolygon() pero no tenemos el prototipo. Podríamos intentar a usar el mismo que PolyPolygon().
¿Estan incluidas las funciones de pintado GDI?
[quote="Antonio Linares":r6a7uohl]Buscando en las librerías aparece wce_PolyPolygon() pero no tenemos el prototipo. Podríamos intentar a usar el mismo que PolyPolygon().[/quote:r6a7uohl] Antonio Buscando en el API de WCE existe la función Polygon que parece pinta un único polygon a diferencia de Polypolygon que recibe un Array de poligonos. Quizas se podría realizar un Polypolygon que construyera el array y a su vez llamara a Polygon para crearlos. Por desgracia mis conocimientos en "C" son nulos. Saludos Toni sales
¿Estan incluidas las funciones de pintado GDI?
Antonio, [quote:123yp20w]Buscando en las librerías aparece wce_PolyPolygon() pero no tenemos el prototipo. Podríamos intentar a usar el mismo que PolyPolygon().[/quote:123yp20w] Mira a ver si te sirve esto: [code:123yp20w]BOOL AFXAPI wce_PolyPolygon&#40;HDC hdc, const POINT* lpPoints, const int* lpPolyCounts, int nCount&#41;;[/code:123yp20w] Saludos, José Luis Capel
¿Evitar que Windows bloquee nuestro instalador?
Hola amigos, creo los instaladores de mis aplicaciones con Inno Setup y siempre sin problemas. Últimamente Windows 10 se empeña en indicar que los instalables no son seguros cuando se descargan desde mi página web. [url=http&#58;//subefotos&#46;com/ver/?632239cac5b2c419258a8d592db3aad0o&#46;jpg:2i3pa3dg][img:2i3pa3dg]http&#58;//thumbs&#46;subefotos&#46;com/632239cac5b2c419258a8d592db3aad0o&#46;jpg[/img:2i3pa3dg][/url:2i3pa3dg] ¿Alguna pista de cómo evitar esto? Muchas gracias
¿Evitar que Windows bloquee nuestro instalador?
Vale, ya he visto que hay que firmarlos digitalmente con un certificado específico para código. Nada más.
¿Evitar que Windows bloquee nuestro instalador?
Angel I use Inno installer as well .. tell me more about how to acquire this certificate and how to apply it to your setup program. Thanks Rick Lipkin
¿Evitar que Windows bloquee nuestro instalador?
Look at : [url:2u9kxa3m]http&#58;//criterium&#46;es/article/obtencion-certificados-para-firma-ejecutables[/url:2u9kxa3m] [url:2u9kxa3m]https&#58;//www&#46;leaderssl&#46;es/[/url:2u9kxa3m] [url:2u9kxa3m]https&#58;//www&#46;instantssl&#46;com/code-signing-certificate&#46;html[/url:2u9kxa3m]
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Buenas amigos, tengo necesidad de usar imágenes en botones y pretendo usar BTNBMP. Con este simple ejemplo : [code=fw:1dhoiaon]<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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDlg, oBtn<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">48</span> FILE <span style="color: #ff0000;">"bdbar.BMP"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Hola'</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 /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1dhoiaon] ... se me sustituye todo el color azul del botón por el color de fondo del botón o diálogo. ¿Cómo se puede evitar esto? La imagen sólo tiene dos colores, azul y blanco. El botón [img:1dhoiaon]http&#58;//www&#46;sigev&#46;com/fw/BdBar&#46;bmp[/img:1dhoiaon] El resultado [img:1dhoiaon]http&#58;//www&#46;sigev&#46;com/fw/captura&#46;jpg[/img:1dhoiaon]
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
En realidad, esta BITMAP está dañado. Intercambiado por otro BMP, ejemplo: EMAIL.BMP y funcionó correctamente. Saludos.
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
No entiendo lo de que está dañado .... incluso lo he editado con el PAINT. ¿Tiene que tener algún formato especial?
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Si pinto el pixel 0,0 de otro color distinto al azul funciona correctamente. He estado observando el método que pinta el botón y al parecer toma el color de fondo de la posición 0,0 [code=fw:1xvt2vig]<div class="fw" id="{CB}" style="font-family: monospace;">nZeroZeroClr = GetPixel<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span></div>[/code:1xvt2vig]
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Modifiqué las propriedads del mismo con el IRFANVIEW.EXE y no funciona mismo asi, está todo con mal formato. También no comprendo que pasa. <!-- m --><a class="postlink" href="http://www.irfanview.com/">http://www.irfanview.com/</a><!-- m --> saludos.
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
El color del pixel en 0, 0 se usa para saber cual es el color transparente. Con que le cambies el color a ese pixel (como has hecho) es suficiente para que se vea bien.
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Me parece muy curioso ... ¿no hay forma de solucionar esto sin tener que modificar las imágenes?
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Angel, Está técnica la aprendí de Borland, quien tambien lo hacía igual. Para no modificar las imágenes, entonces tendrás que modificar la función de pintado. O prueba a hacer esto: Añade esté código al final del primer PRG de tu aplicación: [code=fw:13lia2eb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETPIXEL <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retnl<span style="color: #000000;">&#40;</span> RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// forzamos a que devuelva Rojo (Red, Green and Blue)</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:13lia2eb]
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Hace algún tiempo me encontré con el mismo problema con algunos BMPs y PNGs que tenían un aspecto parecido al tuyo Como no soy ningún experto en imágenes, y después de dedicar mucho tiempo a cambiar imágenes e intentar ver qué pasaba, pensé que el problema eran los BMPs que yo tenía. Probé cambiando el nivel Alpha, la transparencia, etc, sin conseguir ningún resultado Insisto en que no soy ningún experto en el uso de imágenes, es más, me considero bastante torpe en este aspecto Encontré una solución que a mí me funcionó aunque tuve que cambiar la clase Hice lo siguiente (por si te parece bien) 1.- Creé una DATA nueva en la clase BTNBMP [code=fw:bx6vsg2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">DATA</span>   nZeroZeroClr <span style="color: #0000ff;">INIT</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:bx6vsg2o] 2.- En el método Paint , en [b:bx6vsg2o]todas[/b:bx6vsg2o] las llamadas a la function DrawTransBmp, añadí esa DATA como parámetro final (creo que son 4 llamadas a esa funcion) Por ejemplo [code=fw:bx6vsg2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />.../...<br />            <span style="color: #00C800;">else</span><br />               DrawTransBmp<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, hBmp, oBmpRect:<span style="color: #000000;">nTop</span>, oBmpRect:<span style="color: #000000;">nLeft</span> + <span style="color: #000000;">2</span>, oBmpRect:<span style="color: #000000;">nWidth</span>, oBmpRect:<span style="color: #000000;">nHeight</span>, ::<span style="color: #000000;">nZeroZeroClr</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span><br /><br />.../...<br /> </div>[/code:bx6vsg2o] 3.- Modifiqué esa function DrawTransBmp para que aceptara ese parámetro [code=fw:bx6vsg2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DrawTransBmp<span style="color: #000000;">&#40;</span> hDC, hBmp, nRow, nCol, nWidth, nHeight, nZeroZeroClr <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> hDCMem, hBmpOld, nOldClr <span style="color: #B900B9;">//, nZeroZeroClr</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> nWidth := nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nHeight := nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nZeroZeroClr := <span style="color: #00C800;">Nil</span> <br /><br />   hDCMem = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// we can not get nZeroZeroClr from hDC is possible hDC are locked by other SelectObject</span><br />   <span style="color: #B900B9;">// An application cannot select a bitmap into more than one device context at a time.</span><br />   hBmpOld      = SelectObject<span style="color: #000000;">&#40;</span> hDCMem, hBmp <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> nZeroZeroClr = <span style="color: #00C800;">Nil</span><br />      nZeroZeroClr = GetPixel<span style="color: #000000;">&#40;</span> hDCMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />.../...<br /><br /><br /> </div>[/code:bx6vsg2o] 4.- En la definicion de mis botones, si tengo algun problema hacía lo siguiente [code=fw:bx6vsg2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">132</span>, <span style="color: #000000;">52</span> FILE <span style="color: #ff0000;">"bdbar.bmp"</span> NOBORDER <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> <span style="color: #B900B9;">//MsgInfo ('Hola') </span><br />   oBtn:<span style="color: #000000;">nZeroZeroClr</span>  := <span style="color: #000000;">-1</span><br /><br /> </div>[/code:bx6vsg2o] Et voilá Pero, si me preguntas por qué ocurre con algunos BMPs? (No tengo ni idea, lo dejé por imposible)
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Gracias amigos, con el ajuste que sugiere Antonio se acabó el problema. Saludos,
¿Evitar sustitución de color en BTNBMP? *SOLUCIONADO*
Angel, Me alegro de que te haya servido. De todas formas recuerda que si en tu aplicación se usase la función GetPixel() no funcionaría correctamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
¿Existe Programa para imprimir factura eletronica desde XML?
Hola ¿Alguien sabe si existe un programa que permita imprimir una factura electronica desde XML?, Estoy buscando algo que permita modificar el formato de la impresion de forma visual y que se le envie el nombre de archivo del Archivo XML e imprima la factura con ese formato o que genere un archivo PDF. De antemano muchas gracias.
¿Existe Programa para imprimir factura eletronica desde XML?
El más indicado és que usted use una impresora virtual para generar archivos PDF, tipo: PDFCREATOR. PDF FACTORY Yo uso esta, és de pago, más marabillosa. <!-- m --><a class="postlink" href="http://www.pdfmachine.com/">http://www.pdfmachine.com/</a><!-- m --> Saludos.
¿Existe Programa para imprimir factura eletronica desde XML?
Karinha Gracias por responder. Lo que necesito es algun programa tipo reporteador que permita diseñar de modo visual un formato de factura con campos para ser leidos desde una factura electronica en formato XML. Saludos
¿Existe Programa para imprimir factura eletronica desde XML?
Holá, No creo sea posible, por encuanto.
¿Existe demo FiveMac?
¿Existe? Un cliente me solicita desarrollar el programa que ya tiene en Windows 7 pero ahora en su MAC. Como no tengo idea de lo que cueste hacerlo (compatibilidad, tiempo, esfuerzo, problemas, etc.) me gustaría probar antes de comprar y comprometerme. La pregunta es ¿Existe una demostración que pueda usar aunque tenga limitación en el tiempo o ciertas funciones capadas tales como reportes limitados a una página, número de registros en las bases de datos u otro tipo de protección? No me animó a comprometerme sin haber probado antes con un código de varias miles de líneas de lógica un tanto compleja, imágenes y demás sin ver antes que tanto esfuerzo representa.
¿Existe demo FiveMac?
Ellano, Para un cliente en concreto que quiera la aplicación en Mac, lo más sencillo y rapido es usar la utilidad gratuita WinBottler que permite a una aplicación Windows funcionar en Apple: [url:vcam559s]http&#58;//winebottler&#46;kronenberg&#46;org/[/url:vcam559s] FiveMac no permite una portabilidad al 100% de una aplicación FiveWin. La ventaja de usar FiveMac es que la aplicación resultante es realmente una apliación de Mac, pero la contrapartida es que te obliga a modificar una aplicación existente en FiveWin, ya que su sintaxis es muy parecida pero no identica.
¿Existe demo FiveMac?
Gracias por la respuesta. Pero no responde a la pregunta principal ¿Existe un demo aunque este limitado en funcionalidad? Ya he usado Wine en Linux y a veces sí, a veces no. (De todas formas pruebo, demuestro al cliente y hago una guía rápida que inmediatamente anexo como documento a este foro en cuanto lo tenga listo) Precisamente, el demo (aún la versión beta vale) me permitiría ver qué tanto de la sintaxis se conservaría tal y como precisas en la segunda parte de tu respuesta
¿Existe demo FiveMac?
No, no disponemos de una versión demo. Es dificil hacer una demo de una libreria, no es algo habitual que nosotros ofrezcamos. Solemos ofrecer, a veces, versiones más antiguas para que los usuarios prueben y se familiaricen con el producto, pero son versiones muy antiguas. De FiveMac no tenemos ninguna preparada.
¿Existe en FiveWin este tipo de función?
Estimados fivewiners Deseo registrar un dato de tipo DateTime con una función interna de fivewin, esto es que me de como resultado la fecha y hora actual del computador o servidor. He buscado en el wiki y no hallo; probe la funcion DateTime() pero esta solo me devuelve el día en formato dd/mm/yyyy. Saludos Fernando Espinoza
¿Existe en FiveWin este tipo de función?
[url:bx1m33g7]http&#58;//puertosur&#46;blogspot&#46;com/2007/04/datetime-en-xharbour&#46;html[/url:bx1m33g7]
¿Existe en FiveWin este tipo de función?
Hola, en FW o xharbour no estoy seguro, pero si usaras MySQL seria asi: SELECT UTC_TIMESTAMP() 2010-05-30 18:04:15 Salu2
¿Existe en FiveWin este tipo de función?
Correccion, en xharbour existe datetime() y devuelve 30/05/2011 18:10:45 Salu2
¿Existe en FiveWin este tipo de función?
Yo uso este código fuente, "wrapeando" la función GetLocalTime de la DLL "kernel32.dll". [code=fw:1e7xxhm2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"struct.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"exstruc.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cTemp:=<span style="color: #ff0000;">""</span><br /><br />STRUCT HoraSys<br />  MEMBER wAnno   AS _INT<br />  MEMBER wMes    AS _INT<br />  MEMBER wDiaSem AS _INT<br />  MEMBER wDia    AS _INT<br />  MEMBER wHora   AS _INT<br />  MEMBER wMinuto AS _INT<br />  MEMBER wSegun  AS _INT<br />  MEMBER wMilis  AS _INT<br />ENDSTRUCT<br /><br />cTemp:=HoraSys:<span style="color: #000000;">cBuffer</span><br /><br />GetLocalTime<span style="color: #000000;">&#40;</span>@cTemp<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pide datos de fecha y hora.</span><br /><br />HoraSys:<span style="color: #000000;">cBuffer</span>:=cTemp<br /><br /><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Año:"</span>             +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wAnno</span><span style="color: #000000;">&#41;</span>  +chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Mes:"</span>             +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wMes</span><span style="color: #000000;">&#41;</span>   +chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Dia de la semana:"</span>+str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wDiaSem</span><span style="color: #000000;">&#41;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Dia:"</span>             +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wDia</span><span style="color: #000000;">&#41;</span>   +chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Hora:"</span>            +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wHora</span><span style="color: #000000;">&#41;</span>  +chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Minutos:"</span>         +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wMinuto</span><span style="color: #000000;">&#41;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Segundos:"</span>        +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wSegun</span><span style="color: #000000;">&#41;</span> +chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />        <span style="color: #ff0000;">"Milisegundos:"</span>    +str<span style="color: #000000;">&#40;</span>HoraSys:<span style="color: #000000;">wMilis</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> GetLocalTime<span style="color: #000000;">&#40;</span>lpSystemTime AS LPSTR<span style="color: #000000;">&#41;</span> AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"GetLocalTime"</span> LIB <span style="color: #ff0000;">"kernel32.dll"</span></div>[/code:1e7xxhm2]
¿Existe en FiveWin este tipo de función?
Willy Yo tengo FWH 907 y cuando uso DateTime() solo me devuelve la fecha. Voy a probar las otras sugerenencias. Gracias por su aporte. Saludos Fernando Espinoza
¿Existe libreria que pueda utilizar para imagenes?
Hola. Tengo un lote de imagenes jpg que necesito cambiarles el tamaño. Existe alguna libreria que pueda utilizar para hacerme una aplicacion? gracias.
¿Existe libreria que pueda utilizar para imagenes?
goosfancito puedes intentar utilizar el API CopyImage. Yo le he implementad así: [code=fw:122mapum]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> COPYMIMAGE <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//  CopyMImage( HBITMAP hBitmap, INT nWidth, INT nHeight, UINT nType, UINT nFlag )  -> hBitmap</span><br />   <span style="color: #000000;">&#123;</span><br />   HBITMAP hNewBmp ;<br />   HBITMAP hBitmap = <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span>   hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />   int nX          = <span style="color: #000000;">&#40;</span> int <span style="color: #000000;">&#41;</span>       hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />   int nY          = <span style="color: #000000;">&#40;</span> int <span style="color: #000000;">&#41;</span>       hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />   UINT nType      = <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> !hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, IMAGE_BITMAP,      hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />   UINT nFlag      = <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> !hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, LR_COPYDELETEORG,  hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   hNewBmp = CopyImage<span style="color: #000000;">&#40;</span> hBitmap, nType, nX, nY, nFlag <span style="color: #000000;">&#41;</span> ;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> hNewBmp <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /> </div>[/code:122mapum] Espero que tesirva. Saludos
¿Existen Limite en Tamaño del .EXE ?
Buenas tardes a todos, amigos. Solo por curiosidad, ¿existe algun limite en FW+xHarbour o FW+Harbour para el tamaño del .EXE? Me gustaria saberlo, Gracias.
¿Existen Limite en Tamaño del .EXE ?
no que yo lo sepa. [url:1265a97d]https&#58;//es&#46;wikipedia&#46;org/wiki/EXE_(inform%C3%A1tica)[/url:1265a97d] Regards, saludos.
¿Existen Limite en Tamaño del .EXE ?
chatGPT: [quote:1wgf1oke]No hay un límite estricto en el tamaño de un archivo ejecutable (EXE) en Windows, pero el tamaño del archivo está limitado por los recursos disponibles y la arquitectura del sistema operativo. Para un sistema operativo Windows de 32 bits, el espacio máximo teórico de memoria direccionable es de 4 GB, que se comparte entre el sistema operativo, las aplicaciones en modo de usuario y los componentes del sistema. En la práctica, la memoria real disponible para una sola aplicación suele ser de alrededor de 2-3 GB. Esto significa que el tamaño máximo de un ejecutable para un sistema Windows de 32 bits está aproximadamente en el rango de 2-3 GB. Por otro lado, un sistema operativo Windows de 64 bits puede direccionar una cantidad de memoria mucho mayor, generalmente hasta 128 GB o más, dependiendo de la edición de Windows que se utilice. Esto aumenta significativamente el tamaño máximo de un ejecutable en un sistema de 64 bits. Sin embargo, es importante tener en cuenta que crear un ejecutable muy grande puede provocar varios problemas, como un mayor tiempo de carga, un mayor consumo de memoria y un menor rendimiento. Por lo general, es una buena idea optimizar el tamaño de su ejecutable y utilizar técnicas como la carga dinámica de bibliotecas para gestionar el uso de la memoria de manera eficiente.[/quote:1wgf1oke]
¿Existen Limite en Tamaño del .EXE ?
Master Antônio, ahi, basta usar OVERLAYS con: PROGRAM1.HBR de [x]harbour . Siempre será pequeño el .EXE. [url:7ammlvbz]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=37428&p=223722&hilit=usando+hrb&sid=8e6935b9379f786659f5b19f8bb01c6a&sid=49cf627237bfc9a8329574d91789d8e4#p223722[/url:7ammlvbz] Regards, saludos.
¿FiveEdit y el paso a paso para xHarbour?
Hola a todos amigos del foro. ¿Me podrían informar de donde puedo descargar el FiveEdit y alguna guía que enseñe como editar, compilar y enlazar para xHarbour? Uso fivewin 17.01+xHarbour+Bcc5.5, y PellesC (como editor de recursos) Muy agradecido con la ayuda que puedan prestarme.
¿FiveEdit y el paso a paso para xHarbour?
Aqui tienes el slack de FivEdit <!-- m --><a class="postlink" href="https://join.slack.com/t/fivedit/shared_invite/zt-pvu13qk6-7sF_PZRVd198CqomwAc7pw">https://join.slack.com/t/fivedit/shared ... CqomwAc7pw</a><!-- m -->
¿FiveEdit y el paso a paso para xHarbour?
Jose, muchas muchas gracias por el instalador de FivEdit que has hecho y puesto en el slack ( incluido el script ), era algo que llevaba tiempo pensado hacer, pero el tiempo es nuestro peor enemigo como bien sabemos. Es de agradecer Un abrazo señor
¿FiveEdit y el paso a paso para xHarbour?
Gracias a ti Cristóbal, por el gran aporte de FivEdit. Solo puse un granito de arena. Saludos a todos.
¿IDE para Fivewin ?
Está en mente, proceso o pensamiento que en un futuro (esperemos que más pronto que tarde) se pueda programar en FIVEWIN con una sola herramienta integrada? Estaría bastante bien. No es por enredar, pero si esto no sale pronto no va a ser fácil que se inicien proyectos nuevos con esta querida herramienta que ya nos sacó del atolladero en su momento, pero que necesita un renacer ya. Yo sigo esperando y confiando en que esto ocurra pronto. Un saludo, Fenix
¿IDE para Fivewin ?
Fenix, El modo de trabajo de FiveWin es el mismo que el de Clipper: * Puedes usar el editor de código fuente que prefieras. * Puedes usar un fichero BAT, make, ó alguna de las herramientas make disponibles. * Aunque es programación orientada al objeto, no te obliga a trabajar con objetos intensivamente, sino que puedes usar comandos xbase comodamente. * Los PRGs están a la vista y no hay ficheros que se generen de forma oculta y a los que no se tenga acceso. * Es programación "lineal" y no programación de "mil puertas" al estilo VB. Piensa por un momento que estas reglas tan básicas han hecho de Clipper un estandard. Visual Objects de CA, por ejemplo, intentó cambiar esas reglas y mira hoy en dia donde está su IDE y el producto. Lo mismo ocurrió con Visual dBase, que al final Borland tuvo que deshacerse de él.