messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2012-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Francisco Horta\":syyabk5y]Parece que ya solucioné modificando la clase Destroy() de la xbrowse agregando estas lineas, \n\n if ::oBrush:hBitmap != 0 .and. ValType( ::oBrush:Cargo ) == 'N'\n DeleteObject( ::oBrush:hBrush )\n endif\n\nnomas que lo confirme Antonio a ver si es correcto\nsaludos\npaco[/quote:syyabk5y]\n\nPaco,\n\nLa forma correcta sería:\n\n[code=fw:syyabk5y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> != <span style=\"color: #000000;\">0</span> .and. ValType<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">Cargo</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">'N'</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp;</div>[/code:syyabk5y]\n\npuesto que los brushes en FWH son reusables desde distintos objetos, y no podemos destruirlos directamente pues pueden estar aun en uso", "time": "22:59", "topic": "Brush en Browse", "username": "Antonio Linares" } ]
Brush en Browse
[ { "date": "2012-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":24kkchw3]\nEstos no los elimina: \n DEFINE BRUSH oBrush FILENAME cBrush \n DEFINE FONT oFont NAME \"MS SANS SERIF\" SIZE 0, -10 BOLD \n DEFINE FONT oFont2 NAME \"MS SANS SERIF\" SIZE 0, -14 BOLD \n oBrw:SetBackGround(\".\\STONE.BMP\") \n\nAl salir, hago esto:\n oFont:End() //esta no la elimina\n oFont2:End() //esta SI\n oBrush:End() //este tampoco\n[/quote:24kkchw3]\n\nPaco,\n\nSi no se eliminan es porque se han asignado más veces de las debidas y su contador de uso no está a 1. Lo puedes comprobar llamando varias veces a :End():\n\n[code=fw:24kkchw3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">while</span> oFont:<span style=\"color: #000000;\">nCount</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">while</span> oBrush:<span style=\"color: #000000;\">nCount</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp;</div>[/code:24kkchw3]", "time": "23:04", "topic": "Brush en Browse", "username": "Antonio Linares" } ]
Brush en Browse
[ { "date": "2012-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\nGracias por tu apoyo..\nprobando la clase tfolderex de mi sistema le asigno font y estas se quedaban en memoria\nlo soluciones corrigiendo el metodo Destroy()\n\n METHOD Destroy() INLINE AEval( ::aBitmaps, {| hBmp, nId | DeleteObject( hBmp[ BMP_HANDLE] ) } ), ;\n AEval( ::aBrightBmp, {| hBmp, nId | DeleteObject( hBmp ) } ), [color=#BF0000:1rq5goko]::oFont:End()[/color:1rq5goko], Super:Destroy()\n\nEs correcto?\ngracias\npaco", "time": "23:21", "topic": "Brush en Browse", "username": "Francisco Horta" } ]
Brush en Browse
[ { "date": "2012-02-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\n¿ Podrías, por favor, decirme qué significa \"más veces de las debidas\" en: \n\n[quote=\"Antonio Linares\":3j0yfotj]\nSi no se eliminan es porque se han asignado más veces de las debidas...\n[/quote:3j0yfotj] ?\n\n\nSaludos", "time": "09:47", "topic": "Brush en Browse", "username": "hmpaquito" } ]
Brush en Browse
[ { "date": "2008-05-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día,\r\n\r\nPretendo usar Pages en mi aplicación pero me encuentro que no puedo colocar un brush a los mismos.\r\n\r\nHice todo lo que ví comentado en el foro pero sigue saliendo con el fondo blanco.\r\n\r\nComo uso recursos DLL generados con Pelles-C, y este no tiene predefinido el Pages, lo defino como texto. Calculo que ahí está el fallo pero quisiera saber si realmente no se puede definir el brush en Pages o es fallo de la definición de recursos. \r\n\r\nSi el fallo estuviese en la definición del recurso, les pido que me hagan saber cual es la línea de definición para los Pages, ya que tengo un soft free que permite editar las DLL como si fuesen RC y con ello podría cambiarle esta línea.\r\n\r\nGracias. \r\n\r\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:31", "topic": "Brush en Pages", "username": "rolando" } ]
Brush en Pages
[ { "date": "2008-05-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\r\n\r\nCada página del control TPages es un diálogo, por lo que podrías asignarle el brush a cada uno de ellos:\r\n\r\nAEval( oPages:aDialogs, { | oDlg | oDlg:SetBrush( oBrush ), oDlg:Refresh() } )", "time": "13:07", "topic": "Brush en Pages", "username": "Antonio Linares" } ]
Brush en Pages
[ { "date": "2008-05-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\r\n\r\nGracias por responder, pero no funciona, sigue igual.\r\n\r\nLo solucioné poniendo un say que cubra todo en cada dialog de la Pages. Lo definí como NO Transparente y, al resto de los controles los definí como transparentes. Luego :\r\n\r\noPages:aDialogs[1]:SetBrush( oBrush1) \r\noPages:aDialogs[1]:lTransparent := .t.\r\n\r\ny lo mismo para cada una de los dialogs de la Pages.\r\n\r\nComo el fondo del brush si salía, el say que ocupa todo el dialog hace que se muestre un fondo perfecto.\r\n\r\nGracias.\r\n\r\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:30", "topic": "Brush en Pages", "username": "rolando" } ]
Brush en Pages
[ { "date": "2021-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristóbal buenas tardes, que pena molestar.\n\nPero quería saber si se puede usar una imagen \"brush\" como fondo en un panel de tu clase.\n\nDe antemano gracias.", "time": "00:21", "topic": "Brush en TDockPnel", "username": "leandro" } ]
Brush en TDockPnel
[ { "date": "2021-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Leandro, no es molestia. Es muy sencillo\n\n[code=fw:2aq1cyqy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetCtrlsPnel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o, nT, nL, nH, nW, nR | o:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XBrowsePnel<span style=\"color: #000000;\">&#40;</span> o, cArt, nR + <span style=\"color: #000000;\">110</span>, nL, nH - <span style=\"color: #000000;\">158</span>, nW <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2aq1cyqy]", "time": "14:55", "topic": "Brush en TDockPnel", "username": "cnavarro" } ]
Brush en TDockPnel
[ { "date": "2021-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo, muchas gracias por responder.\n\nFunciona de maravilla, era lo que necesitaba.\n\nPero ahora me surge otra pregunta <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nPuedo también emular de alguna manera el ON INIT de un dialogo, en un TDockPnel?\n\nDe antemano gracias.", "time": "17:53", "topic": "Brush en TDockPnel", "username": "leandro" } ]
Brush en TDockPnel
[ { "date": "2021-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Leandro, prueba con esto a ver\n\n[code=fw:1syh55js]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />      :<span style=\"color: #000000;\">SetCtrlsPnel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o, nT, nL, nH, nW, nR | o:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span> || MyFunction<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                                                                    XBrowsePnel<span style=\"color: #000000;\">&#40;</span> o, cArt, nR + <span style=\"color: #000000;\">110</span>, nL, nH - <span style=\"color: #000000;\">158</span>, nW <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      :<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1syh55js]", "time": "18:05", "topic": "Brush en TDockPnel", "username": "cnavarro" } ]
Brush en TDockPnel
[ { "date": "2007-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Una preguntilla....\n\nTengo una dialog dentro de una función que se define así:\n[code:o1qfs0ca]\nDEFINE DIALOG oDlg RESOURCE \"DLG_PAGE\" TITLE cTitulo\n\t\tREDEFINE SAY oSay&#91;1&#93; PROMPT cId ID 200 OF oDlg\n REDEFINE SAY oSay&#91;2&#93; PROMPT cTexto ID 201 OF oDlg\n REDEFINE PAGES oPage ID 102 OF oDlg DIALOGS cDlg_Hija\n[/code:o1qfs0ca]\nLa función siempre me ha funcionado perfecto, pero cuando intento hacer que la dialog aparezca transparente si le paso un brush a la función y que tome ese brush en la dialog y en la page, haciendo esto:\n[code:o1qfs0ca]\n IF oBrush != NIL \n \toDlg&#58;lTransparent &#58;= &#46;t&#46;\n \toPage&#58;aDialogs&#91;1&#93;&#58;lTransparent &#58;= &#46;t&#46;\n \toDlg&#58;oBrush &#58;= oBrush\n \toPage&#58;aDialogs&#91;1&#93;&#58;oBrush &#58;= oBrush\n \toPage&#58;aDialogs&#91;1&#93;&#58;Refresh&#40;&#41;\n ENDIF\n[/code:o1qfs0ca]\nMe pone transparente la dialog pero no la dialog en el page, como puedo solucionarlo para que pueda verse todo con el mismo brush?\n\nse ve así\n\n[url=http&#58;//img80&#46;imageshack&#46;us/my&#46;php?image=dibujopb1&#46;jpg:o1qfs0ca][img:o1qfs0ca]http&#58;//img80&#46;imageshack&#46;us/img80/2620/dibujopb1&#46;th&#46;jpg[/img:o1qfs0ca][/url:o1qfs0ca]\n\nGracias desde ya por la ayuda que puedan darme", "time": "14:43", "topic": "Brush en dialog con page", "username": "jose_murugosa" } ]
Brush en dialog con page
[ { "date": "2007-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Jose\n\nPrueba asi :\n\noPage:aDialogs[1]:SetBruhs( oBrush ) \noPage:aDialogs[1]:lTransparent := .t. \n\nSaludos", "time": "15:35", "topic": "Brush en dialog con page", "username": "Raymundo Islas M." } ]
Brush en dialog con page
[ { "date": "2007-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Raymundo Islas M.\":1yig30zt]Hola Jose\n\nPrueba asi :\n\noPage:aDialogs[1]:SetBruhs( oBrush ) \noPage:aDialogs[1]:lTransparent := .t. \n\nSaludos[/quote:1yig30zt]\n\nGracias Ray por tu respuesta, lo probé así:\n\n[code:1yig30zt]\nIF oBrush != NIL\n\n \toDlg&#58;lTransparent &#58;= &#46;t&#46;\n \toPage&#58;lTransparent &#58;= &#46;t&#46;\n \toPage&#58;aDialogs&#91;1&#93;&#58;lTransparent &#58;= &#46;t&#46; \n\n \toDlg&#58;SetBrush&#40;oBrush&#41; \n \toPage&#58;SetBrush&#40;oBrush&#41; \n \toPage&#58;aDialogs&#91;1&#93;&#58;SetBrush&#40; oBrush &#41;\n\n \toDlg&#58;Refresh&#40;&#41;\n \toPage&#58;Refresh&#40;&#41;\n \toPage&#58;aDialogs&#91;1&#93;&#58;Refresh&#40;&#41;\n ENDIF\n[/code:1yig30zt]\n\nPero con el mismo resultado\n\nrecibo cualquier sugerencia del foro, porfis <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: -->", "time": "17:29", "topic": "Brush en dialog con page", "username": "jose_murugosa" } ]
Brush en dialog con page
[ { "date": "2007-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[code:1czqy6j1]\n LOCAL oBrush\n\n DEFINE BRUSH oBrush FILE \"MIBITMAP&#46;BMP\"\n\n DEFINE DIALOG oDlg RESOURCE \"DLG_PAGE\" TITLE cTitulo ;\n BRUSH oBrush TRANSPARENT\n[/code:1czqy6j1]", "time": "18:42", "topic": "Brush en dialog con page", "username": "karinha" } ]
Brush en dialog con page
[ { "date": "2007-10-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose, tienes razon.\n\nAlgo esta pasando, el codigo que te mande funciona correctamente en la version anterior que usaba ( 2.7 ), estoy probando el nuevo update ( 7.10) y mis pantallas perdieron la transparencia en los pages.\n\n\nMira :\n\n\nAntes\n[img:904t2k8m]http&#58;//img229&#46;imageshack&#46;us/img229/7850/scrtrnsokyv2&#46;jpg[/img:904t2k8m]\n\n\nDespues\n[img:904t2k8m]http&#58;//img229&#46;imageshack&#46;us/img229/7017/scrtransdg8&#46;jpg[/img:904t2k8m]\n\n\nA ver que pudiera decir Antonio al respecto.\n\n\nSaludos", "time": "21:26", "topic": "Brush en dialog con page", "username": "Raymundo Islas M." } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Con la 7.01 es lo mismo que es la que yo tengo.\n\nAntonio,\n\nAlguna solución?", "time": "00:44", "topic": "Brush en dialog con page", "username": "jose_murugosa" } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Raymundo,\n\nPuedes por favor comparar el código fuente de TPages en la 2.7 y en la 7.10 ? gracias", "time": "10:39", "topic": "Brush en dialog con page", "username": "Antonio Linares" } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Master Antonio :\n\nExiste una Linea con diferencias en el Metodo Redefine :\n\n\nEn la version 2.7 esta asi :\n\nDEFAULT nOption := 1, oFont := ::GetFont()\n\n\ny en la 7.10 :\n\nDEFAULT nOption := 1, oWnd := GetWndDefault(), oFont := ::GetFont()\n\n\nEspero te sirva.\n\nSaludos", "time": "14:21", "topic": "Brush en dialog con page", "username": "Raymundo Islas M." } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Raymundo,\n\nGracias. Es lo que suponía: no hay cambios en TPages.\n\nPuedes probar a quitar el cero que añadimos en window.prg en el método EndPaint() y probar tu aplicación ? gracias,\n[code:7ma71wuj]\n METHOD EndPaint&#40;&#41; INLINE &#58;&#58;nPaintCount--,;\n EndPaint&#40; &#58;&#58;hWnd, &#58;&#58;cPS &#41;, &#58;&#58;cPS &#58;= nil, &#58;&#58;hDC &#58;= nil // , 0 \n[/code:7ma71wuj]", "time": "14:43", "topic": "Brush en dialog con page", "username": "Antonio Linares" } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\n\nSigue igual, pero ahora perdi el look 2007 en el menu, la barra de mensajes sigue bien.\n\nAhora, me estoy dando cuenta de algo :\n\nPara dar la apariencia XP estoy usando un archivo con el mismo nombre del ejecutable p.e. MiApp.EXE.Manifest si esta \"activo\" es cuando veo un desastre en las pantallas,si lo renombro ya no se ven los problemas (brush de fondo y transparencias ), pero pierdo lo agradable de la apariencia.\n\nSaludos", "time": "15:16", "topic": "Brush en dialog con page", "username": "Raymundo Islas M." } ]
Brush en dialog con page
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Raymundo Islas M.\":cwqd46gm]Antonio\n\nSigue igual, pero ahora perdi el look 2007 en el menu, la barra de mensajes sigue bien.\n\nAhora, me estoy dando cuenta de algo :\n\nPara dar la apariencia XP estoy usando un archivo con el mismo nombre del ejecutable p.e. MiApp.EXE.Manifest si esta \"activo\" es cuando veo un desastre en las pantallas,si lo renombro ya no se ven los problemas (brush de fondo y transparencias ), pero pierdo lo agradable de la apariencia.\n\nSaludos[/quote:cwqd46gm]\n\nAntonio, \n\nUtilizo la versión 7.01, que creo fué la primera con transparencia y allí en la clase twindow no está el cero referido, y presenta la falla.\n\nIncluso hay un topico mío por enero 2007 referido a ese problema con las pages en el foro, que no fué respondido.\n\nPienso que los tiros deben venir por otro lado...", "time": "15:21", "topic": "Brush en dialog con page", "username": "jose_murugosa" } ]
Brush en dialog con page
[ { "date": "2009-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I assign a Brush to the main window of my application. The window is opened to a defined size. If my client clicked on the Maximize button, in the past the BMP would simply stretch to the size of the window as displayed on the full monitor. In 8.12, it now gets a \"tiled\" look where the original brush covers about 60% of the window, and then paints a second copy in the remainder.\n\nThe code to apply the brush is:\n\nDEFINE BRUSH owBrush RESOURCE \"WINBACK\"\n...\noWnd:oBrush := owBrush\n\nWINBACK is a .bmp file in the resource.\n\nIs there a way to get the stretched bitmap back ?", "time": "21:12", "topic": "Brush in 8.12 Window", "username": "TimStone" } ]
Brush in 8.12 Window
[ { "date": "2009-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Tim,\n\nI understand, that You are using a Image as a Background.\nIt doesn't matter, if it comes as a file from disk, or from resource.\nBoth solutions : Fill background with a Image or Tiled.\n\n[code=fw:s3d6kk4m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />....<br />....<br /><span style=\"color: #B900B9;\">// Brush Image</span><br /><span style=\"color: #B900B9;\">// --------------</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> hDC, oWnd <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// Brush Image Tiled</span><br /><span style=\"color: #B900B9;\">// ---------------------</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd1 <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WB_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//--------- IMAGE - Background ------------------------ </span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span>  hDC, oWnd <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">LOCAL</span> oImage<br /><span style=\"color: #00C800;\">LOCAL</span> nWidth  := oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nHeight := oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// Selected Image ( W_LOGO is a BMP-file from disk )</span><br /><span style=\"color: #B900B9;\">// ------------------------------------------------------------</span><br />cNEWLOGO := <span style=\"color: #ff0000;\">\"&c_pfad<span style=\"color: #000000;\">\\I</span>MAGES<span style=\"color: #000000;\">\\\"</span> + ALLTRIM(W_LOGO)<br />IF File( \"</span>&cNEWLOGO<span style=\"color: #ff0000;\">\" )<br />   DEFINE IMAGE oImage FILENAME \"</span>&cNEWLOGO<span style=\"color: #ff0000;\">\" <br />   PalBmpDraw( hDC, 0, 0, oImage:hBitmap, , nWIDTH, nHEIGHT, , .T. ) <br />ELSE<br />   MsgAlert( \"</span>Cannot load : <span style=\"color: #ff0000;\">\" + CRLF + ;<br />   cNEWLOGO, \"</span>Error<span style=\"color: #ff0000;\">\" )             <br />ENDIF<br /><br />RETURN NIL<br /><br />//--------- IMAGE - BRUSH ------------------------ <br /><br />STATIC FUNCTION WB_IMAGE( oWnd ) <br />LOCAL oImage<br /><br />cNEWLOGO := \"</span>&c_pfad\\<span style=\"color: #0000ff;\">IMAGES</span>\\<span style=\"color: #ff0000;\">\" + ALLTRIM(B_LOGO) // small BMP 32 x 32<br />IF File( \"</span>&cNEWLOGO<span style=\"color: #ff0000;\">\" )<br />   DEFINE BRUSH oImage FILE \"</span>&cNEWLOGO<span style=\"color: #ff0000;\">\"<br />   SET BRUSH OF oWnd TO oImage<br />   RELEASE BRUSH oImage<br />ELSE<br />   MsgAlert( \"</span>Cannot load : <span style=\"color: #ff0000;\">\" + CRLF + ;<br />   cNEWLOGO, \"</span>Error<span style=\"color: #ff0000;\">\" )   <br />ENDIF<br /><br />RETURN NIL<br /><br /></span></div>[/code:s3d6kk4m]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "22:26", "topic": "Brush in 8.12 Window", "username": "ukoenig" } ]
Brush in 8.12 Window
[ { "date": "2009-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You.", "time": "16:58", "topic": "Brush in 8.12 Window", "username": "TimStone" } ]
Brush in 8.12 Window
[ { "date": "2009-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Uwe,\n\ntrying hard to reconstruct your example, but something is wrong, the background is always grey. Here is the source:\n\n[code=fw:3l7vc7eg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #B900B9;\">//</span><br />    <span style=\"color: #B900B9;\">// Testen von Hintergrundbildern</span><br />    <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oWnd<br />   <span style=\"color: #00C800;\">LOCAL</span> oFont<br />   <span style=\"color: #00C800;\">LOCAL</span> cLogo := <span style=\"color: #ff0000;\">\"five.bmp\"</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">12</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Testen von Hintergrundbildern\"</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Schriftart setzen</span><br />   <span style=\"color: #B900B9;\">//</span><br />   oWnd:<span style=\"color: #000000;\">setFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Filename in der Messagebar anzeigen</span><br />   <span style=\"color: #B900B9;\">//</span><br />   SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> cLogo<br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Brush Image</span><br />   <span style=\"color: #B900B9;\">// --------------</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, cLogo <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Brush Image Tiled</span><br />   <span style=\"color: #B900B9;\">// ---------------------</span><br />   <span style=\"color: #B900B9;\">//ACTIVATE WINDOW oWnd1 MAXIMIZED ON PAINT WB_IMAGE( oWnd )</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Aufr„umen</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//--------- IMAGE - Background ------------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, cLogo <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oImage<br />   <span style=\"color: #00C800;\">LOCAL</span> nWidth  := oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> nHeight := oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #00C800;\">LOCAL</span> hDC := oWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">// Selected Image ( W_LOGO is a BMP-file from disk )</span><br />   <span style=\"color: #B900B9;\">// ------------------------------------------------------------</span><br />   <span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME cLogo<br />      PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage:<span style=\"color: #000000;\">hBitmap</span>, , nWIDTH, nHEIGHT, , .T. <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + cLogo, <span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span>            <br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:3l7vc7eg]\n\nCan you help?", "time": "12:57", "topic": "Brush in 8.12 Window", "username": "frose" } ]
Brush in 8.12 Window
[ { "date": "2009-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Frank,\n\nanother way to display a Background-Image without extra Function :\n( Freeimage.dll is used )\n\n[code=fw:hmbbpdgy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// SIZE can be any value, because it will be adjusted to Window-Size</span><br /><br /><span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ADJUST</span><br />&nbsp; &nbsp;oImage:<span style=\"color: #0000ff;\">Progress</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oImage:<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FANTASY1.JPG\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Your Image</span><br /><span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp;MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span>, <span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> DRAWBITMAP<span style=\"color: #000000;\">&#40;</span> hDC, oImage:<span style=\"color: #000000;\">hbitmap</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>,; <br />      oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <br /><br /> </div>[/code:hmbbpdgy]\n\nAnother Solution :\n[code=fw:hmbbpdgy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />...<br /><span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span><br /><span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp;MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span>, <span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage1:<span style=\"color: #000000;\">hBitmap</span>, , oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, , .T. <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:hmbbpdgy]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "21:02", "topic": "Brush in 8.12 Window", "username": "ukoenig" } ]
Brush in 8.12 Window
[ { "date": "2009-04-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nthank you very much for the help, both methods are working for me <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nDo you have an explanation why it doesn't work with the function WL_IMAGE()?", "time": "11:19", "topic": "Brush in 8.12 Window", "username": "frose" } ]
Brush in 8.12 Window
[ { "date": "2009-04-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Frank,\n\nBackground-defines are working different with MDI-Windows.\nIf You use MDI, the used Function from above shows a Grey background.\n\n[code=fw:3vdjlvq9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /><span style=\"color: #00C800;\">LOCAL</span> hDC  <span style=\"color: #B900B9;\">// don't forget !</span><br />...<br />...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span>  <span style=\"color: #B900B9;\">// MDI ;</span><br /><br />SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span> ;<br /><span style=\"color: #0000ff;\">CENTERED</span> CLOCK KEYBOARD <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #B900B9;\">// WL_IMAGE - Function works on non MDI-Windows</span><br /><span style=\"color: #B900B9;\">// ----------------------------------------------------------</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</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;\">//--------- IMAGE - Background ------------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, cLogo <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oImage<br /><br /><span style=\"color: #B900B9;\">// Selected Image a BMP-file from disk )</span><br /><span style=\"color: #B900B9;\">// ---------------------------------------------</span><br /><span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME cLogo<br />      PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage:<span style=\"color: #000000;\">hBitmap</span>, , oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, , .T. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + cLogo, <span style=\"color: #ff0000;\">\"Error\"</span> <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:3vdjlvq9]\n\nUsing a Background-Function in [color=#FF0000:3vdjlvq9]MDI-Window [/color:3vdjlvq9]:\n\n[code=fw:3vdjlvq9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">LOCAL</span> hDC, oImage <span style=\"color: #B900B9;\">// !!!!!</span><br />...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span>  <span style=\"color: #0000ff;\">MDI</span>  <span style=\"color: #B900B9;\">// !!!!!</span><br /><br /><span style=\"color: #B900B9;\">// the difference, the Image must be defined here !!!!!!!!</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span><br /><br />SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span> ;<br /><span style=\"color: #0000ff;\">CENTERED</span> CLOCK KEYBOARD <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, oImage, <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//--------- IMAGE - Background =>> MDI ------------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, oImage, cLogo <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// Selected Image a BMP-file from disk </span><br /><span style=\"color: #B900B9;\">// -------------------------------------------</span><br /><span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span><br />      PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage:<span style=\"color: #000000;\">hBitmap</span>, , oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, , .T. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + cLogo, <span style=\"color: #ff0000;\">\"Error\"</span> <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:3vdjlvq9]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:25", "topic": "Brush in 8.12 Window", "username": "ukoenig" } ]
Brush in 8.12 Window
[ { "date": "2009-04-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Uwe,\n\nTHX for your assistance. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nI've made some more testing and here is the working sample for both SDI and MDI:\n\n[code=fw:fs411lp1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Testing background pictures</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oWnd<br />   <span style=\"color: #00C800;\">LOCAL</span> oFont<br />   <span style=\"color: #00C800;\">LOCAL</span> cLogo := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\x</span>Harbour<span style=\"color: #000000;\">\\F</span>iveWin<span style=\"color: #000000;\">\\m</span>y_source<span style=\"color: #000000;\">\\f</span>ive.bmp\"</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oImage<br />   <span style=\"color: #00C800;\">LOCAL</span> oBrush<br />   <span style=\"color: #00C800;\">LOCAL</span> hDC<br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Background color is white</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">12</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Testing background pictures\"</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />   <span style=\"color: #B900B9;\">//DEFINE WINDOW oWnd TITLE \"Testing background pictures\" BRUSH oBrush</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Font</span><br />   <span style=\"color: #B900B9;\">//</span><br />   oWnd:<span style=\"color: #000000;\">setFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Show file name in the Messagebar</span><br />   <span style=\"color: #B900B9;\">//</span><br />   SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> cLogo<br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Returns the current device context, if any or request a new one</span><br />   <span style=\"color: #B900B9;\">//</span><br />   hDC := oWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Activate the window</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, cLogo <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">//ACTIVATE WINDOW oWnd MAXIMIZED ON PAINT WL_IMAGE( oWnd, cLogo )</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, cLogo <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//STATIC FUNCTION WL_IMAGE( oWnd, cLogo )</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">// Displays centerd background bitmap with scaling factor</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">//LOCAL hDC</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oImage<br />   <span style=\"color: #00C800;\">LOCAL</span> nScaleFactor := <span style=\"color: #000000;\">2</span><br />   <span style=\"color: #00C800;\">LOCAL</span> nHeightBitmap<br />   <span style=\"color: #00C800;\">LOCAL</span> nWidthBitmap<br />   <span style=\"color: #00C800;\">LOCAL</span> nHeightBitmapNew<br />   <span style=\"color: #00C800;\">LOCAL</span> nWidthBitmapNew<br />   <span style=\"color: #00C800;\">LOCAL</span> oRect<br />   <span style=\"color: #00C800;\">LOCAL</span> nRow<br />   <span style=\"color: #00C800;\">LOCAL</span> nCol<br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">//hDC := oWnd:GetDC()</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Doesn't work in MDI</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">//oImage := TBitmap():New(,,,,, cLogo, .T., oWnd,,, .F., .T.,,, .F.,, .F.,, .F. )</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME cLogo<br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Original size of the bitmap</span><br />      <span style=\"color: #B900B9;\">//</span><br />      nHeightBitmap := nBmpHeight<span style=\"color: #000000;\">&#40;</span> oImage:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />      nWidthBitmap := nBmpWidth<span style=\"color: #000000;\">&#40;</span> oImage:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Window size</span><br />      <span style=\"color: #B900B9;\">//</span><br />      oRect := oWnd:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Calculate new bitmap size in relation to the window height</span><br />      <span style=\"color: #B900B9;\">//</span><br />      nHeightBitmapNew := <span style=\"color: #000000;\">&#40;</span> oRect:<span style=\"color: #000000;\">nBottom</span> - oRect:<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">&#41;</span> / nScaleFactor<br />      nWidthBitmapNew  := nWidthBitmap * nHeightBitmapNew / nHeightBitmap<br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Control the new bitmap size in relation to the window width</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #00C800;\">IF</span> nWidthBitmapNew > <span style=\"color: #000000;\">&#40;</span> oRect:<span style=\"color: #000000;\">nRight</span> - oRect:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> / nScaleFactor<br />        <span style=\"color: #B900B9;\">//</span><br />         <span style=\"color: #B900B9;\">// Calculate new bitmap size in relation to the window width</span><br />        <span style=\"color: #B900B9;\">//</span><br />         nWidthBitmapNew  := <span style=\"color: #000000;\">&#40;</span> oRect:<span style=\"color: #000000;\">nRight</span> - oRect:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> / nScaleFactor<br />         nHeightBitmapNew := nHeightBitmap * nWidthBitmapNew / nWidthBitmap<br />      <span style=\"color: #00C800;\">ENDIF</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Calculate the position for centered output</span><br />      <span style=\"color: #B900B9;\">//</span><br />      nRow  := <span style=\"color: #000000;\">&#40;</span> oRect:<span style=\"color: #000000;\">nBottom</span> - oRect:<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> - nHeightBitmapNew / <span style=\"color: #000000;\">2</span><br />      nCol  := <span style=\"color: #000000;\">&#40;</span> oRect:<span style=\"color: #000000;\">nRight</span> - oRect:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> - nWidthBitmapNew / <span style=\"color: #000000;\">2</span><br />      <span style=\"color: #B900B9;\">//</span><br />      <span style=\"color: #B900B9;\">// Display bitmap</span><br />      <span style=\"color: #B900B9;\">//</span><br />      PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, nRow, nCol, oImage:<span style=\"color: #000000;\">hBitmap</span>,, nWidthBitmapNew, nHeightBitmapNew,, .F., <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + cLogo, <span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:fs411lp1]\n\nYou are right, SDI and MDI are working differently:\n- In SDI the background color is white (Default?). In MDI a grey background color comes up, which can be avoided with 'DEFINE BRUSH oBrush COLOR CLR_WHITE'\n- In MDI <hDC> must be passed from the calling function, in SDI <hDC> a local call of 'oWnd:GetDC()' is also working\n- In SDI you can paint the bitmap by using TBitmap(). I think there is no need to use PalBmpDraw() anymore, but havn't done further tests because I want to use MDI\n\nThat's very strange, it seems to be not very consistantly <!-- s:| --><img src=\"{SMILIES_PATH}/icon_neutral.gif\" alt=\":|\" title=\"Neutral\" /><!-- s:| -->\n\nBut the main thing is, that the task is solved and I have a working peace of source code <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "15:36", "topic": "Brush in 8.12 Window", "username": "frose" } ]
Brush in 8.12 Window
[ { "date": "2009-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Tim,\n\nI think maybe [color=#FF0000:3b39xh79]hDC[/color:3b39xh79] is defined a few times without a Release.\n\nYou don't need [color=#FF0000:3b39xh79]hDC := oWnd:GetDC() [/color:3b39xh79]to define inside the main-Window\n\nIs that the source, how Your background is defined, calling the Paint-function ?\n[code=fw:3b39xh79]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">LOCAL</span> hDC  <span style=\"color: #B900B9;\">// don't forget !</span><br />...<br />...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span> ;<br /><br />SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Image-Test\"</span> ;<br /><span style=\"color: #0000ff;\">CENTERED</span> CLOCK KEYBOARD <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #B900B9;\">// WL_IMAGE - Function works on non MDI-Windows</span><br /><span style=\"color: #B900B9;\">// ----------------------------------------------------------</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, <span style=\"color: #ff0000;\">\"FANTASY1.jpg\"</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;\">//--------- IMAGE - Background ------------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> WL_IMAGE<span style=\"color: #000000;\">&#40;</span> oWnd, hDC, cLogo <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oImage<br /><br /><span style=\"color: #B900B9;\">// Selected Image a BMP-file from disk )</span><br /><span style=\"color: #B900B9;\">// ---------------------------------------------</span><br /><span style=\"color: #00C800;\">IF</span> File<span style=\"color: #000000;\">&#40;</span> cLogo <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME cLogo<br />      PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oImage:<span style=\"color: #000000;\">hBitmap</span>, , oWnd:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, , .T. <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot load : \"</span> + CRLF + cLogo, <span style=\"color: #ff0000;\">\"Error\"</span> <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:3b39xh79]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "21:56", "topic": "Brush in 8.12 Window", "username": "ukoenig" } ]
Brush in 8.12 Window
[ { "date": "2009-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "A strange thing has been happening.\n\nI'm using your original solution ( top of thread ) and it seems to work. However, after awhile using the program, which is all SDI ( Dialogs ), when someone returns to the MAIN( ) window, the background disappears.\n\nThere is no persistant pattern that I can identify.\n\nAny thoughts ?\n\nTim", "time": "21:35", "topic": "Brush in 8.12 Window", "username": "TimStone" } ]
Brush in 8.12 Window
[ { "date": "2009-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "LOCAL hDC was not included... we'll see if that improves the situation. Thank you.", "time": "16:11", "topic": "Brush in 8.12 Window", "username": "TimStone" } ]
Brush in 8.12 Window
[ { "date": "2006-02-12", "forum": "FiveWin for Harbour/xHarbour", "text": "OK ... When using the Brush in Dialog option its nice, except the folders do not show the brush.\n\nGoing further, if I use this option, then BMPGET will show a black field with the bitmap, and if I use the bitmap as a button to select a value for the field ( ie. a data lookup option ), then the value cannot be seen because the black bar is still there.\n\nTim <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "23:05", "topic": "Brush in dialog problem continues", "username": "TimStone" } ]
Brush in dialog problem continues
[ { "date": "2006-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease try samples\\TestFldb.prg for a working sample of folders with background bitmapped brushes.\n\nFor non standard FWH controls, like the BTNGET you mention, please add its class name in dialog.prg, here:\n\n if ::lTransparent\n FixSays( ::hWnd )\n AEval( ::aControls,;\n { | o | If( ! Upper( o:ClassName() ) $ ;\n \"TGET;TMULTIGET;TBTNBMP;TCOMBOBOX;TWBROWSE;TCBROWSE;TXBROWSE;TLISTBOX\",;\n o:lTransparent := .t.,) } )\n endif \n\nThose are the classes names where we don't want transparency.", "time": "00:56", "topic": "Brush in dialog problem continues", "username": "Antonio Linares" } ]
Brush in dialog problem continues
[ { "date": "2006-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "OK ... that fixed the GET issue ... \n\nStill no bitmap background on the folders ( see other thread ).\n\nTim", "time": "16:32", "topic": "Brush in dialog problem continues", "username": "TimStone" } ]
Brush in dialog problem continues
[ { "date": "2012-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "I use a brush background on my screens that is a cloud bmp. It has worked fine for a long time.\n\nI was defining the brush each time I defined a dialog, and that seemed like a huge waste. So I declared the brush in the main( ) routine as a public object, and then refer to it with every dialog.\n\nSeveral of my clients reported a problem where the brush background was not showing up, and thus the transparent dialog was being viewed against the previous screen or window.\n\nI have checked and I never intentionally release the brush.\n\nThis seems to have started in 12.05 and may be continuing in 12.06.\n\nIt is happening in a couple of screens. It doesn't happen every time, but it happens to the same dialogs when it does occur.\n\nI would appreciate any suggestions.\n\nTim", "time": "01:55", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nmaybe test it like :\n\nDEFINE BRUSH oBrush1 COLOR 14853684\n[color=#0000FF:383bn7w0]DEFINE BRUSH oBrush2 FILENAME c_path + \"\\Images\\Stone.bmp\"[/color:383bn7w0]\n\n// You can test, if the Brush still exists. \n// with < oBrush2:End() > You will get a Errormessage from the Dialog !!!\n\nDEFINE DIALOG oDlg1 RESOURCE \"Group\" TITLE \"Dialog-test\" FONT oDlgFont ;\nPIXEL // TRANSPARENT\n..\n..\nACTIVATE DIALOG oDlg1 CENTERED ; // NOWAIT ;\n[color=#0000FF:383bn7w0]ON INIT IIF( oBrush2:hBitmap != 0, oDlg1:SetBrush( oBrush2 ), MsgAlert( \"Brush not defined !\", \"ERROR\" ) )[/color:383bn7w0]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:37", "topic": "Brush issue", "username": "ukoenig" } ]
Brush issue
[ { "date": "2012-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nBrushes also use a counter to share them between different objects.\n\nHow are you assigning it ? Must use <oObj>:SetBrush( oBrush )", "time": "13:52", "topic": "Brush issue", "username": "Antonio Linares" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "This is getting urgent\n\nI use one Brush in my system for ALL dialogs.\n\nIn the past, I used the following code in every function that had a dialog:\n\n DEFINE BRUSH oBrush RESOURCE \"SKY\"\n DEFINE DIALOG oDlg RESOURCE \"PRO100M\" BRUSH oBrush TRANSPARENT OF oWnd FONT oWnd:oFont\n\nIt seemed silly to constantly redefine oBrush since there was never an alternative brush used on any dialog. SKY is a bitmap ( clouds ) stored in my .res file that is linked to the program.\n\nSo, I declared oBrush a public variable in the Main( ) program ( thinking that would make it global ), and in each dialog I eliminated the DEFINE BRUSH statement.\n\nAntonio said to modify the code to use the following:\n\n DEFINE DIALOG oDlg RESOURCE \"PRO100M\" TRANSPARENT OF oWnd FONT oWnd:oFont\n oDlg:SetBrush( oBrush )\n\nSo I did that on the major routines where this was happening.\nI also tried an alternative where I set the brush to a color rather than to a .bmp resource\n\nIt all seems to work fine, but then two clients report after awhile, the brush disappears, and so the top level dialog ( in focus ) is transparent and shows all the text below it ! \n\nThe only thing in common is both of these clients are using Windows XP.\n\nI cannot duplicate this problem no matter what I try. I did have another person who reported it, but then they said it resolved and I haven't heard from them since.\n\nWhen it does occur, the only solution is to leave the program and then re-enter it.\n\nPLEASE ... does anyone have a clue ?\n\nTim", "time": "19:36", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\ndid You test it the way I posted above ?\nI never had any problems.\n\nDEFINE DIALOG oDlg RESOURCE \"PRO100M\" TRANSPARENT OF oWnd FONT oWnd:oFont\n[color=#FF0000:3s8s7c0h]// oDlg:SetBrush( oBrush )[/color:3s8s7c0h]\n\n[color=#0000FF:3s8s7c0h]ACTIVATE DIALOG oDlg ;\nON INIT oDlg:SetBrush( oBrush )[/color:3s8s7c0h]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "19:51", "topic": "Brush issue", "username": "ukoenig" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "I changed it to your style and now its even worse. \n\nI'll have to go back and see what else I can do.\n\nI think I'll revert it back to what I had originally with no problems.\n\nTim", "time": "21:35", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nI don't know, why the brush gets lost.\nAnother solution could be to define the brush LOCAL :\n\n\nFUNCTION Main()\nLOCAL [color=#FF0000:3jdj2881]oBrush2[/color:3jdj2881] \n\nc_path := GETCURDIR() \n\nDEFINE BRUSH [color=#FF0000:3jdj2881]oBrush2[/color:3jdj2881] FILENAME c_path + \"\\Images\\Stone.bmp\"\n\nDEFINE WINDOW oWnd TITLE \"Testing Brush\n...\n...\nDEFINE BUTTON oButt1 OF oBar FILE c_path + \"\\Logo\\16x16N.bmp\" ;\nMESSAGE \"Resource\" ; \nACTION D_RESOURCE([color=#FF0000:3jdj2881]oBrush2[/color:3jdj2881]) ;\nPROMPT \"Resource\" \n\nACTIVATE WINDOW oWnd MAXIMIZED \n\n[color=#FF0000:3jdj2881]oBrush2:End()[/color:3jdj2881]\n\nRETURN NIL\n\n// -------------------------\n\nFUNCTION D_RESOURCE([color=#FF0000:3jdj2881]oBrush2[/color:3jdj2881])\nLOCAL oDlg1\n\nDEFINE DIALOG oDlg1 RESOURCE \"Group\" TITLE \"Dialog-test\" PIXEL TRANSPARENT\n\nACTIVATE DIALOG oDlg1 CENTERED NOWAIT ;\nON INIT IIF( oBrush2:hBitmap != 0, oDlg1:SetBrush( [color=#FF0000:3jdj2881]oBrush2 [/color:3jdj2881]), MsgAlert( \"Brush not defined !\", \"ERROR\" ) )\n\nRETURN NIL\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "22:06", "topic": "Brush issue", "username": "ukoenig" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "That is what I'm doing right now. I'll see if that resolves the problem.\n\nTim", "time": "22:18", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI just use the BRUSH argument in the REDEFINE for a dialog created in a resource.", "time": "01:07", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"TimStone\":2ig95gpl]SKY is a bitmap ( clouds ) stored in my .res file that is linked to the program.[/quote:2ig95gpl]\n\nPlease open the \"Memory options\" of your bitmap (if you are using BRW) and remove the check from Discardable option.\n\nEMG", "time": "09:33", "topic": "Brush issue", "username": "Enrico Maria Giordano" } ]
Brush issue
[ { "date": "2012-07-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nSomewhere in your app, your brush counter is decreasing down to zero and so the brush is released.\n\nPlease place a log in your app when you return from a certain option and check the brush counter:\n\nLogFile( \"brushes.txt\", { oBrush:nCounter, \"exiting from function ...\" } )\n\nAs a workaround you could increase the counter: oBrush:nCount++ so it will not reach zero.", "time": "09:56", "topic": "Brush issue", "username": "Antonio Linares" } ]
Brush issue
[ { "date": "2012-07-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nHere is where it gets interesting, and very strange.\n\nI started monitoring oBrush:ncount. I initialize the public object oBrush, then I increment it 5 times, so nCount should be 6. I enter a function, so some work, and come out, and ncount is now 7. No where in that function do I increment oBrush. In fact, I don't reference it in the function, but it still gets incremented. This continues to happen anytime I go into that function.\n\nIn that .prg, whcih is rather complex, I create and use a different brush, olbrush which is locally declared for each dialog.\n\nThis is getting very strange.\n\nAlso, one of the clients having this issues is using an old XP Home edition computer ( in a network ) with a 600 mhz processor, 700 MB of RAM and a small hard drive. I'm wondering if he is \"hardware challenged\" and perhaps that is leading to these problems ?\n\nTim", "time": "17:02", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2e8sfbpb]So I declared the brush in the main( ) routine as a public object, and then refer to it with every dialog.\n[/quote:2e8sfbpb]\nThis should work correctly as expected.\nOne possibility is that you might have forgotten to delete the line \"RELEASE BRUSH oBrush\" in one or two of the modules. This is possible because earlier you had defined and released the brush in each module and now changed it to PUBLIC variable.\nYou may please search in all prg modules for \"RELEASE BRUSH\" and \":End()\" statements and make sure no such code is still left out there.\nPremature destruction of the brush might be happening only in cases where such module(s) is/are used by the users.", "time": "23:27", "topic": "Brush issue", "username": "nageswaragunupudi" } ]
Brush issue
[ { "date": "2012-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "It was all very confusing, but in the end, only two clients had problems, and they were with older machines. One was using XP Home. He replaced his computer with a new box and has no further problems.\n\nI made enough changes, and called the brush LOCAL to each routine, and that solved the last of the problems with the other user. He was also on an XP machine that had numerous problems.\n\nThanks ...\n\nTim", "time": "00:21", "topic": "Brush issue", "username": "TimStone" } ]
Brush issue
[ { "date": "2012-07-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim\n\nI am doing my best to try to stop using Static variables in all my routines .. even though many of my routines are single .prg with multiple Static Functions that would lend themselves to Static variables.\n\nI have found using MDI\\MDIchildren that if you open the same routine twice the Static variables blend together ( almost like public ) and in the second instance where you update Gets with cGet := \"this value\" oGet:ReFresh() .. that same field in the first instance gets updated.\n\nI have decided that I will use all Local variables and pass them by reference @cGet to other functions and routines just to MAKE SURE the memory space does not get co-mingled with any other function or event that may open in my application at the same time.\n\nRick Lipkin", "time": "13:51", "topic": "Brush issue", "username": "Rick Lipkin" } ]
Brush issue
[ { "date": "2012-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick - with respect, that sounds crazy, you should be using classes and objects for MDI\nEach of our MDI windows is a separate object of a \"form\" class, which automatically then ensures each form is totally independent of others", "time": "19:14", "topic": "Brush issue", "username": "peterk" } ]
Brush issue
[ { "date": "2006-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nIt looks like a great idea, but I'm having a problem with using the brush on the dialog.\n\nFirst, the sample builds fine.\n\nHowever, from the ppo file:\n\n oBrush := TBrush():New(,,,\"Sky\" )\n\n DEFINE DIALOG oDiw RESOURCE \"PRO2100\" BRUSH oBrush TRANSPARENT\n\nand xHarbour gives me the error Parse error at DIALOG. If I comment from BRUSH on with //, then it builds without a problem.\n\nAny thoughts on where I can look for the problem ? Thanks.\n\nTim", "time": "01:09", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2006-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nPlease check that you are using the new and modified dialog.ch that comes with FWH 2.7 February.", "time": "10:04", "topic": "Brush on Dialog", "username": "Antonio Linares" } ]
Brush on Dialog
[ { "date": "2006-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThe new FWH is installed by itself. I rename the old directory and thus the newest download is always just the set of files you included. There is no other copy of dialog.ch in play.\n\nActually, it is the TRANSPARENT or transparent that causes the problem. If I comment it out, then it will build and show the bitmap in the background, but the titles are not transparent.\n\nIf I add TRANSPARENT back in, it fails the compile.\n\nTim", "time": "18:07", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2006-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "I found another instance of DIALOG.CH in hiding ... its running fine now.\n\nWe have very warm and very very dry weather here right now and that doesn't always help the thought process.\n\nTim", "time": "18:53", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2006-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nglad to know you solved it", "time": "19:04", "topic": "Brush on Dialog", "username": "Antonio Linares" } ]
Brush on Dialog
[ { "date": "2006-02-12", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a screen with folders, and the background for the dialog will display the bitmap, but not the folders. Here is the code:\n\n // Create the dialog box for editing\n DEFINE BRUSH oBrush RESOURCE \"SKY\"\n DEFINE DIALOG oWdlg1 RESOURCE \"PRO1000\" BRUSH oBrush transparent OF oWnd FONT oWnd:oFont ;\n TITLE cTitle\n\n // Define the folder\n REDEFINE FOLDER oFld ID 356 OF oWdlg1 ;\n PROMPT \"&General\", \"&Parts\", \"&Labor\", \"&Recommendations\", \"&Totals\", \"&Job Cost\" ;\n DIALOGS \"PRO1010\", \"PRO1040\", \"PRO1045\", \"PRO1070\", \"PRO1100\", \"PRO1120\" ;\n ON CHANGE ( FoldChk( oFld, oDpa, oDla, oWrk ), oWdlg1:update() )\n\nAny ideas on this one ?\n\nTim", "time": "21:12", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2006-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nTry to remove the OF oWnd from here:\n\nDEFINE DIALOG oWdlg1 RESOURCE \"PRO1000\" BRUSH oBrush transparent FONT oWnd:oFont TITLE cTitle", "time": "01:00", "topic": "Brush on Dialog", "username": "Antonio Linares" } ]
Brush on Dialog
[ { "date": "2006-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "OK ... removing the reference does not help ... I tried again this morning because I experimented with that yesterday.\n\nI've looked for other files that might be in the path that could cause an issue. I don't see any, but perhaps you could suggest which ones I might need to evaluate.\n\nThe problem is consistent wherever I use folders in the program.\n\nTim", "time": "16:31", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2006-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nCould you please test samples\\TestFldb.prg and confirm if folders look ok with the background bitmap ? Thanks", "time": "23:04", "topic": "Brush on Dialog", "username": "Antonio Linares" } ]
Brush on Dialog
[ { "date": "2006-02-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I stated in my very first post in this thread that the sample builds fine.\n\nMy problem is that my code is basically identical to the sample, so it should also work fine.\n\nObviously something is missing here.\n\nWhich .prg and which .ch files might exist which would cause a problem. In other words, in which files do you have the class code for the folders ? From what might this feature inherit ?\n\nTim", "time": "05:01", "topic": "Brush on Dialog", "username": "TimStone" } ]
Brush on Dialog
[ { "date": "2023-02-08", "forum": "FiveWin for Harbour/xHarbour", "text": "I made \n\n[code=fw:2k36pgr6]<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> test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg,ofont<br /><span style=\"color: #00C800;\">local</span> oBrowse<br /><span style=\"color: #00C800;\">local</span> aData:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">local</span> oBrush1,oBrush2<br /><span style=\"color: #00C800;\">local</span> obtn<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush1  <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush2  <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-12</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont TRUEPIXEL ;<br />           <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"test\"</span> TRANSPARENT  <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_WHITE<br /><br /><br /><br />    @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> obtn  <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">96</span>,<span style=\"color: #000000;\">96</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg NOROUND <span style=\"color: #000000;\">2007</span><br /><br />    obtn:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span> |lInvert| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, oBrush2:<span style=\"color: #000000;\">hBrush</span>, oBrush1:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    obtn:<span style=\"color: #000000;\">disable</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 />   oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush1,oBrush2<br /><span style=\"color: #00C800;\">RETURN</span> NI<br /> </div>[/code:2k36pgr6]\n\n[img:2k36pgr6]https&#58;//i&#46;postimg&#46;cc/MKxfT9Fy/te&#46;png[/img:2k36pgr6]\n\nand it run ok as you can see only it show black lines \n\nHow I can make to add a color ? for a sample red ?\n\nI made \nDEFINE BRUSH oBrush1 STYLE HORIZONTAL COLOR CLR_RED it run ok on easy dialog \nbut I need on Tfolderex class and it not run ok\n I tried to change the color of border for a sample \n:nClrBorder := { ||nRgb(218,214,179) } but not work", "time": "10:55", "topic": "Brush on btnbmp with color", "username": "Silvio.Falconi" } ]
Brush on btnbmp with color
[ { "date": "2023-02-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Intente ahora:\n\n[code=fw:3mobqd8s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// \\SAMPLES\\SILFLDCR.PRG</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span>  <span style=\"color: #B900B9;\">//-> The Best...</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Espera_Alvarez<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oFld, oFont, aGrad, oBrush, oBrush1, oBrush2, oBtn<br />   <span style=\"color: #00C800;\">LOCAL</span> aBitmaps := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\f</span>acebook.bmp\"</span>, ;<br />                       <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\w</span>indows.bmp\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   SkinButtons<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.30</span>, CLR_WHITE, CLR_HBLUE <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, CLR_HBLUE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>ea.bmp\"</span> RESIZE <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush1 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">174</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush2 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-14</span> BOLD<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;\">\"- TFolderex - Testing -\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">350</span>          ;<br />      <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL RESIZABLE <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #B900B9;\">//GRADIENT aGrad</span><br /><br />   oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br />     <br />   @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> FOLDEREX oFld <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ADJUST</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Prenotazioni\"</span>, <span style=\"color: #ff0000;\">\"Pagamenti\"</span>     ;<br />      <span style=\"color: #0000ff;\">BITMAPS</span> aBitmaps                       ;<br />      TAB HEIGHT <span style=\"color: #000000;\">26</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_HGREEN TOP<br /><br />   oFld:<span style=\"color: #000000;\">aEnable</span> = <span style=\"color: #000000;\">&#123;</span> .T., .T., .F. <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #B900B9;\">// NOROUND / NOBORDER</span><br />   @ <span style=\"color: #000000;\">245</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />      FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\i</span>chat.bmp\"</span>                              ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Silvio\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"Wow\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"FiveWin\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"The best\"</span>   ;<br />      <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_CYAN, CLR_BLACK<br /><br />   oBtn:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span>| lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, oBrush2:<span style=\"color: #000000;\">hBrush</span>, oBrush1:<span style=\"color: #000000;\">hBrush</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />   oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oBrush1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oBrush2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span>, ;<br />            <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// fin / end</span><br /> </div>[/code:3mobqd8s]\n\nRegards, saludos.", "time": "16:05", "topic": "Brush on btnbmp with color", "username": "karinha" } ]
Brush on btnbmp with color
[ { "date": "2023-02-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio, part II:\n\n[code=fw:1lq9wll0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// \\SAMPLES\\SILFLDCR.PRG = Part II</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span> &nbsp;<span style=\"color: #B900B9;\">//-> The Best...</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Espera_Alvarez<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCBorder &nbsp; := 0xC38B2B <span style=\"color: #B900B9;\">//, nClrBorder := CLR_HRED //0xE6E6E6</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Olive Color</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nClrBorder := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.2</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.8</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oFld, oFont, aGrad, oBrush, oBrush1, oBrush2, oBtn<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aBitmaps := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\f</span>acebook.bmp\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\w</span>indows.bmp\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;SkinButtons<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.30</span>, CLR_WHITE, CLR_HBLUE <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, CLR_HBLUE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>ea.bmp\"</span> RESIZE <br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush1 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">174</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush2 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</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;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-14</span> BOLD<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"- TFolderex - Testing -\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">350</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL RESIZABLE <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #B900B9;\">//GRADIENT aGrad</span><br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> FOLDEREX oFld <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ADJUST</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Prenotazioni\"</span>, <span style=\"color: #ff0000;\">\"Pagamenti\"</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">BITMAPS</span> aBitmaps &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; TAB HEIGHT <span style=\"color: #000000;\">26</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_HGREEN TOP<br /><br />&nbsp; &nbsp;oFld:<span style=\"color: #000000;\">aEnable</span> = <span style=\"color: #000000;\">&#123;</span> .T., .T., .F. <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// NOROUND / NOBORDER</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">245</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\i</span>chat.bmp\"</span> NOBORDER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Silvio\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"Wow\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"FiveWin\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"The best\"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_CYAN, CLR_BLACK<br /><br />&nbsp; &nbsp;oBtn:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span>| lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, oBrush2:<span style=\"color: #000000;\">hBrush</span>, oBrush1:<span style=\"color: #000000;\">hBrush</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBtn<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nClrBorder</span> &nbsp;:= nClrBorder<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bColorMap</span> &nbsp; := <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">lBorder</span> := o:<span style=\"color: #000000;\">lMOver</span>, nCBorder <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lRound</span> &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrush1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrush2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// fin / end</span><br />&nbsp;</div>[/code:1lq9wll0]\n\nRegards, saludos.", "time": "17:40", "topic": "Brush on btnbmp with color", "username": "karinha" } ]
Brush on btnbmp with color
[ { "date": "2023-02-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":gvvw4bl6]Silvio, part II:\n\n[code=fw:gvvw4bl6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// \\SAMPLES\\SILFLDCR.PRG = Part II</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span>  <span style=\"color: #B900B9;\">//-> The Best...</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Espera_Alvarez<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> nCBorder   := 0xC38B2B <span style=\"color: #B900B9;\">//, nClrBorder := CLR_HRED //0xE6E6E6</span><br />   <span style=\"color: #B900B9;\">// Olive Color</span><br />   <span style=\"color: #00C800;\">LOCAL</span> nClrBorder := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.2</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                         <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.8</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oFld, oFont, aGrad, oBrush, oBrush1, oBrush2, oBtn<br />   <span style=\"color: #00C800;\">LOCAL</span> aBitmaps := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\f</span>acebook.bmp\"</span>, ;<br />                       <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\w</span>indows.bmp\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   SkinButtons<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.30</span>, CLR_WHITE, CLR_HBLUE <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, CLR_HBLUE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>ea.bmp\"</span> RESIZE <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush1 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">174</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush2 <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #0000ff;\">HORIZONTAL</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-14</span> BOLD<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;\">\"- TFolderex - Testing -\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">350</span>          ;<br />      <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL RESIZABLE <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #B900B9;\">//GRADIENT aGrad</span><br /><br />   oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br />     <br />   @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> FOLDEREX oFld <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ADJUST</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Prenotazioni\"</span>, <span style=\"color: #ff0000;\">\"Pagamenti\"</span>     ;<br />      <span style=\"color: #0000ff;\">BITMAPS</span> aBitmaps                       ;<br />      TAB HEIGHT <span style=\"color: #000000;\">26</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_HGREEN TOP<br /><br />   oFld:<span style=\"color: #000000;\">aEnable</span> = <span style=\"color: #000000;\">&#123;</span> .T., .T., .F. <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #B900B9;\">// NOROUND / NOBORDER</span><br />   @ <span style=\"color: #000000;\">245</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />      FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\a</span>lphabmp<span style=\"color: #000000;\">\\i</span>chat.bmp\"</span> NOBORDER                     ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Silvio\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"Wow\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"FiveWin\"</span> +CRLF+ <span style=\"color: #ff0000;\">\"The best\"</span>   ;<br />      <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_CYAN, CLR_BLACK<br /><br />   oBtn:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span>| lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, oBrush2:<span style=\"color: #000000;\">hBrush</span>, oBrush1:<span style=\"color: #000000;\">hBrush</span>  <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   WITH OBJECT oBtn<br />      :<span style=\"color: #000000;\">nClrBorder</span>  := nClrBorder<br />      :<span style=\"color: #000000;\">bColorMap</span>   := <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">lBorder</span> := o:<span style=\"color: #000000;\">lMOver</span>, nCBorder <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">lRound</span>      := .F.<br />   END<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />   oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oBrush1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oBrush2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SILVIO_MUESTRA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span>, ;<br />            <span style=\"color: #ff0000;\">\"Silvio, muestre ahora el que no funciona bien\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// fin / end</span><br /> </div>[/code:gvvw4bl6]\n\nRegards, saludos.[/quote:gvvw4bl6]\n\n\n[b:gvvw4bl6]sorry the border not is colorized but allways black[/b:gvvw4bl6] and nClrBorder want a codebock", "time": "10:43", "topic": "Brush on btnbmp with color", "username": "Silvio.Falconi" } ]
Brush on btnbmp with color
[ { "date": "2023-02-09", "forum": "FiveWin for Harbour/xHarbour", "text": "I liked this model.\n\n[url:boyld17z]https&#58;//imgur&#46;com/KufhpL0[/url:boyld17z]\n\n[img:boyld17z]https&#58;//i&#46;imgur&#46;com/KufhpL0&#46;png[/img:boyld17z]\n\nRegards, saludos.", "time": "14:50", "topic": "Brush on btnbmp with color", "username": "karinha" } ]
Brush on btnbmp with color
[ { "date": "2023-02-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hay algo errado.\n\n[url:2w46a1ja]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37314&hilit=bColorMap&start=30&sid=67223e9a38d3804f1ad19ff92a2151cc[/url:2w46a1ja]\n\nRegards, saludos.", "time": "15:48", "topic": "Brush on btnbmp with color", "username": "karinha" } ]
Brush on btnbmp with color
[ { "date": "2023-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":1ynygttf]Hay algo errado.\n\n[url:1ynygttf]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37314&hilit=bColorMap&start=30&sid=6015c3da5779407e49bc9c5077642f3f[/url:1ynygttf]\n\nRegards, saludos.[/quote:1ynygttf]\n\nI may have [b:1ynygttf]become colorblind[/b:1ynygttf] because I'm old man , but here I see the border color allways black\n\n[img:1ynygttf]https&#58;//i&#46;postimg&#46;cc/CKC4YVFZ/k&#46;jpg[/img:1ynygttf]\n\n@ oBrw:nBottom+1, oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007\n aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) }\n WITH OBJECT aBtnBrow[1]\n :nClrBorder := nRgb(218,214,179)// border color\n :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) } } } // image color\n END", "time": "11:34", "topic": "Brush on btnbmp with color", "username": "Silvio.Falconi" } ]
Brush on btnbmp with color
[ { "date": "2023-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Silvio.Falconi\":48zjlftj][quote=\"karinha\":48zjlftj]Hay algo errado.\n\n[url:48zjlftj]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37314&hilit=bColorMap&start=30&sid=638de723023508154ba6e48e483070fe[/url:48zjlftj]\n\nRegards, saludos.[/quote:48zjlftj]\n\nI may have [b:48zjlftj]become colorblind[/b:48zjlftj] because I'm old man , but here I see the border color allways black\n\n[img:48zjlftj]https&#58;//i&#46;postimg&#46;cc/CKC4YVFZ/k&#46;jpg[/img:48zjlftj]\n\n@ oBrw:nBottom+1, oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007\n aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) }\n WITH OBJECT aBtnBrow[1]\n :nClrBorder := nRgb(218,214,179)// border color\n :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) } } } // image color\n END[/quote:48zjlftj]\n\njajajaja, habla con el señor Nages.\n\nhahahaha, talk to Mister Nages.\n\nRegards, saludos.", "time": "15:38", "topic": "Brush on btnbmp with color", "username": "karinha" } ]
Brush on btnbmp with color
[ { "date": "2023-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":15xpi8jw][quote=\"Silvio.Falconi\":15xpi8jw][quote=\"karinha\":15xpi8jw]Hay algo errado.\n\n[url:15xpi8jw]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=37314&hilit=bColorMap&start=30&sid=35c3bc29202c293a91e12e63268c636b[/url:15xpi8jw]\n\nRegards, saludos.[/quote:15xpi8jw]\n\nI may have [b:15xpi8jw]become colorblind[/b:15xpi8jw] because I'm old man , but here I see the border color allways black\n\n[img:15xpi8jw]https&#58;//i&#46;postimg&#46;cc/CKC4YVFZ/k&#46;jpg[/img:15xpi8jw]\n\n@ oBrw:nBottom+1, oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007\n aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) }\n WITH OBJECT aBtnBrow[1]\n :nClrBorder := nRgb(218,214,179)// border color\n :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) } } } // image color\n END[/quote:15xpi8jw]\n\njajajaja, habla con el señor Nages.\n\nhahahaha, talk to Mister Nages.\n\nRegards, saludos.[/quote:15xpi8jw]\n\n\n[img:15xpi8jw]https&#58;//i&#46;postimg&#46;cc/cCkTDtXt/ok&#46;png[/img:15xpi8jw]\n\nResolved!!!\n[url:15xpi8jw]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=36937&start=0&hilit=xbrowse+border[/url:15xpi8jw]", "time": "12:13", "topic": "Brush on btnbmp with color", "username": "Silvio.Falconi" } ]
Brush on btnbmp with color
[ { "date": "2008-03-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI use xBrowse as a Color and Brush- Selector.\n\nIn the moment i write in a cell \nthe Style < Borland, Cross > and so on, or < Green, Blue >...\nThe yellow field in in 1. Array-Col is the default-selection\n\nIt would be nicer, to show the brush.\n\n[img:2185cagp]http&#58;//pflegeplus&#46;com/pictures/brushes&#46;jpg[/img:2185cagp]\n\nis it possible, to define a special brush for a cell ?\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> [/img]", "time": "11:26", "topic": "Brush or color for a special cell in xBrowse ?", "username": "ukoenig" } ]
Brush or color for a special cell in xBrowse ?
[ { "date": "2011-09-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nusing my new debuggingtool, I notice a problem \nwith TFoldex-brushes.\nThe top and left seems not to be exact adjusted in relation to the defined tabs. \n( tab-bottom / brush-top and folder-left / Brush-left )\nI think the problem is not the Brush, because I changed the top / left - startposition.\nThe painting-problem is still the same.\n\n[img:2ctekic3]http&#58;//www&#46;pflegeplus&#46;com/pictures/tfoldex1&#46;jpg[/img:2ctekic3]\n\nZoomed\n[img:2ctekic3]http&#58;//www&#46;pflegeplus&#46;com/pictures/tfoldex2&#46;jpg[/img:2ctekic3]\n\nFolder - Image-Background \n[code=fw:2ctekic3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />...<br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> FOLDEREX oFld1 <span style=\"color: #0000ff;\">OF</span> oDlgMain1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span>  <span style=\"color: #ff0000;\">\"Page &1\"</span>, <span style=\"color: #ff0000;\">\"Page &2\"</span>, <span style=\"color: #ff0000;\">\"Page &3\"</span>, <span style=\"color: #ff0000;\">\"&Exit\"</span>;<br /><span style=\"color: #0000ff;\">BITMAPS</span> aBitmaps;<br /><span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nOption == <span style=\"color: #000000;\">4</span>, oDlgMain1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Action defined to \"</span> + StrTran<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aPrompts</span><span style=\"color: #000000;\">&#91;</span> nOption <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #ff0000;\">\"&\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> TAB PaintTab<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Self</span>, nOption <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nOption == <span style=\"color: #000000;\">4</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Do you want exit??\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />   oDlgMain1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">&#40;</span> nOldOption <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #0000ff;\">TEXT</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nOption == ::<span style=\"color: #000000;\">nOption</span> .and. nOption == <span style=\"color: #000000;\">2</span>, CLR_YELLOW, CLR_BLACK <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />TOP OPTION <span style=\"color: #000000;\">2</span> ALIGN  AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_LEFT, AL_RIGHT<br /><br />oFld1:<span style=\"color: #000000;\">lTransparent</span> := .T.<br />oFld1:<span style=\"color: #000000;\">nFolderHeight</span> := <span style=\"color: #000000;\">30</span><br />oFld1:<span style=\"color: #000000;\">nSeparator</span> := <span style=\"color: #000000;\">5</span><br />oFld1:<span style=\"color: #000000;\">nRound</span> := <span style=\"color: #000000;\">10</span><br />oFld1:<span style=\"color: #000000;\">bClrText</span> := <span style=\"color: #000000;\">&#123;</span>| o, n | <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#125;</span><br />oFld1:<span style=\"color: #000000;\">oFont</span> := oFont<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #B900B9;\">// brush-define</span><br /><span style=\"color: #B900B9;\">// ---------------</span><br />F_BACKGRD<span style=\"color: #000000;\">&#40;</span> oFld1, cImageD <span style=\"color: #000000;\">&#41;</span><br />..<br />..<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> F_BACKGRD<span style=\"color: #000000;\">&#40;</span> oFld, cImage <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">LOCAL</span> n, oDlg, hDC<br /><br /><span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> oFld:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">&#41;</span> <br />     oDlg := oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><br />     oDlg:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| F_FULL<span style=\"color: #000000;\">&#40;</span>hDC,oDlg,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oDlg:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,cImage<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// ---------- Folder FULL Image --------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> F_FULL<span style=\"color: #000000;\">&#40;</span>  hDC, oDlg, nHeight, nWidth, cImage <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oImage<br /><br /><span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> cImage <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oImage FILENAME cImage<br />     aRect := GETCLIENTRECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />     oBrush := TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span>,,,,PalBmpDraw<span style=\"color: #000000;\">&#40;</span>hDC,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,oImage:<span style=\"color: #000000;\">hBitmap</span>,,nWidth,nHeight,, .T.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <br />     oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><span style=\"color: #00C800;\">ELSE</span><br />     MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"File : \"</span> + cImage + CRLF + ;<br />     <span style=\"color: #ff0000;\">\"does not exist\"</span> + CRLF + ; <br />     <span style=\"color: #ff0000;\">\"to create Background !\"</span>, <span style=\"color: #ff0000;\">\"ATTENTION\"</span> <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2ctekic3]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "14:38", "topic": "Brush-adjustment (top/left) needed for TFoldex ?", "username": "ukoenig" } ]
Brush-adjustment (top/left) needed for TFoldex ?
[ { "date": "2007-06-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos Fivewinners....\n\nAlguien sabe como, se le ocurre, tiene una idea de como.....\n\nPoner un texto de brush, no puede ser un bitmap, ya que ese texto deberia cambiar de acuerdo a una funcion externa, y no puedo generar tantos bitmaps como textos voy a necesitar.\n\nLo intente con lo siguiente en la Clausula ON INIT FONDO(ownd)\n\n//-----------------------------------\nFunction Fondo(oWnd)\nLocal Texto:=TraeTexto()\n\nFor x=1 TO 80\n @x,1 say Texto of oWnd Color CLR_HBLUE\nNext\n\nReturn Nil\n\n... pero queda sobre mi toolbar y un bitmap que tengo centrado en la window.\n\nCualquier ayuda sera bienvenida...\n\nGrax.\n\nDesde Chile\nAdolfo Lagos", "time": "17:03", "topic": "Brush... pero de TEXTO ?", "username": "Adolfo" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Intentalo con ExTextOut() desde el pintado del dialogo/Window (el :bPainted) antes de colocar el bitmap con PalBmpDraw()\nCalcula las coordenadas para poner la primera linea de texto por debajo de la toolbar.\nSuerte\nSaludos", "time": "17:33", "topic": "Brush... pero de TEXTO ?", "username": "antolin" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Adolfo\n\n ACTIVATE WINDOW oWnd MAXIMIZED ON PAINT ( _miTxt(hDC) ) \n\n\nfunction _miTxt( hDC )\n Local oFont\n DEFINE FONT oFont NAME \"ROMAN\" SIZE 0,-12 BOLD\n oFont:Activate( hDC )\n SetBkMode(hDC,1)\n SetTextColor(hDC,CLR_BLUE)\n DrawText(hDC,\"SysCtrl Software\",{10, 20, 500, 600}, nOr( 1, 4 ) )\nRETURN NIL\n\nEspero te sirva\n\nSaludos...", "time": "19:34", "topic": "Brush... pero de TEXTO ?", "username": "sysctrl2" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Antolin, Syscrtl\n\nGracias por sus respuestas, \n\nprimero... ala funcion mitxt es llamada cada vez que paso por encima de un icono, menu etc.\nSegundo, desgraciadamente no veo nada, trate de cambiar parametros como las 4 coordenadas, color, tipo y tamaño de la letra y nada.. asi que no pude hacerlo funcionar.\n\nSobre el ExtTextOut(), estoy rcien viendo como implementarlo.. les comunco si tuve exito\n\nDesde Chile\nAdolfo", "time": "17:45", "topic": "Brush... pero de TEXTO ?", "username": "Adolfo" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Supongo que sería algo asi:\n\nDEFINE FONTO oFont ...\nDEFINE Bmp ....\nDEFINE DIALOG oDlg ...\n...\noDlg:bPainted := { |hDc| MiPaintBrush(hDc,oFont,Bmp) }\n...\nACTIVATE DIALOG oDlg ...\n\n[b:38l5wlz1]FUNCTION MiPaintBrsuh(hDc,oFont,Bmp)[/b:38l5wlz1]\nLOCAL nX,nY\nLOCAL OldFont := SelectObject(hDC,oFont:hFont)\n\nFOR nX = ... TO ... STEP ... // FOR nHorzDesde to nHorzHasta STEP AnchoTexto + Separcion Horizontal entre Textos\nFOR nY = ... TO ... STEP ... // FOR nVertDesde to nVertHasta STEP AltoTexto +Separacion Vertical entre Lineas\nExTextOut(hDc,nX,nY,{nX,nY,nX+AnchoTexto,nY+AltoText},\"TEXTO A DESPLEGAR\")\nNEXT\nNEXT\nSelectObject(hDC,OldFont)\nPalDrawText(hDc,X..,Y..,Bmp:hBitmap, Bmp:hPalette,[AnchoBmp,AltoBmp] )\nRETURN NIL\n\nLo más tedioso es calcular las coordenadas. Paciencia.\nSaludos", "time": "22:26", "topic": "Brush... pero de TEXTO ?", "username": "antolin" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Tambien puedes probar con DrawText() o WSay() en lugar de ExTextOut() son muy similares. Con fondo transparente u Opaco, Etc... Consulta las ayudas del FWH para ver el uso de esas functiones.", "time": "22:31", "topic": "Brush... pero de TEXTO ?", "username": "antolin" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Adolfo,\n\nla funcion _MiTxt() solo puedes llarme una vez,\n\nutilizando una variable publica,,\n\npublic lMiTxt := .t. \n\n\nif lMiTxt\n _miTxt()\n lMiTxt := .f.\nendif", "time": "22:46", "topic": "Brush... pero de TEXTO ?", "username": "sysctrl2" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Adolfo, en mi posta anterior, con las prisas, he puesto [b:1bn86cu2]PalDrawText[/b:1bn86cu2](hDc,X..,Y..,Bmp:hBitmap, Bmp:hPalette,[AnchoBmp,AltoBmp] ) \nen lugar de [b:1bn86cu2]PalBmpDraw[/b:1bn86cu2](hDc,X..,Y..,Bmp:hBitmap, Bmp:hPalette,[AnchoBmp,AltoBmp] ) \n\nMil perdones", "time": "22:53", "topic": "Brush... pero de TEXTO ?", "username": "antolin" } ]
Brush... pero de TEXTO ?
[ { "date": "2007-07-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias a Todos\n\nLo he podido hacer mezclando ambas partes de las soluciones que me han enviado, pero en vez de usar ExtTextOut() he utilizado WSay() ya que me permite cambio de color de letra y fondo, y si la deseo transparente o no.\n\nGracias", "time": "16:29", "topic": "Brush... pero de TEXTO ?", "username": "Adolfo" } ]
Brush... pero de TEXTO ?
[ { "date": "2008-08-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nThe Brushtools are ready for download :\r\n\r\nYou can create combinations of Window and Dialog with :\r\nPictures, Gradients, Single Colors and Brushes.\r\n1.\r\nWith the Direction-Browser you can select Gradient Horizontal or Vertical.\r\n2.\r\nWith the Style-Browser you can change between Gradient or Single-Color.\r\n3.\r\nSlider for moving the 2. Gradient-color.\r\n4.\r\nFile-selection for Pictures ( all types / freeimage used )\r\n5.\r\nPreview-Window and Source-writer.\r\n6. \r\nSome nice Pictures included for Background-tests.\r\n\r\nThe next project will be a BUTTON-Creator for Fivewin. !!!\r\n------------------------------------------------------------------\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/Fw_Downloads/BRTools.zip\">http://www.pflegeplus.com/Fw_Downloads/BRTools.zip</a><!-- m -->\r\n\r\n( For Update 1b, see end of toppic !!!! )\r\n\r\nThe Main-Window\r\n--------------------\r\n\r\n[img:2u86su3s]http&#58;//www&#46;pflegeplus&#46;com/pictures/BRTools1&#46;jpg[/img:2u86su3s]\r\n\r\nThe Preview\r\n--------------\r\n\r\n[img:2u86su3s]http&#58;//www&#46;pflegeplus&#46;com/pictures/BRTools2&#46;jpg[/img:2u86su3s]\r\n\r\nThe Source\r\n-------------\r\n\r\n[img:2u86su3s]http&#58;//www&#46;pflegeplus&#46;com/pictures/BRTools3&#46;jpg[/img:2u86su3s]\r\n\r\nBest Regards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "21:08", "topic": "BrushTools Version 1b (Update) => Download and Info", "username": "ukoenig" } ]
BrushTools Version 1b (Update) => Download and Info
[ { "date": "2008-08-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nHere is the first Update 1b\r\nNow it is possible, to use your own brushes as well\r\n\r\n[img:1b8ojnqf]http&#58;//www&#46;pflegeplus&#46;com/pictures/Brtools4&#46;jpg[/img:1b8ojnqf]\r\n\r\nYou can choose Image or Brush as a Background.\r\nsome nice images / brushes are included.\r\n\r\n[img:1b8ojnqf]http&#58;//www&#46;pflegeplus&#46;com/pictures/Brtools5&#46;jpg[/img:1b8ojnqf]\r\n\r\nDownload :\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_downloads/brushtools2.zip\">http://www.pflegeplus.com/fw_downloads/brushtools2.zip</a><!-- m -->\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:58", "topic": "BrushTools Version 1b (Update) => Download and Info", "username": "ukoenig" } ]
BrushTools Version 1b (Update) => Download and Info
[ { "date": "2008-08-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nthere was a little bug in : 2. Dialog-color-selection\r\n\r\nIf somebody downloaded version 1.b\r\n\r\nit is fixed now.\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "16:34", "topic": "BrushTools Version 1b (Update) => Download and Info", "username": "ukoenig" } ]
BrushTools Version 1b (Update) => Download and Info
[ { "date": "2011-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nHow can I make group similar to this:\n[img:2w3oqsuo]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/group&#46;png[/img:2w3oqsuo]\n\nInside of group border has brush or color.\n\nAny Idea?\n\n\nKind regards,\nFrances", "time": "04:10", "topic": "Brushed Group Object", "username": "fraxzi" } ]
Brushed Group Object
[ { "date": "2011-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Frances,\n\n[img:2cibb8pz]http&#58;//www&#46;pflegeplus&#46;com/pictures/group1&#46;jpg[/img:2cibb8pz]\n\n[code=fw:2cibb8pz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">620</span>, <span style=\"color: #000000;\">900</span> <span style=\"color: #0000ff;\">pixel</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Group-test\"</span> TRANSPARENT<br /><br />oGroup:=TGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #ff0000;\">\"Label1\"</span>, oDlg, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>,.F. , .F. , <span style=\"color: #00C800;\">NIL</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;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> GROUP_BRUSH<span style=\"color: #000000;\">&#40;</span>oGroup<span style=\"color: #000000;\">&#41;</span>, ;<br />             GradBrush<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16314573</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                                   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <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 /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> GROUP_BRUSH<span style=\"color: #000000;\">&#40;</span>oGroup<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oBrush<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE cGrp_Brush<br /><br />SET <span style=\"color: #0000ff;\">BRUSH</span> <span style=\"color: #0000ff;\">OF</span> oGroup <span style=\"color: #0000ff;\">TO</span> oBrush<br />oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> .T.<br /><br /><span style=\"color: #B900B9;\">// -------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GradBrush<span style=\"color: #000000;\">&#40;</span> oDlg, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />      hDC = CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmp = CreateCompatibleBitMap<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmpOld = SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />      GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br />      DeleteObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />      oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CreatePatternBrush<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span> <br />      SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><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:2cibb8pz]\n\nI tested a Image with Top and Left = 0 :\n\noGroup:=TGroup():New( [color=#FF0000:2cibb8pz]0, 0[/color:2cibb8pz], 15, 50, \"Label1\", oDlg, NIL, NIL,.F. , .F. , NIL )\n\n[img:2cibb8pz]http&#58;//www&#46;pflegeplus&#46;com/pictures/group2&#46;jpg[/img:2cibb8pz]\n\nBut there is a Problem with the Image-adjustment ( top and left )\n\noGroup:=TGroup():New( [color=#FF0000:2cibb8pz]5, 5[/color:2cibb8pz], 15, 50, \"Label1\", oDlg, NIL, NIL,.F. , .F. , NIL )\n\n[color=#0000FF:2cibb8pz]STATIC FUNCTION GROUP_TEST(oGroup)\nlocal oBrush, oTmp\nDEFINE IMAGE oTmp FILENAME c_path + \"\\Bitmaps\\Fantasy2.jpg\" \noBrush := TBrush():new( ,,,, ResizeBmp( oTmp:hBitmap, oGroup:nWidth, oGroup:nHeight, .T. ) ) \nSET BRUSH OF oGroup TO oBrush\noTmp:End()\nRELEASE BRUSH oBrush\nRETURN .T.[/color:2cibb8pz]\n\n[img:2cibb8pz]http&#58;//www&#46;pflegeplus&#46;com/pictures/group3&#46;jpg[/img:2cibb8pz]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "10:21", "topic": "Brushed Group Object", "username": "ukoenig" } ]
Brushed Group Object
[ { "date": "2011-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola,\n\ncould be enough for you, some think like this\n\n[url:35focq8i]http&#58;//imageshack&#46;us/photo/my-images/231/rgroup&#46;gif/[/url:35focq8i]\n\nregards\n\nMarcelo", "time": "19:53", "topic": "Brushed Group Object", "username": "Marcelo Via Giglio" } ]
Brushed Group Object
[ { "date": "2011-05-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nhere is the source code and header file\n[code=fw:2v73ypz9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*<br />   Copyright 1999 Jos‚ Lal¡n y Ferreiro <dezac@corevia.com><br /><br />   -[History]-----------------------------------------------------------<br />   Date           Author              Changes<br />   ---------------------------------------------------------------------<br />   Oct 26, 1999   Jos‚ Lal¡n          + Initial release<br />   Oct 27, 1999   Jos‚ Lal¡n          ! Minor changes<br />   Apr 17, 2000   Jos‚ Lal¡n          + Added New() method<br />   Apr 17, 2000   Jos‚ Lal¡n          + Added ::aCtrls var<br />   Feb 03, 2000   Jos‚ Lal¡n          ! Changed Paint() method to draw<br />                                        the caption using ::oDlg:oFont or<br />                                        ::oFont as requested by Andi Jahja<br />   Feb 04, 2000   Jos‚ Lal¡n          ! Improved caption drawing<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Constant.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"rgroup.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> TRANSPARENT   <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#define</span> OPAQUE        <span style=\"color: #000000;\">2</span><br /><br />#ifdef __XPP__<br />  <span style=\"color: #00D7D7;\">#define</span> <span style=\"color: #00C800;\">Super</span>   ::<span style=\"color: #000000;\">TGroup</span><br />  <span style=\"color: #00D7D7;\">#define</span> <span style=\"color: #00C800;\">New</span>     _New<br />#endif<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</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 />  <span style=\"color: #00C800;\">LOCAL</span> oFnt<br />  <span style=\"color: #00C800;\">LOCAL</span> g<br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span><br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test\"</span> <span style=\"color: #0000ff;\">FONT</span> oFnt<br /><br />  TRndGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>,  <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">4</span>,  <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"First\"</span>,  oDlg, CLR_GREEN, CLR_BLACK <span style=\"color: #000000;\">&#41;</span><br />  TRndGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #ff0000;\">\"Second\"</span>, oDlg, CLR_WHITE, CLR_BLUE,,,,,,,,,,.T., <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">20</span> ROUNDGROUP <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">28</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"TEST\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_GREEN, CLR_GREEN, CLR_WHITE  ROUNDLABEL <br /><br />@ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">5</span> ROUNDGROUP <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"TEST\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">color</span> CLR_GREEN, CLR_GREEN, CLR_BLUE GRADIENT CLR_BLUE, CLR_RED<br /><br />@ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">12</span> ROUNDGROUP g <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"TEST\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">color</span> CLR_BLUE, CLR_BLUE, CLR_WHITE GRADIENT CLR_BLUE, CLR_RED ROUNDLABEL <span style=\"color: #000000;\">5</span><br /><br />@ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">22</span> ROUNDGROUP <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"TEST\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">color</span> CLR_GRAY, CLR_GRAY, CLR_BLUE GRADIENT CLR_GRAY, CLR_WHITE<br /><br />  <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />  oFnt:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">CLASS</span> TRndGroup <span style=\"color: #0000ff;\">FROM</span> TGroup<br /><br />   <span style=\"color: #00C800;\">DATA</span> nClrTitle<br />   <span style=\"color: #00C800;\">DATA</span> nElliWidth<br />   <span style=\"color: #00C800;\">DATA</span> nElliHeight<br />   <span style=\"color: #00C800;\">DATA</span> nClrGrad1<br />   <span style=\"color: #00C800;\">DATA</span> nClrGrad2<br />   <span style=\"color: #00C800;\">DATA</span> lRoundLabel <br />   <span style=\"color: #00C800;\">DATA</span> nRoundLabel <br /><br />   <span style=\"color: #00C800;\">DATA</span> aCtrls AS ARRAY <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nBottom, nRight, cLabel, oWnd, nClrText, ;<br />               nClrPane, lPixel, lDesign, nWidth, nHeight, nClrTitle, ;<br />               aCtrls, oFont, nClrGrad1, nClrGrad2, lRoundLabel, nRoundLabel <span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br /><br />   <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, cLabel, oWnd, nClrText, nClrPane, nWidth, ;<br />                    nHeight, nClrTitle, aCtrls, oFont, nClrGrad1, nClrGrad2, lRoundLabel, nRoundLabel <span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br /><br />   <span style=\"color: #00C800;\">METHOD</span> Initiate<span style=\"color: #000000;\">&#40;</span> hDlg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">Initiate</span><span style=\"color: #000000;\">&#40;</span> hDlg <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">Display</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> ::<span style=\"color: #000000;\">BeginPaint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">EndPaint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">METHOD</span> DrawCtrls<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nBottom, nRight, cLabel, oWnd, ;<br />            nClrText, nClrPane, lPixel, lDesign, nWidth, ;<br />            nHeight, nClrTitle, aCtrls, oFont, nClrGrad1, nClrGrad2, lRoundLabel, nRoundLabel <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TRndGroup<br /><br />  <span style=\"color: #00C800;\">DEFAULT</span> nWidth    := <span style=\"color: #000000;\">18</span>, ;<br />          nHeight   := <span style=\"color: #000000;\">18</span>, ;<br />          nClrText  := RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />          nClrPane  := RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />          nClrTitle := nClrText, ;<br />          aCtrls    := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>,;<br />      lRoundLabel := .F. ,;<br />      nRoundLabel := <span style=\"color: #000000;\">2</span> <br /><br />  <span style=\"color: #B900B9;\">/*  NOTE:<br />      We don't pass the nClrText nor nClrPane value to the super class<br />      because it will disable the round corners effect. [jlalin]<br />  */</span><br />  <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nBottom, nRight, cLabel, oWnd, , , ;<br />              lPixel, lDesign,,.T. <span style=\"color: #000000;\">&#41;</span><br /><br />  ::<span style=\"color: #000000;\">nClrText</span>    := nClrText<br />  ::<span style=\"color: #000000;\">nClrPane</span>    := nClrPane<br />  ::<span style=\"color: #000000;\">nClrTitle</span>   := nClrTitle<br />  ::<span style=\"color: #000000;\">nElliWidth</span>  := nWidth<br />  ::<span style=\"color: #000000;\">nElliHeight</span> := nHeight<br />  ::<span style=\"color: #000000;\">aCtrls</span>      := aCtrls<br />  ::<span style=\"color: #000000;\">oFont</span>       := oFont<br /><br />  ::<span style=\"color: #000000;\">nClrGrad1</span>   := nClrGrad1<br />  ::<span style=\"color: #000000;\">nClrGrad2</span>   := nClrGrad2<br />  ::<span style=\"color: #000000;\">lRoundLabel</span> := lRoundLabel<br />  ::<span style=\"color: #000000;\">nRoundLabel</span> := nRoundLabel<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, cLabel, oWnd, nClrText, nClrPane, ;<br />                 nWidth, nHeight, nClrTitle, aCtrls, oFont, nClrGrad1, nClrGrad2, lRoundLabel, nRoundLabel <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TRndGroup<br /><br />  <span style=\"color: #00C800;\">DEFAULT</span> nWidth    := <span style=\"color: #000000;\">18</span>, ;<br />          nHeight   := <span style=\"color: #000000;\">18</span>, ;<br />          nClrText  := RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />          nClrPane  := RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">157</span>, <span style=\"color: #000000;\">132</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />          nClrTitle := nClrText, ;<br />          aCtrls    := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> ,;<br />      lRoundLabel := .F.,;<br />      nRoundLabel := <span style=\"color: #000000;\">2</span><br /><br />  <span style=\"color: #B900B9;\">/*  NOTE:<br />      We don't pass the nClrText nor nClrPane value to the super class<br />      because it will disable the round corners effect. [jlalin]<br />  */</span><br /><br />  <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nId, cLabel, oWnd,,,,.T. <span style=\"color: #000000;\">&#41;</span><br /><br />  ::<span style=\"color: #000000;\">nClrText</span>    := nClrText<br />  ::<span style=\"color: #000000;\">nClrPane</span>    := nClrPane<br />  ::<span style=\"color: #000000;\">nClrTitle</span>   := nClrTitle<br />  ::<span style=\"color: #000000;\">nElliWidth</span>  := nWidth<br />  ::<span style=\"color: #000000;\">nElliHeight</span> := nHeight<br />  ::<span style=\"color: #000000;\">aCtrls</span>      := aCtrls<br />  ::<span style=\"color: #000000;\">oFont</span>       := oFont<br /><br />  ::<span style=\"color: #000000;\">nClrGrad1</span>   := nClrGrad1<br />  ::<span style=\"color: #000000;\">nClrGrad2</span>   := nClrGrad2<br />  ::<span style=\"color: #000000;\">lRoundLabel</span> := lRoundLabel<br />  ::<span style=\"color: #000000;\">nRoundLabel</span> := nRoundLabel<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TRndGroup<br /><br />  <span style=\"color: #00C800;\">LOCAL</span> hDC := ::<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> hBrush, hPen<br />  <span style=\"color: #00C800;\">LOCAL</span> hOldBrush, hOldPen<br />  <span style=\"color: #00C800;\">LOCAL</span> nOldMode, nOldClr, nOldBk<br />  <span style=\"color: #00C800;\">LOCAL</span> hOldFont<br />  <span style=\"color: #00C800;\">LOCAL</span> nHeight<br /><br />  hBrush  := CreateSolidBrush<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">&#41;</span><br />  hPen    := CreatePen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nClrText</span> <span style=\"color: #000000;\">&#41;</span><br /><br />  hOldBrush := SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBrush <span style=\"color: #000000;\">&#41;</span><br />  hOldPen   := SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hPen<span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">nClrGrad1</span> != <span style=\"color: #00C800;\">NIL</span> .AND. ::<span style=\"color: #000000;\">nClrGrad2</span> != <span style=\"color: #00C800;\">NIL</span><br />     GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">4</span> + <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, ::<span style=\"color: #000000;\">nClrGrad1</span>, ::<span style=\"color: #000000;\">nClrGrad2</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">ELSE</span><br />     RoundRect<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">4</span> + <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nElliHeight</span>, ::<span style=\"color: #000000;\">nElliWidth</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">ENDIF</span><br /><br />  <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">&#41;</span><br />    hOldFont  := SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, ;<br />      <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oFont</span> == <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">hFont</span>, ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">hFont</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    nOldMode  := SetBkMode<span style=\"color: #000000;\">&#40;</span> hDC, TRANSPARENT <span style=\"color: #000000;\">&#41;</span><br />    nOldClr   := SetTextColor<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">nClrTitle</span> <span style=\"color: #000000;\">&#41;</span><br />    nOldBk    := SetBkColor<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">&#41;</span><br />    nHeight   := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oFont</span> == <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #000000;\">12</span>, ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">lRoundLabel</span><br />       RoundRect<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nElliWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">3</span> - nHeight + <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">8</span> + <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nElliWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + GetTextWidth<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">5</span> + <span style=\"color: #000000;\">9</span>, ::<span style=\"color: #000000;\">nRoundLabel</span>, ::<span style=\"color: #000000;\">nRoundLabel</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ELSE</span><br />       Rectangle<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">3</span> - nHeight + <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nElliWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">5</span> + <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">8</span> + <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nElliWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + GetTextWidth<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    TextOut<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">3</span> - nHeight + <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">5</span> + <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nElliWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hOldFont <span style=\"color: #000000;\">&#41;</span><br />    SetTextColor<span style=\"color: #000000;\">&#40;</span> hDC, nOldClr <span style=\"color: #000000;\">&#41;</span><br />    SetBkColor<span style=\"color: #000000;\">&#40;</span> hDC, nOldBk <span style=\"color: #000000;\">&#41;</span><br />    SetBkMode<span style=\"color: #000000;\">&#40;</span> hDC, nOldMode <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br />  SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hOldPen <span style=\"color: #000000;\">&#41;</span><br />  DeleteObject<span style=\"color: #000000;\">&#40;</span> hPen <span style=\"color: #000000;\">&#41;</span><br /><br />  SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hOldBrush <span style=\"color: #000000;\">&#41;</span><br />  DeleteObject<span style=\"color: #000000;\">&#40;</span> hBrush <span style=\"color: #000000;\">&#41;</span><br /><br />  ::<span style=\"color: #000000;\">DrawCtrls</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  ::<span style=\"color: #000000;\">ReleaseDC</span><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;\">METHOD</span> DrawCtrls<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TRndGroup<br /><br />  <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aCtrls</span> <span style=\"color: #000000;\">&#41;</span><br />    aEval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aCtrls</span>, <span style=\"color: #000000;\">&#123;</span>|oCtrl| ;<br />                        <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oCtrl != <span style=\"color: #00C800;\">NIL</span>, ;<br />                            <span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nClrTitle</span>, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                              oCtrl:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                          <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <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 /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span></div>[/code:2v73ypz9]\n\nHeader file\n\n[code=fw:2v73ypz9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*<br />   Copyright 1999 Jos‚ Lal¡n y Ferreiro <dezac@corevia.com><br /><br />   -[History]-----------------------------------------------------------<br />   Date           Author              Changes<br />   ---------------------------------------------------------------------<br />   Oct 27, 1999   Jos‚ Lal¡n          + Initial release<br />   Apr 17, 2000   Jos‚ Lal¡n          + Added @ ... syntax<br />*/</span><br /><br />#ifndef _ROUNDGROUP_CH<br /><span style=\"color: #00D7D7;\">#define</span> _ROUNDGROUP_CH<br /><br /><span style=\"color: #B900B9;\">/*----------------------------------------------------------------------------//<br />!short: ROUNDGROUP  */</span><br /><br />#xcommand @ <nTop>, <nLeft> ROUNDGROUP <span style=\"color: #000000;\">&#91;</span><oGroup> <span style=\"color: #0000ff;\">TO</span><span style=\"color: #000000;\">&#93;</span> <nBottom>, <nRight > ;<br />             <span style=\"color: #000000;\">&#91;</span> <label:<span style=\"color: #000000;\">LABEL</span>,PROMPT> <cLabel> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">OF</span> <oWnd> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">COLOR</span> <nClrFore>, <nClrBack>, <nClrTitle> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <lPixel: <span style=\"color: #000000;\">PIXEL</span>> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <lDesign: <span style=\"color: #000000;\">DESIGN</span>> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ROUND</span> WIDTH <nElliWidth> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ROUND</span> HEIGHT <nElliHeight> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> CONTROLS <aCtrls> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">FONT</span> <oFont> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> GRADIENT <nClrGrad1>,<nClrGrad2> <span style=\"color: #000000;\">&#93;</span>;<br />         <span style=\"color: #000000;\">&#91;</span> <lRoundLabel: <span style=\"color: #000000;\">ROUNDLABEL</span>> <span style=\"color: #000000;\">&#91;</span><nRoundLabel><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ;<br />       => ;<br />          <span style=\"color: #000000;\">&#91;</span> <oGroup> := <span style=\"color: #000000;\">&#93;</span> TRndGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <nTop>, <nLeft>, <nBottom>, <nRight>,;<br />             <cLabel>, <oWnd>, <nClrFore>, <nClrBack>, <.lPixel.>,;<br />             <span style=\"color: #000000;\">&#91;</span><.lDesign.><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nElliWidth><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nElliHeight><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nClrTitle><span style=\"color: #000000;\">&#93;</span>, ;<br />             <span style=\"color: #000000;\">&#91;</span><aCtrls><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><oFont><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nClrGrad1><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nClrGrad2><span style=\"color: #000000;\">&#93;</span>, <.lRoundLabel.>,<span style=\"color: #000000;\">&#91;</span><nRoundLabel><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />#xcommand <span style=\"color: #0000ff;\">REDEFINE</span> ROUNDGROUP <span style=\"color: #000000;\">&#91;</span> <oGroup> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <label:<span style=\"color: #000000;\">LABEL</span>,PROMPT> <cLabel> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ID</span> <nId> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <of: <span style=\"color: #0000ff;\">OF</span>, <span style=\"color: #0000ff;\">WINDOW</span>, DIALOG> <oWnd> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">COLOR</span> <nClrFore>, <nClrBack> <span style=\"color: #000000;\">&#91;</span>, <nClrTitle> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ROUND</span> WIDTH <nElliWidth> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ROUND</span> HEIGHT <nElliHeight> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> CONTROLS <aCtrls> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">FONT</span> <oFont> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> GRADIENT <nClrGrad1>,<nClrGrad2> <span style=\"color: #000000;\">&#93;</span>;  <br />         <span style=\"color: #000000;\">&#91;</span> <lRoundLabel: <span style=\"color: #000000;\">ROUNDLABEL</span>> <span style=\"color: #000000;\">&#91;</span><nRoundLabel><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ;<br />       => ;<br />          <span style=\"color: #000000;\">&#91;</span> <oGroup> := <span style=\"color: #000000;\">&#93;</span> TRndGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> <nId>, <cLabel>, <oWnd>,;<br />             <nClrFore>, <nClrBack>, <span style=\"color: #000000;\">&#91;</span><nElliWidth><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nElliHeight><span style=\"color: #000000;\">&#93;</span>, ;<br />             <span style=\"color: #000000;\">&#91;</span><nClrTitle><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><aCtrls><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><oFont><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nClrGrad1><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span><nClrGrad2><span style=\"color: #000000;\">&#93;</span>, <.lRoundLabel.>,<span style=\"color: #000000;\">&#91;</span><nRoundLabel><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />#endif <span style=\"color: #B900B9;\">//_ROUNDGROUP_CH</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span><br /><br /> </div>[/code:2v73ypz9]", "time": "20:45", "topic": "Brushed Group Object", "username": "Marcelo Via Giglio" } ]
Brushed Group Object
[ { "date": "2011-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr. Uwe and Mr. Marcelo,\n\nThank you so much for the great help.\n\n\nKind regards,\nFrances", "time": "01:21", "topic": "Brushed Group Object", "username": "fraxzi" } ]
Brushed Group Object
[ { "date": "2011-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[b:3ijv2pp6]I added Gradient-options to the Class :[/b:3ijv2pp6]\n\nTRndGroup():New( ;\n30, ;\t\t\t// 1 nTop\n30, ;\t\t\t// 2 nLeft\n150, ;\t\t// 3 nBottom\n200, ;\t\t// 4 nRight\n\" Title \", ;\t// 5 Text\noGroup, ;\t\t// 6 Object\n16314573, ;\t// 7 nText-color\n0, ;\t\t\t// 8 nBackground\n.T., ;\t\t\t// 9 Pixel\n, ;\t\t\t// 10 lDesign\n170, ;\t\t// 11 nWidth\n120, ;\t\t// 12 nHeight\n, ;\t\t\t// 13 nColor-Title\n, ;\t\t\t// 14 aCtrls\noGrpFont, ;\t// 15 Font\t\n128, ;\t\t// 16 Grad 1 14853684\n16314573, ;\t// 17 Grad 2\n.T., ;\t\t\t// 18 Round\n10, ;\t\t\t// 19 Circle\n[color=#FF0000:3ijv2pp6].T., ;\t\t\t// 20 lGradient-direction\n0.5 )\t\t\t// 21 nGradient-position[/color:3ijv2pp6]\n\n...\n...\n[color=#FF0000:3ijv2pp6].F., ;\t\t\t// 20 lGradient-direction\n0.2 )\t\t\t// 21 nGradient-position[/color:3ijv2pp6]\n\n[img:3ijv2pp6]http&#58;//www&#46;pflegeplus&#46;com/pictures/group4&#46;jpg[/img:3ijv2pp6]\n\nIF ::nClrGrad1 != NIL .AND. ::nClrGrad2 != NIL\n\tGradientFill( hDC, 4 + 3, 0, ::nHeight, ::nWidth, ;\n{ { [color=#FF0000:3ijv2pp6]::nPos[/color:3ijv2pp6], ::nClrGrad1, ::nClrGrad2 }, { [color=#FF0000:3ijv2pp6]::nPos[/color:3ijv2pp6], ::nClrGrad2, ::nClrGrad1 } }, [color=#FF0000:3ijv2pp6]::lDirect [/color:3ijv2pp6])\nELSE\n\tRoundRect( hDC, 4 + 3, 0, ::nHeight, ::nWidth, ::nElliHeight, ::nElliWidth )\nENDIF\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:33", "topic": "Brushed Group Object", "username": "ukoenig" } ]
Brushed Group Object
[ { "date": "2020-06-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Good morning, Antonio,\n\nTo finish solving the problem of xBrowse and SQLRDD, since Nages doesn't answer the messages, I need to be able to move the vertical scroll bar.\n\nHowever, oBrw:VGoBottom() and SendMsg( VK_DOWN ) do not work. They don't do anything.\n\nHere is an example.\n\n[code=fw:38j81i50]<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;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbcompat.ch\"</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   use c:\\fwh\\samples\\customer<br /><br />   TESTBROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   dbcloseall<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />   quit<br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">function</span> TESTBROWSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg<br />   <span style=\"color: #00C800;\">local</span> oBrw<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 xBrowse \"</span> + cvaltochar<span style=\"color: #000000;\">&#40;</span>datetime<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">24</span>,<span style=\"color: #000000;\">79</span><br /><br /><br />    @ <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">xbrowse</span> oBrw datasource <span style=\"color: #0000ff;\">alias</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">of</span> oDlg fastedit <span style=\"color: #0000ff;\">autocols</span> autosort ;<br />    <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />    oBrw:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">25</span><br /><br /><br />    oBrw:<span style=\"color: #000000;\">lAutoappend</span> := .t.<br />    oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><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;\">on</span> <span style=\"color: #0000ff;\">init</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">VGoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">oVScroll</span>:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> VK_DOWN <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 /> </div>[/code:38j81i50]\n\nI'd appreciate your help, since I've been requesting for the fix since December and the customers are extremely pissed off.\n\nThank you very much. Greetings", "time": "09:35", "topic": "Brw:VGoBottom() does not work in xBrowse [SOLVED]", "username": "MOISES" } ]
Brw:VGoBottom() does not work in xBrowse [SOLVED]
[ { "date": "2020-06-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Just define the needed position from inside the used DBF\nand not from a defined xBrowse row-position like :\n\nactivate dialog oDlg centered ;\non init DBGOBOTTOM() // seek or anything else\n\n// on init ( oBrw:VGoBottom(), oBrw:oVScroll:SendMsg( VK_DOWN ) )\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:16", "topic": "Brw:VGoBottom() does not work in xBrowse [SOLVED]", "username": "ukoenig" } ]
Brw:VGoBottom() does not work in xBrowse [SOLVED]
[ { "date": "2020-06-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nThank you for your reply.\n\nBut I need to force such behaviour in order to get xBrowse work under SQLRDD, as this is the failing issue.", "time": "11:19", "topic": "Brw:VGoBottom() does not work in xBrowse [SOLVED]", "username": "MOISES" } ]
Brw:VGoBottom() does not work in xBrowse [SOLVED]
[ { "date": "2020-06-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks to Cristobal´s help, this is the fix:\n\n[code=fw:p8rykiga]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">METHOD</span> KeyCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TXBrowse<br /><br />   <span style=\"color: #00C800;\">TRY</span><br />      <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aFilter</span> <span style=\"color: #000000;\">&#41;</span><br />         ::<span style=\"color: #000000;\">nLen</span>   := Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bKeyCount</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">else</span><br />         ::<span style=\"color: #000000;\">nLen</span>   := Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aFilter</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />      ::<span style=\"color: #000000;\">lClosed</span>   := .f.<br /><br />   CATCH<br />      ::<span style=\"color: #000000;\">nLen</span>      := <span style=\"color: #000000;\">0</span><br />      ::<span style=\"color: #000000;\">lClosed</span>   := .t.<br />   END<br /><br /><br />   <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oVScroll</span> != <span style=\"color: #00C800;\">nil</span><br />      ::<span style=\"color: #000000;\">VSetRange</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">if</span> !::<span style=\"color: #000000;\">lSqlRDD</span><br />        ::<span style=\"color: #000000;\">VUpdatePos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> ::<span style=\"color: #000000;\">nLen</span><br /><br /><br /> </div>[/code:p8rykiga]", "time": "13:14", "topic": "Brw:VGoBottom() does not work in xBrowse [SOLVED]", "username": "MOISES" } ]
Brw:VGoBottom() does not work in xBrowse [SOLVED]
[ { "date": "2020-06-11", "forum": "FiveWin for Harbour/xHarbour", "text": "There is no need to use this method directly.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=38745&p=233158#p233158\">viewtopic.php?f=3&t=38745&p=233158#p233158</a><!-- l -->", "time": "18:40", "topic": "Brw:VGoBottom() does not work in xBrowse [SOLVED]", "username": "nageswaragunupudi" } ]
Brw:VGoBottom() does not work in xBrowse [SOLVED]
[ { "date": "2021-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nWhen you hover the cursor over the BtnBtn button, the backlight turns on. Can this be banned ?", "time": "11:19", "topic": "BtnBMP", "username": "Natter" } ]
BtnBMP
[ { "date": "2021-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Modify bClrGrad property :\n\n[code=fw:njjfzlr4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBtn:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span> |lInvert| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lInvert, nARGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, nARGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:njjfzlr4]", "time": "19:26", "topic": "BtnBMP", "username": "AngelSalom" } ]
BtnBMP
[ { "date": "2021-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks !", "time": "20:05", "topic": "BtnBMP", "username": "Natter" } ]
BtnBMP
[ { "date": "2007-12-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI'm getting the error below at a customers site:\n\nApplication\n===========\n Path and name: S:\\winiws5\\Allocinv.EXE (32 bits)\n Size: 2,813,952 bytes\n Time from start: 0 hours 0 mins 11 secs \n Error occurred at: 06/12/2007, 09:24:36\n Error description: Error BASE/1068 Argument error: array access\n Args:\n [ 1] = N 1007158280\n [ 2] = N 1\n\nStack Calls\n===========\n Called from: BTNBMP.PRG => TBTNBMP:LOADBITMAPS(0)\n Called from: BTNBMP.PRG => TBTNBMP:NEWBAR(0)\n Called from: COMMON.PRG => CONFPOPBAR(3228)\n Called from: POPUP.PRG => (b)CUST_LIST(292)\n Called from: DIALOG.PRG => TDIALOG:INITIATE(682)\n Called from: DIALOG.PRG => TDIALOG:HANDLEEVENT(832)\n Called from: => DIALOGBOX(0)\n Called from: DIALOG.PRG => TDIALOG:ACTIVATE(262)\n Called from: POPUP.PRG => CUST_LIST(292)\n Called from: REPRANGE.PRG => RANGEPOP(156)\n Called from: REPRANGE.PRG => (b)RANGE_SEL(111)\n Called from: BTNBMP.PRG => TBTNBMP:CLICK(0)\n Called from: BTNBMP.PRG => TBTNBMP:LBUTTONUP(0)\n Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)\n Called from: CONTROL.PRG => TBTNBMP:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => DIALOGBOX(0)\n Called from: DIALOG.PRG => TDIALOG:ACTIVATE(262)\n Called from: REPRANGE.PRG => RANGE_SEL(123)\n Called from: => GETRANGES(276)\n Called from: ALLOCINV.PRG => MAIN(85)\n\nThis error occurs when a dialog box is opened for the second time. Also, we think that this error only occurs when the application is run through a remote desktop connection.\n\nI'm currently using the may 2007 build of fivewin with commercial xHarbour.\n\nCould anyone have a look at the error and try and point me in the right directions?\n\nMany Thanks\n\nPete", "time": "10:46", "topic": "BtnBMP Error", "username": "PeterHarmes" } ]
BtnBMP Error