messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, una cosa tonta:\n\nEn el explorador de windows me sale como icono de mi aplicación un icono de alerta que es el último que tengo definido en el fichero RC. ¿ Como hago para que despues de compilar me salga el que yo quiero ?. He probado a ponerlo como ultimo icono en el RC, pero sigue cogiendo el mismo.\n\nNo me refiero al icono de la barra de titulo del programa, ese me sale bien, me refiero al que aparece en el explorador junto al nombre del fichero, sobre todo porque en Windows 7, cuando lo ejecuto se ve un icono de Alerta grandisimo y da mala imagen.\n\nUtilizo ResEdit y Verce\n\nSaludos", "time": "12:41", "topic": "Cambiar icono", "username": "Sebastián Almirón" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Sebastían:\nQue raro, a mi me toma siempre el primero. Para este caso, si tengo varios iconos y quiero que tome el primero lo nombro mediante un guion bajo. En tu caso yo probaría poniendole una 'z' como inicio de nombre del ícono\n\nSaludos", "time": "12:51", "topic": "Cambiar icono", "username": "MarioG" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Mario,\n\neso es lo que he hecho, ponerle de nombre ZZZZ, pero tengo tres iconos en el RC y el que me sale es el que está ahora en medio.\nCuando solo tenia en el RC el icono de la aplicacion, me salia bien.\nSaludos", "time": "12:58", "topic": "Cambiar icono", "username": "Sebastián Almirón" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> ... pues se me terminaron las ideas\n\nsaludos", "time": "13:24", "topic": "Cambiar icono", "username": "MarioG" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "te cuento mi experiencia.\n\ntiempo atrás, me pasaba lo mismo, pero con el icono que le asignaba al ejecutable, colocaba 3 iconos de diferentes resoluciones y siempre me tomaba el segundo icono, a pesar que le indicaba al programa que colocara el primero.\n\ntanto tiempo invertido, para darle la solución a este problema, que al final hice 2 archivos RC, uno con el mismo nombre del ejecutable con las opciones mínimas y un segundo archivo en donde defino las pantallas, iconos de la aplicación, bitmap, etc.\n\ncon esto, logre que en windows 7 apareciera el icono correcto y con una muy buena presentación en el monitor.\n\naquí te dejo un ejemplo del primer rc\n[code=fw:2gjxmaxt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#ifndef _MAC<br /><span style=\"color: #B900B9;\">/////////////////////////////////////////////////////////////////////////////</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Version</span><br /><span style=\"color: #B900B9;\">//</span><br /><br /><span style=\"color: #000000;\">1</span> VERSIONINFO<br />&nbsp;FILEVERSION <span style=\"color: #000000;\">11</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">07</span>,<span style=\"color: #000000;\">01</span><br />&nbsp;PRODUCTVERSION <span style=\"color: #000000;\">11</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">07</span>,<span style=\"color: #000000;\">01</span><br />&nbsp;FILEFLAGSMASK 0x0L<br />#ifdef _DEBUG<br />&nbsp;FILEFLAGS 0x29L<br />#else<br />&nbsp;FILEFLAGS 0x28L<br />#endif<br />&nbsp;FILEOS 0x10001L<br />&nbsp;FILETYPE 0x1L<br />&nbsp;FILESUBTYPE 0x0L<br />BEGIN<br />&nbsp; &nbsp; BLOCK <span style=\"color: #ff0000;\">\"StringFileInfo\"</span><br />&nbsp; &nbsp; BEGIN<br />&nbsp; &nbsp; &nbsp; &nbsp; BLOCK <span style=\"color: #ff0000;\">\"0c0a04e4\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; BEGIN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"Comments\"</span>, <span style=\"color: #ff0000;\">\"Sistema Mosaic 2012 de ALM Systems 1999-2012 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"CompanyName\"</span>, <span style=\"color: #ff0000;\">\"ALM Systems <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"FileDescription\"</span>, <span style=\"color: #ff0000;\">\"[ Mosaic 12 ] Sistema de Trazabilidad Hortofruticola Nacional 2012 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"FileVersion\"</span>, <span style=\"color: #ff0000;\">\"11.02.21 Revisión 0001 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"InternalName\"</span>, <span style=\"color: #ff0000;\">\"Mosaic 2012 Trazabilidad Nacional -- autor__Armando Lagunas M.-- <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"LegalCopyright\"</span>, <span style=\"color: #ff0000;\">\"Copyright© ALM.Systems 1999-2012 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"LegalTrademarks\"</span>, <span style=\"color: #ff0000;\">\"Programador : Armando Lagunas Mardones <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"OriginalFilename\"</span>, <span style=\"color: #ff0000;\">\"Mosaic12.exe <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"PrivateBuild\"</span>, <span style=\"color: #ff0000;\">\"Version 11.02.21 [1999-2011] 32 Bits<span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"ProductName\"</span>, <span style=\"color: #ff0000;\">\"Sistema de Trazabilidad Nacional Mosaic 2012 &nbsp;2010-2012 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"ProductVersion\"</span>, <span style=\"color: #ff0000;\">\"11.02 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"SpecialBuild\"</span>, <span style=\"color: #ff0000;\">\"Build 1207 - Febrero 2011 <span style=\"color: #000000;\">\\0</span>\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; END<br />&nbsp; &nbsp; BLOCK <span style=\"color: #ff0000;\">\"VarFileInfo\"</span><br />&nbsp; &nbsp; BEGIN<br />&nbsp; &nbsp; &nbsp; &nbsp; VALUE <span style=\"color: #ff0000;\">\"Translation\"</span>, 0xc0a, <span style=\"color: #000000;\">1252</span><br />&nbsp; &nbsp; END<br />END<br /><br />#endif &nbsp; &nbsp;<span style=\"color: #B900B9;\">// !_MAC</span><br /><br /><span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\"XP.man\"</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// windows manifiest file</span><br />ico &nbsp; <span style=\"color: #0000ff;\">icon</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\\\</span>ICO<span style=\"color: #000000;\">\\\\</span>UNO.ICO\"</span> &nbsp;<span style=\"color: #B900B9;\">// first icon 48X48 24bits</span><br />&nbsp;</div>[/code:2gjxmaxt]\n\nespero que te sirva, saludos", "time": "14:15", "topic": "Cambiar icono", "username": "armando.lagunas" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Al igual que Armando, es lo que hago\nUn .rc como el código que muestra, y que lleva el nombre de la aplicación\nEl segundo .rc lo paso a .dll con rc2dll32.bat. lo cargo con SET RESOUERCES TO \"mi.dll\" y al finalizar la aplicación lo libero con SET RESOURCES TO\nHace años que lo hago así y nunca experimenté ningun tipo de problema\n\nsaludos", "time": "14:35", "topic": "Cambiar icono", "username": "MarioG" } ]
Cambiar icono
[ { "date": "2011-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Bueno, ya lo he arreglado.\n\nAunque en el ResEdit aparezcan los iconos por otro orden (de creación), parece que el que será el icono de la aplicación será el primero por orden alfabérico (supongo que así lo hará ILink32). El icono que quiero que salga en este caso lo he llamado AAAAAAIcon y listo.\n\nGracias a los dos\nSaludos", "time": "15:13", "topic": "Cambiar icono", "username": "Sebastián Almirón" } ]
Cambiar icono
[ { "date": "2022-02-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas tardes para todos\n\nEn esta ocasión necesito poder cambiar algunos de los iconos que están en la cabecera del TDockPnel específicamente dos, los otros siempre van a ser fijos, las imágenes de momento las monto en el método SetImgsFiles(), pero quiero que al hacer clic en ocultar / mostrar se pueda cambiar el icono. Es posible? \n[img:39hz9hbq]https&#58;//hymplus&#46;com/forofw/cambioicono&#46;png[/img:39hz9hbq]\n[code=fw:39hz9hbq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   oDock1  := TDockPnel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWChCaCn <span style=\"color: #000000;\">&#41;</span><br />   WITH OBJECT oDock1<br />      :<span style=\"color: #000000;\">SetHeightCaption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetCoors</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                 <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                 <span style=\"color: #000000;\">&#123;</span> | o | Int<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nHeight</span>  <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                 <span style=\"color: #000000;\">&#123;</span> | o | Int<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> - XEVal<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">nLeft</span>, o <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetCaption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #ff0000;\">\"Saldos Acumulados\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetColors</span><span style=\"color: #000000;\">&#40;</span> CLR_WHITE, Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span> , Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">88</span>, <span style=\"color: #000000;\">88</span>, <span style=\"color: #000000;\">88</span> <span style=\"color: #000000;\">&#41;</span>, CLR_HGRAY <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont4 <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">lLeftImgs</span>   := .F.<br />      :<span style=\"color: #000000;\">SetBorderSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetCtrlsPnel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o, nT, nL, nH, nW, oB | oB := fSaldos<span style=\"color: #000000;\">&#40;</span> o, nT, nL, nH, nW <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">SetImgsFiles</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span>  <span style=\"color: #000000;\">&#123;</span> oLamcla:<span style=\"color: #000000;\">cIcoBcBu</span>, <span style=\"color: #000000;\">&#123;</span> | o | consaldocero<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"Ocultar / Mostrar Con Saldo Cero\"</span> <span style=\"color: #000000;\">&#125;</span> ,;<br />                        <span style=\"color: #000000;\">&#123;</span> oLamcla:<span style=\"color: #000000;\">cIcoBcBr</span>, <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"Borrar \"</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> oLamcla:<span style=\"color: #000000;\">cIcoBcEd</span>, <span style=\"color: #000000;\">&#123;</span> | o | eval<span style=\"color: #000000;\">&#40;</span>cbModi<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"Modificar \"</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                        <span style=\"color: #000000;\">&#123;</span> oLamcla:<span style=\"color: #000000;\">cIcoBcAg</span>, <span style=\"color: #000000;\">&#123;</span> | o | mantenimiento<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"Agregar \"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>  <br />      :<span style=\"color: #000000;\">bRClicked</span>   := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oDock1:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /> </div>[/code:39hz9hbq]", "time": "21:40", "topic": "Cambiar icono TDockPnel tiempo ejecución", "username": "leandro" } ]
Cambiar icono TDockPnel tiempo ejecución
[ { "date": "2022-02-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Leandro\n\n[code=fw:3kozpju5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> CreaDocks<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oDock1 &nbsp;:= TDockPnel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWindow <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;WITH OBJECT oDock1<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetHeightCaption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetCoors</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> | o | Int<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nHeight</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">54</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> | o | Int<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> - XEVal<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">nLeft</span>, o <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetCaption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #ff0000;\">\"Title\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetColors</span><span style=\"color: #000000;\">&#40;</span> METRO_RED, CLR_WHITE, Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">88</span>, <span style=\"color: #000000;\">88</span>, <span style=\"color: #000000;\">88</span> <span style=\"color: #000000;\">&#41;</span>, CLR_HGRAY <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont4 <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetBorderSize</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetSizeImgs</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">48</span>, <span style=\"color: #000000;\">48</span>, .F. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetImgsFiles</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\n</span>otes.bmp\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> || oDock1:<span style=\"color: #000000;\">aBtnBmps</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetImages</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oDock1:<span style=\"color: #000000;\">lSelected</span>, <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\n</span>otes.bmp\"</span>, <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\F</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\c</span>heckbox.bmp\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDock1:<span style=\"color: #000000;\">lSelected</span> := !oDock1:<span style=\"color: #000000;\">lSelected</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"ToolTip\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><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, oB | oB := Test1<span style=\"color: #000000;\">&#40;</span> o, nT, nL, nH, nW <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bRClicked</span> &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> oDock1:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:3kozpju5]", "time": "02:47", "topic": "Cambiar icono TDockPnel tiempo ejecución", "username": "cnavarro" } ]
Cambiar icono TDockPnel tiempo ejecución
[ { "date": "2022-02-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente Cristo <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nFunciono la perfección, te molesto con otra cosilla que salió <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->, es posible hacer lo mismo con el tooltip? \n\nDe antemano gracias", "time": "11:42", "topic": "Cambiar icono TDockPnel tiempo ejecución", "username": "leandro" } ]
Cambiar icono TDockPnel tiempo ejecución
[ { "date": "2022-02-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Si sabes como cambiar el tooltip a cualquier boton construído con Fw, entonces sabes como cambiarle el tooltip a estos botones, sólo has de saber como identificar esos objetos, y en mi ejemplo aparece cómo hacerlo:\n[quote:23i3e20k]\noDock1:aBtnBmps[ 1 ]: \n[/quote:23i3e20k]", "time": "00:10", "topic": "Cambiar icono TDockPnel tiempo ejecución", "username": "cnavarro" } ]
Cambiar icono TDockPnel tiempo ejecución
[ { "date": "2021-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenos días para todos\n\nEstuve buscando en el foro pero no encontré respuesta, es que deseo cambiar el icono de la carpeta de contiene nuestra aplicación, lo hice de manera manual, pero quiero saber si es posible hacerlo desde código. \n\n[img:1q1g9e60]https&#58;//hymplus&#46;com/forofw/icono&#46;png[/img:1q1g9e60]", "time": "15:49", "topic": "Cambiar icono carpeta desde codigo", "username": "leandro" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "\"Change Icon of EXE file through code extracting it from other EXE file | Go4Expert\" <!-- m --><a class=\"postlink\" href=\"https://www.go4expert.com/articles/change-icon-exe-file-code-extracting-t643/\">https://www.go4expert.com/articles/chan ... ting-t643/</a><!-- m -->\n\nLa clave es usar UpdateResource()", "time": "16:37", "topic": "Cambiar icono carpeta desde codigo", "username": "Antonio Linares" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-08", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:29ktwof8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> SetFolderIcon<span style=\"color: #000000;\">&#40;</span> cFolder, cFileIco, cInfoTip <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> lSet &nbsp;:= .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oIni, cIni, cSec := <span style=\"color: #ff0000;\">\".ShellClassInfo\"</span><br /><br />&nbsp; &nbsp;cFolder &nbsp;:= RemRight<span style=\"color: #000000;\">&#40;</span> cFolder, <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span> )<br />&nbsp; &nbsp;DEFAULT cInfoTip := \"</span><span style=\"color: #ff0000;\">\"<br /><br />&nbsp; &nbsp;if File( cFileIco ) .and. Lower( cFileExt( cFileIco ) ) == \"</span>ico<span style=\"color: #ff0000;\">\" .and. ;<br />&nbsp; &nbsp; &nbsp; !File( cFolder )<br /><br />&nbsp; &nbsp; &nbsp; if !lIsDir( cFolder )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lMkFullPath( cFolder )<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; if lIsDir( cFolder )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetFAttr( cFolder, 4 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFileIco := cRelativePath( cFileIco, cFolder )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cIni &nbsp; &nbsp; := cFolder + \"</span>\\desktop.ini<span style=\"color: #ff0000;\">\"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INI oIni FILE cIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET SECTION cSec ENTRY \"</span>ConfirmFileOp<span style=\"color: #ff0000;\">\" TO 0 &nbsp; &nbsp; &nbsp; &nbsp;OF oIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET SECTION cSec ENTRY \"</span>NoSharing<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; TO 1 &nbsp; &nbsp; &nbsp; &nbsp;OF oIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET SECTION cSec ENTRY \"</span>IconFile<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp;TO cFileIco OF oIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET SECTION cSec ENTRY \"</span>IconIndex<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; TO 0 &nbsp; &nbsp; &nbsp; &nbsp;OF oIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SET SECTION cSec ENTRY \"</span>InfoTip<span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; TO cInfoTip OF oIni<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetFAttr( cIni, 2 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSet &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp;endif<br /><br />return lSet<br /></span></div>[/code:29ktwof8]\n\nThis function is included in the next version of FWH\n\nTest:\n[code=fw:29ktwof8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? SetFolderIcon<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\i</span>cofolder\"</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\i</span>cons<span style=\"color: #000000;\">\\f</span>ivetech.ico\"</span>, <span style=\"color: #ff0000;\">\"FWH SetFolderIcon() function\"</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:29ktwof8]\n\n[url=https&#58;//imageshack&#46;com/i/pmXspt9op:29ktwof8][img:29ktwof8]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/922/Xspt9o&#46;png[/img:29ktwof8][/url:29ktwof8]", "time": "19:03", "topic": "Cambiar icono carpeta desde codigo", "username": "nageswaragunupudi" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente Mr.Nages <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nEra lo que estaba buscando. Muchas gracias.", "time": "22:17", "topic": "Cambiar icono carpeta desde codigo", "username": "leandro" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas estimados\n\nY la función cRelativePath donde la encuentro?", "time": "21:23", "topic": "Cambiar icono carpeta desde codigo", "username": "acuellar" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"acuellar\":30tozfsz]Buenas estimados\n\nY la función cRelativePath donde la encuentro?[/quote:30tozfsz]\n\nBorland shell32.lib\n\n\nregards, saludos", "time": "23:42", "topic": "Cambiar icono carpeta desde codigo", "username": "karinha" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias estimado Joao\n\nPero no está en en la Lib Shell32 <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "21:35", "topic": "Cambiar icono carpeta desde codigo", "username": "acuellar" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Mira estimado:\n\n[url:20zegxgl]http&#58;//forums&#46;fivetechsoft&#46;com/viewtopic&#46;php?p=219133&sid=45f46e346cd14b3af0b2efd091e281f1#p219133[/url:20zegxgl]\n\nRegards, saludos.", "time": "23:16", "topic": "Cambiar icono carpeta desde codigo", "username": "karinha" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:u3qsjrry]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// \\samples\\CRELATIV.PRG</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ? SetFolderIcon<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\F</span>WH1905<span style=\"color: #000000;\">\\i</span>cofolder\"</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\F</span>WH1905<span style=\"color: #000000;\">\\i</span>cons<span style=\"color: #000000;\">\\f</span>ivetech.ico\"</span>, ;<br />      <span style=\"color: #ff0000;\">\"FWH SetFolderIcon() function\"</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> SetFolderIcon<span style=\"color: #000000;\">&#40;</span> cFolder, cFileIco, cInfoTip <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> lSet  := .f.<br />   <span style=\"color: #00C800;\">local</span> oIni, cIni, cSec := <span style=\"color: #ff0000;\">\".ShellClassInfo\"</span><br /><br />   cFolder  := RemRight<span style=\"color: #000000;\">&#40;</span> cFolder, <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span> )<br /><br />   DEFAULT cInfoTip := \"</span><span style=\"color: #ff0000;\">\"<br /><br />   IF FILE( cFileIco ) .AND. Lower( cFileExt( cFileIco ) ) == \"</span>ico<span style=\"color: #ff0000;\">\" .AND. ;<br />      .NOT. FILE( cFolder )<br /><br />      IF .NOT. lIsDir( cFolder )<br /><br />         lMkFullPath( cFolder )<br /><br />      ENDIF<br /><br />      IF lIsDir( cFolder )<br /><br />         SetFAttr( cFolder, 4 )<br /><br />         cFileIco := cRelativePath( cFileIco, cFolder )<br />         cIni     := cFolder + \"</span>\\desktop.ini<span style=\"color: #ff0000;\">\"<br /><br />         INI oIni FILE cIni<br />         SET SECTION cSec ENTRY \"</span>ConfirmFileOp<span style=\"color: #ff0000;\">\" TO 0        OF oIni<br />         SET SECTION cSec ENTRY \"</span>NoSharing<span style=\"color: #ff0000;\">\"     TO 1        OF oIni<br />         SET SECTION cSec ENTRY \"</span>IconFile<span style=\"color: #ff0000;\">\"      TO cFileIco OF oIni<br />         SET SECTION cSec ENTRY \"</span>IconIndex<span style=\"color: #ff0000;\">\"     TO 0        OF oIni<br />         SET SECTION cSec ENTRY \"</span>InfoTip<span style=\"color: #ff0000;\">\"       TO cInfoTip OF oIni<br /><br />         SetFAttr( cIni, 2 )<br /><br />         lSet  := .t.<br /><br />      ENDIF<br /><br />   ENDIF<br /><br />   ? cIni // ??<br /><br />RETURN( lSet )<br /><br />// FIN / END<br /></span></div>[/code:u3qsjrry]\n\nRegards, saludos.", "time": "23:37", "topic": "Cambiar icono carpeta desde codigo", "username": "karinha" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Estimado\n\nTengo FWH 18.04 <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "23:39", "topic": "Cambiar icono carpeta desde codigo", "username": "acuellar" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-17", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"acuellar\":2rnhuua6]Buenas estimados\n\nY la función cRelativePath donde la encuentro?[/quote:2rnhuua6]\nYou need to upgrade FWH", "time": "15:24", "topic": "Cambiar icono carpeta desde codigo", "username": "nageswaragunupudi" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-17", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"acuellar\":350cp30b]Buenas estimados\n\nY la función cRelativePath donde la encuentro?[/quote:350cp30b]\nYou need to upgrade FWH", "time": "15:24", "topic": "Cambiar icono carpeta desde codigo", "username": "nageswaragunupudi" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2021-11-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Thanks Mr. Rao", "time": "20:01", "topic": "Cambiar icono carpeta desde codigo", "username": "acuellar" } ]
Cambiar icono carpeta desde codigo
[ { "date": "2013-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros:\n\nTengo el siguiente código:\n[code=fw:3jaic30n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> cTitle, nBtnWidth, nBtnHeight, cFileName <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TMetro<br />   <span style=\"color: #00C800;\">DEFAULT</span> cTitle := <span style=\"color: #ff0000;\">\"MyApp\"</span>, nBtnWidth := <span style=\"color: #000000;\">132</span>, nBtnHeight := <span style=\"color: #000000;\">132</span><br />   ::<span style=\"color: #000000;\">cTitle</span>     = cTitle<br />   ::<span style=\"color: #000000;\">aButtons</span>   = <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   ::<span style=\"color: #000000;\">nBtnWidth</span>  = nBtnWidth<br />   ::<span style=\"color: #000000;\">nBtnHeight</span> = nBtnHeight<br />   ::<span style=\"color: #000000;\">nOriginX</span>   = <span style=\"color: #000000;\">200</span><br />   ::<span style=\"color: #000000;\">nOriginY</span>   = <span style=\"color: #000000;\">200</span><br />   ::<span style=\"color: #000000;\">nRow</span>       =   <span style=\"color: #000000;\">0</span><br />   ::<span style=\"color: #000000;\">nCol</span>       =   <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">if</span> File<span style=\"color: #000000;\">&#40;</span> cFileName <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">hBitmap</span> = ReadBitmap<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, cFileName <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFont</span>  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Century Gothic\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-60</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFontA</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Century Gothic\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-40</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFontB</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Century Gothic\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-20</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFontC</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Century Gothic\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFontD</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Century Gothic\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-15</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_POPUP, WS_VISIBLE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, CLR_BLACK<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br />...<br />...<br />cfondo=camino+<span style=\"color: #ff0000;\">'walpaper<span style=\"color: #000000;\">\\'</span>+alltrim(tapiz->nombre)<br />...<br />...<br />oMetro:=TMetro():New('</span>Gestión empresarial,,,cfondo,<span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span><br />...<br />...<br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TMetro<br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">&#40;</span> DrawBitmap<span style=\"color: #000000;\">&#40;</span> hDC, ::<span style=\"color: #000000;\">hBitmap</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> , <span style=\"color: #000000;\">16</span> , ::<span style=\"color: #000000;\">cTitle</span> ,,, ::<span style=\"color: #000000;\">oFont</span> ,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">8</span> , <span style=\"color: #000000;\">28</span> , upper<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">&#40;</span>nempresa,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+lower<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">&#40;</span>nempresa,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">54</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,,, ::<span style=\"color: #000000;\">oFontA</span>,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">100</span> , <span style=\"color: #ff0000;\">'© Lorenzo Fernández'</span> ,,, ::<span style=\"color: #000000;\">oFontC</span>,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">100</span> , <span style=\"color: #ff0000;\">'Versión 11.13.1'</span> ,,, ::<span style=\"color: #000000;\">oFontC</span>,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">16</span> , CDoW<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> +<span style=\"color: #ff0000;\">', '</span>+AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> Day<span style=\"color: #000000;\">&#40;</span> Date<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: #ff0000;\">' de '</span>+CMonth<span style=\"color: #000000;\">&#40;</span> DATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,,, ::<span style=\"color: #000000;\">oFontB</span>,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">16</span> , <span style=\"color: #ff0000;\">'Usuario: '</span>+usuario ,,, ::<span style=\"color: #000000;\">oFontD</span>,, .T. <span style=\"color: #000000;\">&#41;</span>,;<br />                 ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">44</span>, <span style=\"color: #000000;\">16</span> , <span style=\"color: #ff0000;\">'Ruta de acceso: '</span>+cruta ,,, ::<span style=\"color: #000000;\">oFontD</span>,, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3jaic30n]\n\nDe esta manera obtengo el siguiente menú principal: \n[url:3jaic30n]http&#58;//ge&#46;tt/2yv3gj61/v/0[/url:3jaic30n]\n\nAhora necesito cambiar el wallpaper a fondo NEGRO en tiempo de ejecución justo antes que se muestre un Dialogs, y restablecerlo cada vez que cierre el Dialogs\n\nMil gracias. Un saludo.\nLORENZO.", "time": "09:32", "topic": "Cambiar imagen de fondo con Tmetro", "username": "Loren" } ]
Cambiar imagen de fondo con Tmetro
[ { "date": "2013-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros,\n\nse que los \"tiros\" van por aquí:\n\noBmp:LoadBmp( cBmpFile )\noWnd:Refresh()\n\nPero no logro dar en la diana...\n\npor favor... un alma caritativa..\nGracias.\nLORENZO.", "time": "16:47", "topic": "Cambiar imagen de fondo con Tmetro", "username": "Loren" } ]
Cambiar imagen de fondo con Tmetro
[ { "date": "2013-12-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Pues, se me ocurrió hacer [b:2uxywu23]justo antes de cada Dialogs[/b:2uxywu23]\n\n[code=fw:2uxywu23]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oW &nbsp; <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_POPUP, WS_VISIBLE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, CLR_BLACK<br />&nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oW <span style=\"color: #0000ff;\">MAXIMIZED</span></div>[/code:2uxywu23]\n\n... y la flauta sonó.\n\nProbablemente sea una solución poco ortodoxa, pero me funciona perfectamente.\n\nMil gracias a todos.\nLORENZO.", "time": "16:58", "topic": "Cambiar imagen de fondo con Tmetro", "username": "Loren" } ]
Cambiar imagen de fondo con Tmetro
[ { "date": "2012-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Quisiera cambiar, en tiempo de ejecución, el bmp de un bottonBMP segun un criterio deseado.\n\nEste código fuente me da error en ejecución:[code=fw:2q67hz6k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Ok:=.T.<br />@ <span style=\"color: #000000;\">35</span>*<span style=\"color: #000000;\">25</span><span style=\"color: #000000;\">+5</span>,<span style=\"color: #000000;\">225</span> <span style=\"color: #0000ff;\">BTNBMP</span> OkBtn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ok_rojo\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oWndChild</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#123;</span>Ok:=<span style=\"color: #000000;\">&#40;</span>.not.Ok<span style=\"color: #000000;\">&#41;</span>,iif<span style=\"color: #000000;\">&#40;</span>Ok,OkBtn:<span style=\"color: #000000;\">cResName1</span>:=<span style=\"color: #ff0000;\">\"Ok_rojo\"</span>,OkBtn:<span style=\"color: #000000;\">cResName1</span>:=<span style=\"color: #ff0000;\">\"Ok_verde\"</span><span style=\"color: #000000;\">&#41;</span>,OkBtn:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span></div>[/code:2q67hz6k]\nFichero RC:\nOk_rojo BITMAP \"ok_rojo.bmp\"\nOk_verde BITMAP \"ok_verde.bmp\"\n\nMe da este error:\n[color=#FF0000:2q67hz6k][b:2q67hz6k]Error description: Warning BASE/1004 Message not found: TBTNBMP:OK[/b:2q67hz6k][/color:2q67hz6k]", "time": "08:31", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "JmGarcia" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:30tip3em]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBtnF<span style=\"color: #000000;\">&#91;</span>x<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span> ltrim<span style=\"color: #000000;\">&#40;</span>Camino + <span style=\"color: #ff0000;\">'graficos<span style=\"color: #000000;\">\\b</span>otones<span style=\"color: #000000;\">\\b</span>rush<span style=\"color: #000000;\">\\'</span> + botonfam->nombre) )<br />obtnF[x]:cCaption:= AllTrim(familia->texto_tecl)<br />oBtnF[x]:oFont:= oFont1<br />oBtnF[x]:Refresh()<br /></span></div>[/code:30tip3em]", "time": "12:09", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "Bayron" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias por tu ayuda pero no entiendo lo de [b:3cl1prhm][x][/b:3cl1prhm] \nLos BMPs los tengo en recursos ¿ valdría ? oBtnF[x]:SetFile([color=#40BF00:3cl1prhm][b:3cl1prhm]\"ok_verde.bmp\"[/b:3cl1prhm][/color:3cl1prhm])\n¿ Que significa ? [b:3cl1prhm]obtnF[x]:cCaption:= AllTrim(familia->texto_tecl)[/b:3cl1prhm] y [b:3cl1prhm]oBtnF[x]:oFont:= oFont1[/b:3cl1prhm]", "time": "13:20", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "JmGarcia" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "JmGarcia\n\nSupongo que \"[b:2a1twplb]obtnF[/b:2a1twplb]\" es un array de objetos y los accede por medio de la variable \"[b:2a1twplb]x[/b:2a1twplb]\"\n\nviendo el titulo de tu post, no concuerda con el codigo de tu ejemplo, porque existe una clase ButtonBMP y una Clase BTNBMP...\n\nComo expreso en mi firma, nuestra mejor documentacion es el codigo fuente, yo en lo personal cuando tengo que trabajar con una clase (incluso con las que yo mismo he diseñado), mantengo la clase abierta en el editor para recordar todas sus propiedades y metodos, de esa forma mantengo a la mano todas las caracteristicas del objeto, esto lo puedo llamar una \"tecnica\" para programar, como puedes ver todo lo tenemos a nuestro alcance y es mas facil que lo que nos imaginamos, espero te sirva este simple consejo \n\nahora abriendo el archivo [b:2a1twplb]btnbmp.prg[/b:2a1twplb], podemos examiarlo y estudiar sus metodos, que tienen nombres bastante intuitivos para un mejor entendimiento de lo que hacen\n\noBtn:SetFile( \"ruta_nombre_imagen_para_buttonup\", \"ruta_nombre_imagen_para_buttondown\" ) // para imagenes en disco\n\npara ti ese metodo no sirve, pues lo necesitas desde recurso\n\nexiste otro metodo llamado LoadBitmaps( cResName1, cResName2, cBmpFile1, cBmpFile2, cResName3, cBmpFile3, cResName4, cBmpFile4 )\nalli podemos ver cuales son los parametros usados para el nombre de los recurso y el usado para lso archivos\n\npara los recursos son los parametros 1, 2, 5 y 7\n\nel codigo del metodo nos dice para que son cada uno de esos parametros\ncResName1 = Button Up (imagen en estado normal )\ncResName2 = Button Down (imagen cuando se tiene el boton del mouse abajo )\ncResName3 = imagen cuando el boton esta en estado \"disable\"\ncResName4 = imagen cuando el mouse pasa sobre el boton\n\nNota... es importante antes de asignar nuevas imagenes, liberar las imagenes anteriores primero usa FreeBitmaps()", "time": "13:48", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "Daniel Garcia-Gil" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Daniel Garcia-Gil\":3su3nner]viendo el titulo de tu post, no concuerda con el codigo de tu ejemplo, porque existe una clase ButtonBMP y una Clase BTNBMP...[/quote:3su3nner]Quería decir [b:3su3nner]Botón BMP[/b:3su3nner] en vez de [b:3su3nner]BottonBMP[/b:3su3nner].\nDesconocía que hubiera dos clases BTNBMP y ButtonBMP y he empezado por querer usar la primera.\n\nSea como fuere tu explicación es estupenda pero me encuentro en la texitura de no saber cual usar.\n\nVoy a tratar de explicarme.\nNecesito un botón con clausula ACTION donde al pulsarlo pueda hacer algunas cosas. Ese boton en principio nace con un bmp con forma de aspa roja, al pulsarlo quiero cambiarlo a un aspa (o similar) de color verde. Es decir quiero cambiar el bmp en tiempo de ejecución. Además este bmp tiene que estar en recursos (en un RC).\n\n¿ Podrías ponerme un pequeño código fuente de como sería ?\n\nDesde ya muchas gracias por tu ayuda, por vuestra ayuda.", "time": "09:09", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "JmGarcia" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "este ejemplo sta aplicado a una toolbar que contiene botones btnbmp, puede ser facilmente\nimplementado en botones solitarios.\n\n[code=fw:2vea9qe6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style=\"color: #B900B9;\">/*procedimiento que muestra toolbar en dialogo*/</span><br />PROCEDURE Clientes_Toolbar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oToolbar<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oToolBar <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">2010</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_CLOSE\"</span>       <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>                 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Salir\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_ADD\"</span>         <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Editar<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">TRUE</span>  <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Nuevo\"</span>      GROUP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_EDIT\"</span>        <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Editar<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Editar\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_DELETE\"</span>      <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Borrar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>          <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Borrar\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_SEARCH\"</span>      <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_BuscarXPrestamo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"B&uscar\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_EXPORTXLS\"</span>   <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Exportar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exportar\"</span>   GROUP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_PRINTER\"</span>     <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Listar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>          <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Imprimir\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_TABLESMONEY\"</span> <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_Prestamos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>       <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Prestamos\"</span>  GROUP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TB_FILTERADD\"</span>   <span style=\"color: #0000ff;\">OF</span> oToolBar <span style=\"color: #0000ff;\">ACTION</span> Clientes_FiltroAplicar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Filtrar\"</span>    GROUP<br /><br /><br />   <span style=\"color: #B900B9;\">/*muestra barra de estado*/</span><br />   SET MSGBAR <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"INS=Nuevo, DEL=Borrar, ENTER=Editar, F2=Prestamos, F3=Buscar, F4=Filtrar, F5=Imprimir, F8=Exportar, F9=Refrescar\"</span> <span style=\"color: #000000;\">2010</span><br /><br />   oDlg:<span style=\"color: #000000;\">SetControl</span><span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br />   oBrw:<span style=\"color: #000000;\">nTop</span>    += <span style=\"color: #000000;\">1</span><br />   oBrw:<span style=\"color: #000000;\">nHeight</span> -= <span style=\"color: #000000;\">1</span><br /><br />   oToolBar:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">TRUE</span> <span style=\"color: #000000;\">&#125;</span><br />   oToolBar:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">TRUE</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #B900B9;\">/*objeto boton para manejar boton del filtro*/</span><br />&nbsp; &nbsp;oBtnFilter := oToolbar:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #B900B9;\">/*aca tomo el control no. 9 del arreglo aControls que todo control contenedor tiene*/</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><br /> </div>[/code:2vea9qe6]\n[code=fw:2vea9qe6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #B900B9;\">/*si selecciono filtrar info*/</span><br />   <span style=\"color: #00C800;\">IF</span> lFiltrado<br /><br />      <span style=\"color: #00C800;\">IF</span> nFNumCiu = <span style=\"color: #000000;\">0</span> .and. ;<br />         nFNumRut = <span style=\"color: #000000;\">0</span> .and. ;<br />         nFAmbito = <span style=\"color: #000000;\">1</span> .and. ;<br />         nFSaldo  = <span style=\"color: #000000;\">1</span> .and. ;<br />         Empty<span style=\"color: #000000;\">&#40;</span> dFFecIni <span style=\"color: #000000;\">&#41;</span> .and. Empty<span style=\"color: #000000;\">&#40;</span> dFFecFin <span style=\"color: #000000;\">&#41;</span><br /><br />         Clientes_FiltroQuitar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #00C800;\">RETURN</span><br /><br />      <span style=\"color: #00C800;\">ELSE</span><br /><br />         STORE <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #0000ff;\">TO</span> cFilter0, cFilter1, cFilter2, cFilter3, cFilter4, cFilter5<br /><br />         <span style=\"color: #00C800;\">IF</span> nFNumCiu > <span style=\"color: #000000;\">0</span><br />            cFilter1 := StrFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"NUM_CIUD=%1\"</span>, AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> nFNumCiu <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         <span style=\"color: #00C800;\">IF</span> nFNumRut > <span style=\"color: #000000;\">0</span><br />            cFilter2 := StrFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"NUM_RUTA=%1\"</span>, AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> nFNumRut <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         <span style=\"color: #00C800;\">IF</span> nFAmbito > <span style=\"color: #000000;\">1</span><br />            <span style=\"color: #00C800;\">IF</span> nFAmbito=<span style=\"color: #000000;\">2</span><br />               cFilter3 := <span style=\"color: #ff0000;\">\"ACTIVO=.T.\"</span><br />            <span style=\"color: #00C800;\">ELSE</span><br />               cFilter3 := <span style=\"color: #ff0000;\">\"ACTIVO=.F.\"</span><br />            <span style=\"color: #00C800;\">ENDIF</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">&#40;</span> dFFecIni <span style=\"color: #000000;\">&#41;</span> .and. !Empty<span style=\"color: #000000;\">&#40;</span> dFFecFin <span style=\"color: #000000;\">&#41;</span><br />            cFilter4 := StrFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"(FECHA_ING>=%1 .and. FECHA_ING<=%2)\"</span>, Var2Str<span style=\"color: #000000;\">&#40;</span> dFFecIni <span style=\"color: #000000;\">&#41;</span>, Var2Str<span style=\"color: #000000;\">&#40;</span> dFFecFin <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         <span style=\"color: #00C800;\">IF</span> nFSaldo > <span style=\"color: #000000;\">1</span><br />            cFilter5 := <span style=\"color: #ff0000;\">\"SALDO_ACT>0\"</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         cFilter0 := IIf<span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter1 <span style=\"color: #000000;\">&#41;</span>, cFilter1 + <span style=\"color: #ff0000;\">\" .and. \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> +;<br />                     IIf<span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter2 <span style=\"color: #000000;\">&#41;</span>, cFilter2 + <span style=\"color: #ff0000;\">\" .and. \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> +;<br />                     IIf<span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter3 <span style=\"color: #000000;\">&#41;</span>, cFilter3 + <span style=\"color: #ff0000;\">\" .and. \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> +;<br />                     IIf<span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter4 <span style=\"color: #000000;\">&#41;</span>, cFilter4 + <span style=\"color: #ff0000;\">\" .and. \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> +;<br />                     IIf<span style=\"color: #000000;\">&#40;</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter5 <span style=\"color: #000000;\">&#41;</span>, cFilter5 + <span style=\"color: #ff0000;\">\" .and. \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         cFilter0 := StrTran<span style=\"color: #000000;\">&#40;</span> AllTrim<span style=\"color: #000000;\">&#40;</span> cFilter0 <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"  \"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #00C800;\">IF</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> cFilter0, <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span>==<span style=\"color: #ff0000;\">\".and.\"</span><br />            cFilter0 := <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cFilter0, <span style=\"color: #000000;\">1</span>, Len<span style=\"color: #000000;\">&#40;</span> cFilter0 <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />         oBtnFilter:<span style=\"color: #000000;\">LoadBitmaps</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TB_FILTERDEL\"</span> <span style=\"color: #000000;\">&#41;</span><br />         oBtnFilter:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Elimina filtro aplicado a tabla de datos\"</span><br />         oBtnFilter:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">&#40;</span> cFilter0 <span style=\"color: #000000;\">&#41;</span><br />            CLIE-><span style=\"color: #000000;\">&#40;</span> cmFilter<span style=\"color: #000000;\">&#40;</span> cFilter0 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">ENDIF</span><br /><br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br />   Refrescar_Browse<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><br /> </div>[/code:2vea9qe6]\n[code=fw:2vea9qe6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*procedimiento para eliminar filtro en lista de clientes*/</span><br />PROCEDURE Clientes_FiltroQuitar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">IF</span> lFiltrado<br /><br />      oBtnFilter:<span style=\"color: #000000;\">LoadBitmaps</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TB_FILTERADD\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oBtnFilter:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Agrega filtrado a tabla de datos\"</span><br />      oBtnFilter:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      CLIE-><span style=\"color: #000000;\">&#40;</span> cmFilter<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      lFiltrado := <span style=\"color: #00C800;\">FALSE</span><br /><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br />   Refrescar_Browse<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><br /> </div>[/code:2vea9qe6]", "time": "19:10", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "carlos vargas" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos\n\ntienes que liberar los bitmap anteriores antes de cargar uno nuevo, sino te quedaras sin recursos\n\nusa el metodo FreeBitMaps(), pero ojo eso libera todos los bitmaps del objeto", "time": "19:25", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "Daniel Garcia-Gil" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2012-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "copiado, daniel, gracias.", "time": "23:38", "topic": "Cambiar imagen de un BottonBMP en tiempo de ejecucion", "username": "carlos vargas" } ]
Cambiar imagen de un BottonBMP en tiempo de ejecucion
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "Saludos y disculpen si es muy obvia esta pregunta p q ya tengo rato buscando en estos foros y no encontre nada asi es q o todo mundo sabe o nadie lo ha necesitado, pero yo si necesito saber como cambiar la imagen de un objeto boton BTNBMP o de un BITMAP pero en tiempo de ejecución. Mi objetivo es cambiar la imagen de uno de esos dos objetos desde un browse para actualizar la imagen de los productos cuando cambien de linea. Gracias", "time": "03:50", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "gab_vg" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "Well in case that someone can answer in spanish thanks, if not here is my cuestion in english. I need to change the image of an object ether BTNBMP or BITMAP but in execution time, Some one know how to do it?. That in order to use it from a browse to update the image of the products. Thankx", "time": "03:55", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "gab_vg" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "Use SetFile() method for BTNBMP and LoadImage() method for BITMAP.\r\n\r\nEMG", "time": "08:48", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "Enrico Maria Giordano" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "First thankx for quick answer Enrico and give the clue where search cuz my problem was that I din't understand how do reference to the objects but with your help and the samples it done. \r\n\r\ncya", "time": "22:18", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "gab_vg" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "Gab,\r\n\r\nIn fwppc\\samples\\Tutor10.prg you could modify it this way:\r\n[code:ayqp78tk]\n @ 1, 1 LISTBOX oBrw ;\n FIELDS If&#40; Customer->Married, hBmp, hBmp2 &#41;, Customer->Last, Customer->First ;\n &#46;&#46;&#46;\n[/code:ayqp78tk]\r\nwhere hBmp2 is the handle of another bitmap", "time": "23:38", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "Antonio Linares" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2008-10-03", "forum": "FiveWin for Pocket PC", "text": "If you mean to change the bitmap of a BITMAP object like in fwppc\\samples\\TestBmp.prg then you could do:\r\n[code:3c7g8m7k]\noBmp&#58;LoadBmp&#40; CurDir&#40;&#41; + \"\\another&#46;bmp\" &#41;\n[/code:3c7g8m7k]", "time": "23:41", "topic": "Cambiar imagenes en tiempo de ejecución", "username": "Antonio Linares" } ]
Cambiar imagenes en tiempo de ejecución
[ { "date": "2009-08-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\nEn el foro consegui una función para cambiar la impresora por defecto por una elegida desde un combox.\nLa cambia, pero no envia nada quitando las lineas que llevan oDevice, aqui la función\n[code=fw:25ov4639]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; cPrinter := GetProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span> , <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cCbx <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; PrinterInit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteDC<span style=\"color: #000000;\">&#40;</span> oDevice:<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oDevice:<span style=\"color: #000000;\">hDC</span>:=GetPrintDefault<span style=\"color: #000000;\">&#40;</span> GetActiveWindow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"NODOSIMP &nbsp;\"</span>+cFilePRN+<span style=\"color: #ff0000;\">\" 96\"</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cPrinter <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:25ov4639]\nDa error en hDC, no se que lleva el parametro oDevice, como hay que iniciarlo?\nUso el programa NODOSIMP de Ciro, para imprimir archivos de texto. Este programa ha sido compilado con harbour, cómo hace para que respete los tamaños de letras, otros formatos e imprimir imagenes. Es aplicable para FiveWin?\n\nGracias por la ayuda\n\nSaludos\n\nAdhemar", "time": "15:44", "topic": "Cambiar impresora por defecto", "username": "acuellar" } ]
Cambiar impresora por defecto
[ { "date": "2009-08-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionada la parte de colocar la impresora por defecto.\n[code=fw:r6hbwwh2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp;cPrinter := GetProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span> , <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cCbx +<span style=\"color: #ff0000;\">\",winspool,Ne0:\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//Le aumente para que ponga por defecto</span><br />&nbsp; &nbsp; &nbsp; WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"NODOSIMP &nbsp;\"</span>+cFilePRN+<span style=\"color: #ff0000;\">\" 96\"</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cPrinter <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:r6hbwwh2]\n\nQueda pendiente de como hacer lo que hace NODOSIMP\n\nGracias\n\nSaludos\n\nAdhemar", "time": "16:48", "topic": "Cambiar impresora por defecto", "username": "acuellar" } ]
Cambiar impresora por defecto
[ { "date": "2008-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados Fivewinners.\r\n\r\nCuando el usuario se posiciona en un GET cuya variable es numerica, requiero que el cursor se posicione en el ultimo caracter + uno, es decir al final de la cadana numerica, para que el usuario complete el dato solicitado.\r\nCual es el truco? \r\nComo siempre un ejemplo seria E x c e l e n t e <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \r\n\r\nSaludos", "time": "00:49", "topic": "Cambiar la Posicion del cursor en un GET", "username": "devtuxtla" } ]
Cambiar la Posicion del cursor en un GET
[ { "date": "2008-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "oget:bGotFocus = { || __Keyboard( Chr( VK_END ) ) }\r\n\r\nespero q ajude.", "time": "02:45", "topic": "Cambiar la Posicion del cursor en un GET", "username": "Johnson" } ]
Cambiar la Posicion del cursor en un GET
[ { "date": "2008-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "FiveWinner->Johnson\r\n\r\nGracias por responder, pero no funciono, el comportamiento lo asocia al Tsbrowse y es el browse el que se va al ultimo registro del browse, pero el GET no mueve el cursor, sin embargo, es al objeto GET al que le asocio la funcion que recomendaste.\r\nMuy raro <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \r\n\r\nAlguna otra sugerencia?\r\n\r\nAlguien tiene otra idea?\r\n\r\nSaludos", "time": "03:16", "topic": "Cambiar la Posicion del cursor en un GET", "username": "devtuxtla" } ]
Cambiar la Posicion del cursor en un GET
[ { "date": "2008-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "puedes intentar esto\r\n\r\noGet:bGotFocus:={|| oGet:SetPos( len( oGet:value() ) ) }", "time": "03:48", "topic": "Cambiar la Posicion del cursor en un GET", "username": "Daniel Garcia-Gil" } ]
Cambiar la Posicion del cursor en un GET
[ { "date": "2008-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "FiveWinner->mcfox\r\n\r\nGracias por contestar y siguiendo tu sugerencia, esta fue la solucion:\r\n\r\n oGetc:SETFOCUS()\r\n oGetc:REFRESH()\r\n oGetc:SetPos( len( alltrim(oGetc:value()) )+1 )\r\n\r\nEl problema radica en el foco, Setpos funciona solo si el GET tiene el Foco.\r\n\r\nGracias\r\n\r\nSaludos\r\n\r\n\r\nCaray que buen Foro Tenemos...", "time": "05:08", "topic": "Cambiar la Posicion del cursor en un GET", "username": "devtuxtla" } ]
Cambiar la Posicion del cursor en un GET
[ { "date": "2012-07-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Cambiar la hora en Windows 7 através de Fivewin?\nEs posible cambiar y guardar la nueva hora?\n\nRegards, saludos.", "time": "15:47", "topic": "Cambiar la hora en Windows 7 através de Fivewin?", "username": "karinha" } ]
Cambiar la hora en Windows 7 através de Fivewin?
[ { "date": "2022-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Necesito cambiar la imagen de un botón en una ribbon al presionar, no me he dado cuenta como hacerlo.\nAgradezco la ayuda que me puedan brindar.", "time": "16:02", "topic": "Cambiar la imagen de un botón en una ribbon (Resuelto)", "username": "jose_murugosa" } ]
Cambiar la imagen de un botón en una ribbon (Resuelto)
[ { "date": "2022-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "No tengo certezca:\n\n[code=fw:1446xrtb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;Toggle<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1446xrtb]\n\nRegards, saludos.", "time": "16:42", "topic": "Cambiar la imagen de un botón en una ribbon (Resuelto)", "username": "karinha" } ]
Cambiar la imagen de un botón en una ribbon (Resuelto)
[ { "date": "2022-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias Karinha,\nVeré que sale.", "time": "17:05", "topic": "Cambiar la imagen de un botón en una ribbon (Resuelto)", "username": "jose_murugosa" } ]
Cambiar la imagen de un botón en una ribbon (Resuelto)
[ { "date": "2022-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Si tenes el boton identificado con nombre, puedes cambiarle los datos asi:\n[code=fw:16urrb74]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBot:<span style=\"color: #000000;\">cCaption</span>:= <span style=\"color: #ff0000;\">'NUEVO!'</span><br />oBot:<span style=\"color: #000000;\">FreeBitmaps</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBot:<span style=\"color: #000000;\">LoadBitMaps</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'NUEVA_IMAGEN'</span><span style=\"color: #000000;\">&#41;</span><br />oBot:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:16urrb74]", "time": "21:27", "topic": "Cambiar la imagen de un botón en una ribbon (Resuelto)", "username": "cmsoft" } ]
Cambiar la imagen de un botón en una ribbon (Resuelto)
[ { "date": "2022-09-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchísimas gracias a todos.\n[b:3l71tg3e]César, tu solución funcionó de maravillas[/b:3l71tg3e].\nMuchas gracias por tu ayuda y la de la gente del foro que siempre esta dispuesta para asistirme en las dificultades.", "time": "14:14", "topic": "Cambiar la imagen de un botón en una ribbon (Resuelto)", "username": "jose_murugosa" } ]
Cambiar la imagen de un botón en una ribbon (Resuelto)
[ { "date": "2007-04-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\nquisiera saber si esposible cambiar la justificacion de un GET definido desde recurso en tiempo de ejecucion RIGTH, LEFT o CENTER\n\nalguna idea?\n\nsaludos\n\nMarcelo", "time": "13:04", "topic": "Cambiar la justificacion de un GET", "username": "Marcelo Via Giglio" } ]
Cambiar la justificacion de un GET
[ { "date": "2008-06-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Usando el SetRdd asi, no cambia los Header ??\r\n oBrw:SetRDD(.F.,.T.)\r\nPorque ?\r\n\r\n[code:i16m8cy2]\noBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oDlg &#41; \n oBrw&#58;CreateFromResource&#40; 102 &#41; //--> Chamada ao Resource Browse&#46;\n oBrw&#58;cAlias &#58;= &#40;oDbfPlan&#58;cAlias&#40;&#41;&#41; \n oBrw&#58;SetRDD&#40;&#46;F&#46;,&#46;T&#46;&#41; \t\t\t\t \t \t\n\t*****---\tColunas ---***** \n\t//--> Planilha\n\toCol&#58;= oBrw&#58;AddCol&#40;&#41;\n oCol&#58;bStrData &#58;= &#123; || &#40;oDbfPlan&#58;cAlias&#40;&#41;&#41;->APlanPln &#125;\n oCol&#58;cHeader &#58;= \"Planilha\" \n //--> Data Contrato\t\n\toCol&#58;= oBrw&#58;AddCol&#40;&#41;\n oCol&#58;bStrData &#58;= &#123; || &#40;oDbfPlan&#58;cAlias&#40;&#41;&#41;->&#40;DtoC&#40;ADtEvPln&#41;&#41; &#125;\n oCol&#58;cHeader &#58;= \"Data\"\n[/code:i16m8cy2]\r\n\r\nUsando asi \r\n\r\noBrw:SetRDD(.T.,.T.)\r\n\r\nFunciona.\r\n\r\nSaludos, Ale", "time": "20:30", "topic": "Cambiar la ordem pelo Header da xbrowse ???", "username": "Ale SB" } ]
Cambiar la ordem pelo Header da xbrowse ???
[ { "date": "2008-07-16", "forum": "FiveWin para Harbour/xHarbour", "text": "UP !!", "time": "14:24", "topic": "Cambiar la ordem pelo Header da xbrowse ???", "username": "Ale SB" } ]
Cambiar la ordem pelo Header da xbrowse ???
[ { "date": "2008-07-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Ale,\r\n\r\nPara cambiar los nombres de las cabeceras de las columnas has de usar el tercer parámetro:\r\n\r\nMETHOD SetRDD( lAddColumns, lAutoOrder, aFldNames ) CLASS TXBrowse", "time": "17:32", "topic": "Cambiar la ordem pelo Header da xbrowse ???", "username": "Antonio Linares" } ]
Cambiar la ordem pelo Header da xbrowse ???
[ { "date": "2007-04-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas Foro!!!, Teneis ejemplos, porque he estado intentando cambiar el aspecto que viene en el ejemplo y no puedo.\n\nMUCHAS GRACIAS.", "time": "17:53", "topic": "Cambiar la vista de la clase Toutlook", "username": "Mike Serra" } ]
Cambiar la vista de la clase Toutlook
[ { "date": "2014-02-20", "forum": "FiveLinux / FiveDroid (Android)", "text": "Señores, necesito cambiar el tipo de letra, color del texto y fondo para un objeto oStatusBar, he leído y al parecer esto no puede hacerse. Lo que si se puede hacerse es agregarle un objeto label y este si se puede modificar.\n\nSi alguien lo ha hecho y me puede enviar un ejemplo se agradecería.\n\nQuedo a la espera de una pronta respuesta. <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "14:39", "topic": "Cambiar letra y color al objeto oStatusBar", "username": "jgayoso" } ]
Cambiar letra y color al objeto oStatusBar
[ { "date": "2006-11-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a Todos\n\nCual seria la forma para cambiar la leyenda a un Radio creado desde recursos ?\n\nREDEFINE RADIO oSrvFnc VAR nSrvFSld ID 103,104,105,108 OF dbSrvFin\n\n(0) Opcion 1\n( ) Opcion 2\n( ) Opcion 3\n( ) Opcion 4\n\nPara que quede :\n\n(0) Otro texto 1\n( ) Otro texto 2\n( ) Otro texto 3\n( ) Otro texto 4\n\nYa vi que haciendo desde codigo esta facil, @ X,Y RADIO ITEMS XXX, hay alguna forma para hacerlo desde un recurso ??\n\nGracias y Saludos", "time": "06:45", "topic": "Cambiar leyenda a Radios por Recursos", "username": "Raymundo Islas M." } ]
Cambiar leyenda a Radios por Recursos
[ { "date": "2006-11-05", "forum": "FiveWin para Harbour/xHarbour", "text": "oRad:aItems[n]:SetText(cTexo))", "time": "08:12", "topic": "Cambiar leyenda a Radios por Recursos", "username": "Alfredo Arteaga" } ]
Cambiar leyenda a Radios por Recursos
[ { "date": "2006-11-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Funciona Excelente !!!\n\nTe lo agradezco mucho Alfredo <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nSaludos", "time": "16:35", "topic": "Cambiar leyenda a Radios por Recursos", "username": "Raymundo Islas M." } ]
Cambiar leyenda a Radios por Recursos
[ { "date": "2010-05-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a amigos:\n\nTengo la necesidad de cambiar la longitud de un campo de mi base de datos, es numerico de 5,2 y necesito que sea de 6,2, hay alguna forma de hacerlo.\n\nUn saludo\n\nGracias\n\nCarlos", "time": "10:26", "topic": "Cambiar longitud de campo", "username": "colthop" } ]
Cambiar longitud de campo
[ { "date": "2010-05-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nLa mas facil, usando alguna herramienta : Prometheus, ourXBdu, etc, etc\n\nPor programacion tendrias renombrar el dbf original, crear el nuevo ajustado y pasar los datos, por ultimo, borrar el temporal.\n\nIgnoro si funcionaria ajustar la estructura directamente con los datos actuales, no lo he probado.\n\n\nSaludos", "time": "15:43", "topic": "Cambiar longitud de campo", "username": "Raymundo Islas M." } ]
Cambiar longitud de campo
[ { "date": "2009-04-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Que tal, Saludos a Todos.\n\nQuisiera saber como poder hacerle para poder cambiar los titulos de las columnas de un reporte, dependiendo de una variable\n\ntengo este codigo pero no me funciona\nMe sale el mismo encabezado para todas las columnas\n\n[code=fw:2po47wqq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">                      <br />  <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span>cVend<span style=\"color: #000000;\">&#41;</span><br />         cVendedor := cVend<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><br />        Column <span style=\"color: #0000ff;\">Title</span> cVendedor                  <span style=\"color: #00C800;\">Data</span> Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">NEXT</span><br /> </div>[/code:2po47wqq]\n\ny si le antepongo un & me marca un error &cVendedor\n\nSi alguien pudiera echarme la mano\n\nSaludos.", "time": "08:50", "topic": "Cambiar los Encabezados de Columnas de TReport", "username": "JavierVital" } ]
Cambiar los Encabezados de Columnas de TReport
[ { "date": "2009-04-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Javier, talvez este codigo parcial te pueda servir de guía.\nSaludos.\n\n //Columnas de las cuentas \n for n := nColIniCtas to (nColIniCtas+nColsCtas )-1\n oRpt:AddColumn( TrColumn():New( { TituCol( cAlias, n, aCuentas ) },,;\n { DatoCol( cAlias, n, aCuentas ) },12,;\n { \"@Z( 9,999,999,999.99\"},,,,,,.t.,, oRpt ) )\n next\n\n\nENDREPORT\n\nACTIVATE REPORT oRpt\n SysRefresh()\nreturn nil\n\n//----------------------------------------------------------------------------//\nstatic function TituCol( cAlias, n, aCuentas )\nRETURN { || if( substr((cAlias)->(FieldName(n)),1,3)=\"CTA\", aCuentas[n]+\" \",;\n (cAlias)->(FieldName(n)) ) }\n\n//----------------------------------------------------------------------------//\nstatic function DatoCol( cAlias, n, aCuentas )\nRETURN { || ( cAlias )->( FieldGet( n ) ) }", "time": "18:07", "topic": "Cambiar los Encabezados de Columnas de TReport", "username": "FranciscoA" } ]
Cambiar los Encabezados de Columnas de TReport
[ { "date": "2009-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco, Gracias.\n\nDe tu codigo pude resolver mi problema, ya quedo.", "time": "16:51", "topic": "Cambiar los Encabezados de Columnas de TReport", "username": "JavierVital" } ]
Cambiar los Encabezados de Columnas de TReport
[ { "date": "2010-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos del foro, nuevamente solicitando de su ayuda, tengo un recurso creado con resource builder donde tengo un grupo de radio botones, obviamente cada radio botón tiene su etiqueta, deseo usar el mismo dialogo para un proceso diferente, pero las etiquetas de los radio botones no son las mismas, entonces la pregunta es: ¿Como le cambio las etiquetas a un grupo de radio botones en un díalogo?\n\nIntente así:\noRadio:aItems[1]:=\"Nueva etiqueta1\"\noRadio:aItems[2]:=\"Nueva etiqueta2\"\n.....\n\nY así:\noRadio:aprompts[1]:=\"Nueva etiqueta1\"\noRadio:aprompts[2]:=\"Nueva etiqueta2\"\n\nPero sin exito, Alguien sabe como se hace?\n\nMuchas gracias", "time": "00:03", "topic": "Cambiar los prompts de un menu de radio botones", "username": "mariordz" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2010-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "prueba asi\n\noRadio:SetText := \"nuevo texto\"\noRadio:refresh()\n\nsino me equivoco los radios son individuales, solo que los agrupas, algun otro colega aclarara ese detalle ya que no veo en la clase ningun array de radio...\n\nsaludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "03:18", "topic": "Cambiar los prompts de un menu de radio botones", "username": "joseluisysturiz" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2010-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis, gracias por tu respuesta, desafortunadamente no funcionó, pero se me ocurrio una manera de hacerlo, en mi archivo de recursos generé los botones sin etiqueta, y junto a ellos puse objetos \"label\" con la descripción de la acción que genera cada botón, luego desde mi código solo hice un \"Redefine say oSay1 prompt\"Nueva etiqueta\" Id 100 of oDialogo\" para cada una de las etiquetas puesta cerca de los botones, ahora tengo que definir esta etiquetas cada vez qyue quiera usar este recurso.\n\nGracias de todas formas por la buena intención", "time": "16:32", "topic": "Cambiar los prompts de un menu de radio botones", "username": "mariordz" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2010-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Es asi man, ya lo probe y todo....\n\noRadio:aItems[1] := \"Nuevo nombre\"\n\nsaludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "19:38", "topic": "Cambiar los prompts de un menu de radio botones", "username": "joseluisysturiz" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2010-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Mariordz, ahora recuerdo que yo tuve que hacer lo mismo. Además definí los oSay's como [b:2826pn6m]lWnatClick := .T.[/b:2826pn6m] para que así, pinchando en el label cambiar el estado del RadioButon como si fuera su propio label. Este es el código que utilicé, por si te sirvede algo.\n\n[code=fw:2826pn6m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"GENECUOT\"</span> <span style=\"color: #0000ff;\">OF</span> oWMain ...<br />   ...<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">RADIO</span> oRad <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">321</span>,<span style=\"color: #000000;\">322</span>,<span style=\"color: #000000;\">323</span>,<span style=\"color: #000000;\">324</span> <span style=\"color: #0000ff;\">OF</span> oDlg   <span style=\"color: #B900B9;\">// CONTROLES NUMERO 22,23,24,25</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>    <span style=\"color: #B900B9;\">// CONTROL Nº 26 ( Es decir es el oDlg:aControls[26] )</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />   ...<br />   PonRads<span style=\"color: #000000;\">&#40;</span>oDlg,<span style=\"color: #000000;\">26</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 26 PORQUE EL PRIMER oSay ES EL CONTROL NUMERO 26</span><br />   ...<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTER</span> ...<br />...<br /><span style=\"color: #00C800;\">FUNCTION</span> PonRads<span style=\"color: #000000;\">&#40;</span>oDlg,nCual<span style=\"color: #000000;\">&#41;</span><br />   AEVAL<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">lWantClick</span> := .T. <span style=\"color: #000000;\">&#125;</span>, nCual, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">+0</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || ChangeRad<span style=\"color: #000000;\">&#40;</span>oDlg,nCual<span style=\"color: #000000;\">-4</span>,nCual<span style=\"color: #000000;\">-4</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || ChangeRad<span style=\"color: #000000;\">&#40;</span>oDlg,nCual<span style=\"color: #000000;\">-4</span>,nCual<span style=\"color: #000000;\">-3</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">+2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || ChangeRad<span style=\"color: #000000;\">&#40;</span>oDlg,nCual<span style=\"color: #000000;\">-4</span>,nCual<span style=\"color: #000000;\">-2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">+3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || ChangeRad<span style=\"color: #000000;\">&#40;</span>oDlg,nCual<span style=\"color: #000000;\">-4</span>,nCual<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ChangeRad<span style=\"color: #000000;\">&#40;</span>oDlg,nRad,nCual<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// nRad VALDRÁ 22 Y nCual 22, 23, 24 o 25</span><br />   AEVAL<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, nRad, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>nCual<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">oRadMenu</span>:<span style=\"color: #000000;\">nOption</span> := nCual-nRad<span style=\"color: #000000;\">+1</span><br /><span style=\"color: #00C800;\">RETURN</span>  <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2826pn6m]\n\nCon esto, cuando pincho en uno de los SAY, el RadioButon de al lado se pone en .T. y todos los demás en .F. como RadioButon normal.\n\nEspero que te sirva.", "time": "08:29", "topic": "Cambiar los prompts de un menu de radio botones", "username": "antolin" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2012-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Tienes que colocar al final \n Define Dialog odlg ResName \"PELLESC1\" title \"ESCOGER titulo\"\n Redefine RADIO oradio VAR nradio ID 150,151 of odlg\n Activate Dialog odlg on init (oradio:aItems[1]:settext(\"prompt1\"),oradio:aItems[2]:settext(\"prompt2\"))\n\nA ver si te ayuda en algo.\n\nSaludos", "time": "21:13", "topic": "Cambiar los prompts de un menu de radio botones", "username": "omarelunico" } ]
Cambiar los prompts de un menu de radio botones
[ { "date": "2008-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Tengo este botón en un folder \r\n\r\nREDEFINE GET oGet[3] VAR nDifiere picture \"@e 999,999.99\" id 104 of oFld:adialogs[2] UPDATE \r\n\r\nREDEFINE BUTTON nBut[8] ID 110 OF oFld:adialogs[2] ACTION HACERNOTA() UPDATE\r\n\r\nREDEFINE SAY oGet[4] VAR cHago id 200 of oFld:adialogs[2] UPDATE COLOR RGB(130,0,240) FONT oFont\r\n\r\n \r\nACTIVATE DIALOG odlg center\r\n\r\nY en esta rutina le digo que según esta condición cambie\r\n\r\n//\r\nif nDifiere > 0\r\n nBut[8]:cCaption := \"N. Crédito\"\r\n chago := \"N. Crédito\"\r\nelseif nDifiere < 0\r\n nBut[8]:cCaption := \"N. Débito\"\r\n chago := \"N. Débito\"\r\nelse\r\n chago := \"\"\r\nendif\r\n nBut[8]:refresh()\r\n oGet[4]:refresh()\r\ndónde nBut está declarado com estático, al igual que oGet pero el nBut no me lo actualiza. Bien oGet que es un cText me lo refresca correctamente (lo tuve que poner al fallar lo otro)\r\n\r\nA qué se debe esto? \r\n\r\nGracias\r\n\r\nLuis", "time": "15:12", "topic": "Cambiar nombre a botón", "username": "surGom" } ]
Cambiar nombre a botón
[ { "date": "2008-08-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Luis,\r\n\r\nPrueba a hacer esto para asegurarte que es el botón correcto:\r\n\r\nMsgInfo( nBut[8]:GetText() )\r\n\r\ny prueba a cambiarle el texto haciendo:\r\n\r\nnBut[8]:SetText( \"nuevo texto\" )", "time": "15:34", "topic": "Cambiar nombre a botón", "username": "Antonio Linares" } ]
Cambiar nombre a botón
[ { "date": "2008-08-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio ahora funciono perfecto\r\n\r\nLuis", "time": "11:56", "topic": "Cambiar nombre a botón", "username": "surGom" } ]
Cambiar nombre a botón
[ { "date": "2018-11-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos\n\nAlguien tiene una funcion que permita cambiar el nombre de los campos en varias tablas. Algo asi como :\n\nNFCTACLI por NFACCCLI (aqui se cambia CTA )\n\ny \n\nNFACCCLI por NFACCCUS (Aqui se cambia CLI)\n\nEsto habria que hacerlo para mas de 300 tablas\n\nGracias de antemano", "time": "19:47", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Compuin" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Compuin:\n\nYo lo hago así, alguna vez lo saque del foro y lo adapte a mi código. \n\n[code=fw:3nefhkgb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />DBCLOSEALL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />USE<span style=\"color: #000000;\">&#40;</span>Pub:<span style=\"color: #000000;\">HREM</span><span style=\"color: #000000;\">&#41;</span> EXCLUSIVE <span style=\"color: #00C800;\">NEW</span><br />COPY <span style=\"color: #0000ff;\">TO</span> COPIAREM1              <span style=\"color: #B900B9;\">//Saco copia temporal de la Base de Datos</span><br /><span style=\"color: #00C800;\">IF</span> !NETERR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  StruVieja:=DBSTRUCT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>         <span style=\"color: #B900B9;\">//Copia extructura actual</span><br />  StruNueva:=<span style=\"color: #000000;\">&#40;</span>Pub:<span style=\"color: #000000;\">HR</span><span style=\"color: #000000;\">&#41;</span>           <span style=\"color: #B900B9;\">//Structura nueva de la Base de Datos</span><br />  StrVieja:=LEN<span style=\"color: #000000;\">&#40;</span>StruVieja<span style=\"color: #000000;\">&#41;</span><br />  StrNueva:=LEN<span style=\"color: #000000;\">&#40;</span>StruNueva<span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">IF</span> StrVieja#StrNueva          <span style=\"color: #B900B9;\">//Verifica si hay diferencia crea una nueva temporal y la cambia..</span><br />     COPY <span style=\"color: #0000ff;\">TO</span> COPIAREM<br />     DBCREATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TEMPOREM\"</span>,StruNueva<span style=\"color: #000000;\">&#41;</span><br />     USE TEMPOREM<br />     CMS=Pub:<span style=\"color: #000000;\">DIRARCEMP</span>+Pub:<span style=\"color: #000000;\">CODEMP</span>+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\H</span>R\"</span>+Pub:<span style=\"color: #000000;\">CODEMP</span>+Pub:<span style=\"color: #000000;\">ANO</span><br />     APPE <span style=\"color: #0000ff;\">FROM</span> &CMS<br />     COPY <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#40;</span>Pub:<span style=\"color: #000000;\">HREM</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ELSE</span><br />     <span style=\"color: #00C800;\">IF</span> StrVieja==StrNueva   <span style=\"color: #B900B9;\">//Verifica si hay diferencia crea una nueva temporal y la cambia..</span><br />       COPY <span style=\"color: #0000ff;\">TO</span> COPIAREM<br />       DBCREATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TEMPOREM\"</span>,StruNueva<span style=\"color: #000000;\">&#41;</span><br />       USE TEMPOREM<br />       CMS=Pub:<span style=\"color: #000000;\">DIRARCEMP</span>+Pub:<span style=\"color: #000000;\">CODEMP</span>+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\H</span>R\"</span>+Pub:<span style=\"color: #000000;\">CODEMP</span>+Pub:<span style=\"color: #000000;\">ANO</span><br />       APPE <span style=\"color: #0000ff;\">FROM</span> &CMS<br />       COPY <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">&#40;</span>Pub:<span style=\"color: #000000;\">HREM</span><span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /> </div>[/code:3nefhkgb]", "time": "16:36", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "MauroArevalo" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Please use this function. This is very fast.\n[code=fw:2txel8dw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> lSuccess := .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hFile, nHeaderSize, nAt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cBuf &nbsp; &nbsp; := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> cDbf <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? cDbf + <span style=\"color: #ff0000;\">\" not found\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;cField &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span>, &nbsp; <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cReplace &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cField == cReplace<br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFile := FOpen<span style=\"color: #000000;\">&#40;</span> cDbf, FO_READWRITE + FO_EXCLUSIVE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> >= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeaderSize := BIN2I<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> cBuf, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nHeaderSize > <span style=\"color: #000000;\">32</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cBuf &nbsp; &nbsp; := Space<span style=\"color: #000000;\">&#40;</span> nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FSeek<span style=\"color: #000000;\">&#40;</span> hFile, <span style=\"color: #000000;\">0</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nAt &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> nAt > <span style=\"color: #000000;\">0</span> .and. <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cReplace, cBuf <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FSeek<span style=\"color: #000000;\">&#40;</span> hFile, nAt - <span style=\"color: #000000;\">1</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> FWrite<span style=\"color: #000000;\">&#40;</span> hFile, cReplace, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lSuccess := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; Fclose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Can not open \"</span> + cDbf + <span style=\"color: #ff0000;\">\" exclusively\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lSuccess<br />&nbsp;</div>[/code:2txel8dw]", "time": "01:52", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":30b5lxbo]Please use this function. This is very fast.\n[code=fw:30b5lxbo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> lSuccess := .f.<br />   <span style=\"color: #00C800;\">local</span> hFile, nHeaderSize, nAt<br />   <span style=\"color: #00C800;\">local</span> cBuf     := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> cDbf <span style=\"color: #000000;\">&#41;</span><br />      ? cDbf + <span style=\"color: #ff0000;\">\" not found\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> .or. ;<br />      Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span><br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   cField            := PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span>,   <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   cReplace          := PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> cField == cReplace<br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFile := FOpen<span style=\"color: #000000;\">&#40;</span> cDbf, FO_READWRITE + FO_EXCLUSIVE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> >= <span style=\"color: #000000;\">0</span><br />      <span style=\"color: #00C800;\">if</span> FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />         nHeaderSize := BIN2I<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> cBuf, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> nHeaderSize > <span style=\"color: #000000;\">32</span><br />            cBuf     := Space<span style=\"color: #000000;\">&#40;</span> nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            FSeek<span style=\"color: #000000;\">&#40;</span> hFile, <span style=\"color: #000000;\">0</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />            FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            nAt      := <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> nAt > <span style=\"color: #000000;\">0</span> .and. <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cReplace, cBuf <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />               FSeek<span style=\"color: #000000;\">&#40;</span> hFile, nAt - <span style=\"color: #000000;\">1</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #00C800;\">if</span> FWrite<span style=\"color: #000000;\">&#40;</span> hFile, cReplace, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">11</span><br />                  lSuccess := .t.<br />               <span style=\"color: #00C800;\">endif</span><br />            <span style=\"color: #00C800;\">endif</span><br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />      Fclose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      ? <span style=\"color: #ff0000;\">\"Can not open \"</span> + cDbf + <span style=\"color: #ff0000;\">\" exclusively\"</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lSuccess<br /> </div>[/code:30b5lxbo][/quote:30b5lxbo]\n\nMr. Rao, thanks!\n\nI got this error\n\nApplication\n===========\n Path and name: C:\\fwh1705\\samples\\testconv.exe (32 bits)\n Size: 3,738,112 bytes\n Compiler version: Harbour 3.2.0dev (r1801051438)\n FiveWin version: FWH 17.05\n C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)\n Windows version: 6.1, Build 7601 Service Pack 1\n\n Time from start: 0 hours 0 mins 0 secs \n Error occurred at: 11/04/18, 10:04:26\n Error description: Error BASE/1003 Variable does not exist: FO_READWRITE\n\nStack Calls\n===========\n Called from: testconv.prg => FW_DBFRENAMEFIELD( 48 )\n Called from: testconv.prg => MAIN( 16 )\n\nSystem\n======\n CPU type: Intel(R) Core(TM) i3-4160T CPU @ 3.10GHz 3092 Mhz\n Hardware memory: 8110 megs\n\n Free System resources: 90 %\n GDI resources: 90 %\n User resources: 90 %\n\n Windows total applications running: 5\n 1 , \n 2 , C:\\fwh1705\\samples\\testconv.exe \n 3 DDE Server Window, C:\\Windows\\syswow64\\OLE32.DLL \n 4 GDI+ Window, C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.24234_none_5c05ea59a00ef5 \n 5 MCI command handling window, C:\\Windows\\system32\\WINMM.DLL \n\nVariables in use\n================\n Procedure Type Value\n ==========================\n FW_DBFRENAMEFIELD\n Param 1: O Class: ERROR\n MAIN\n Param 1: C \"MXCTACLI.DBF\"\n Param 2: C \"CODCLI \"\n Param 3: C \"CUSTCODE \"\n Local 1: L .F.\n Local 2: U \n Local 3: U \n Local 4: U \n Local 5: C \" \"\n Local 6: S \n Local 7: U \n Local 8: C \"MXCTACLI.DBF\"\n Local 9: U \n Local 10: U \n Local 11: U \n\nLinked RDDs\n===========\n DBF\n DBFFPT\n DBFBLOB\n DBFNTX\n\nDataBases in use\n================\n\nClasses in use:\n===============\n 1 ERROR\n 2 HBCLASS\n 3 HBOBJECT\n 4 TWINDOW\n 5 TBRUSH\n 6 TFONT\n 7 TREG32\n 8 TSTRUCT\n\nMemory Analysis\n===============\n 360 Static variables\n\n Dynamic memory consume:\n Actual Value: 524288 bytes\n Highest Value: 524288 bytes\n\nBelow my code\n\n[code=fw:30b5lxbo]<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;\">static</span> oWnd<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 />   <span style=\"color: #00C800;\">LOCAL</span> cDbf   :=<span style=\"color: #ff0000;\">\"MXCTACLI.DBF\"</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cField :=<span style=\"color: #ff0000;\">\"CODCLI\"</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cReplace :=<span style=\"color: #ff0000;\">\"CUSTCODE\"</span> <br />   <br />   SET _3DLOOK <span style=\"color: #0000ff;\">ON</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;\">\"Storing Menus at DBFs\"</span> ;<br />   <br />   FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</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;\">\"Storing menus at a DBF\"</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> lSuccess := .f.<br />   <span style=\"color: #00C800;\">local</span> hFile, nHeaderSize, nAt<br />   <span style=\"color: #00C800;\">local</span> cBuf     := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> cDbf <span style=\"color: #000000;\">&#41;</span><br />      ? cDbf + <span style=\"color: #ff0000;\">\" not found\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> .or. ;<br />      Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span><br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   cField            := PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span>,   <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   cReplace          := PADR<span style=\"color: #000000;\">&#40;</span> UPPER<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> cField == cReplace<br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFile := FOpen<span style=\"color: #000000;\">&#40;</span> cDbf, FO_READWRITE + FO_EXCLUSIVE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> >= <span style=\"color: #000000;\">0</span><br />      <span style=\"color: #00C800;\">if</span> FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />         nHeaderSize := BIN2I<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> cBuf, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> nHeaderSize > <span style=\"color: #000000;\">32</span><br />            cBuf     := Space<span style=\"color: #000000;\">&#40;</span> nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            FSeek<span style=\"color: #000000;\">&#40;</span> hFile, <span style=\"color: #000000;\">0</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />            FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            nAt      := <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> nAt > <span style=\"color: #000000;\">0</span> .and. <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> cReplace, cBuf <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />               FSeek<span style=\"color: #000000;\">&#40;</span> hFile, nAt - <span style=\"color: #000000;\">1</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #00C800;\">if</span> FWrite<span style=\"color: #000000;\">&#40;</span> hFile, cReplace, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">11</span><br />                  lSuccess := .t.<br />               <span style=\"color: #00C800;\">endif</span><br />            <span style=\"color: #00C800;\">endif</span><br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />      Fclose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      ? <span style=\"color: #ff0000;\">\"Can not open \"</span> + cDbf + <span style=\"color: #ff0000;\">\" exclusively\"</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lSuccess<br /><br /><span style=\"color: #00C800;\">function</span> AppExit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oWnd:<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></div>[/code:30b5lxbo]", "time": "16:06", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Compuin" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Please add\n\n[code=fw:2a6oma8i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fileio.ch\"</span></div>[/code:2a6oma8i]\n\nEMG", "time": "16:11", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Enrico Maria Giordano" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":30e8k75t]Please add\n\n[code=fw:30e8k75t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fileio.ch\"</span></div>[/code:30e8k75t]\n\nEMG[/quote:30e8k75t]\n\nNo errors but is not doing any change on the field", "time": "16:13", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Compuin" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "I have revised the function. Please use the revised function given below:\nTested with \"states.dbf\" in the folder \\fwh\\samples.\n\nThis is my test program:\n[code=fw:2da2184n]<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;\">\"fileio.ch\"</span><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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cDbf &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"STATES.DBF\"</span> &nbsp;<span style=\"color: #B900B9;\">// from folder \\fwh\\samples\\states.dbf</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cField &nbsp; := <span style=\"color: #ff0000;\">\"NAME\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cReplace := <span style=\"color: #ff0000;\">\"STATENAME\"</span><br /><br />&nbsp; &nbsp;XBROWSER cDbf FASTEDIT<br />&nbsp; &nbsp;? FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;XBROWSER cDbf<br />&nbsp; &nbsp;? FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cReplace, cField <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;XBROWSER cDbf<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> FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> lSuccess := .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hFile, nHeaderSize, nAt<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cBuf &nbsp; &nbsp; := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> cDbf <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? cDbf + <span style=\"color: #ff0000;\">\" not found\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;cField &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= UPPER<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> + CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cReplace &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= UPPER<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> + CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cField == cReplace<br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> .f.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFile := FOpen<span style=\"color: #000000;\">&#40;</span> cDbf, FO_READWRITE + FO_EXCLUSIVE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> >= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeaderSize := BIN2I<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> cBuf, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nHeaderSize > <span style=\"color: #000000;\">32</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cBuf &nbsp; &nbsp; := Space<span style=\"color: #000000;\">&#40;</span> nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FSeek<span style=\"color: #000000;\">&#40;</span> hFile, <span style=\"color: #000000;\">0</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nAt := FieldAt<span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> FieldAt<span style=\"color: #000000;\">&#40;</span> cReplace, cBuf <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cReplace &nbsp; &nbsp;:= PADR<span style=\"color: #000000;\">&#40;</span> cReplace, <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FSeek<span style=\"color: #000000;\">&#40;</span> hFile, nAt - <span style=\"color: #000000;\">1</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> FWrite<span style=\"color: #000000;\">&#40;</span> hFile, cReplace, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSuccess := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? cReplace + <span style=\"color: #ff0000;\">\" exists in dbf\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;? cField + <span style=\"color: #ff0000;\">\" not in dbf\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; Fclose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Can not open \"</span> + cDbf + <span style=\"color: #ff0000;\">\" exclusively\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lSuccess<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> FieldAt<span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nAt &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">33</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nFldLen &nbsp;:= Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> nAt := <span style=\"color: #000000;\">33</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> cBuf <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">2</span> STEP <span style=\"color: #000000;\">32</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> cField == <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cBuf, nAt, nFldLen <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> nAt<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2da2184n]\n\nThis is the result:\n[url=https&#58;//imageshack&#46;com/i/pnFgs77Zp:2da2184n][img:2da2184n]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/Fgs77Z&#46;png[/img:2da2184n][/url:2da2184n]", "time": "18:27", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-04", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":26rnikfv]I have revised the function. Please use the revised function given below:\nTested with \"states.dbf\" in the folder \\fwh\\samples.\n\nThis is my test program:\n[code=fw:26rnikfv]<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;\">\"fileio.ch\"</span><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> cDbf     := <span style=\"color: #ff0000;\">\"STATES.DBF\"</span>  <span style=\"color: #B900B9;\">// from folder \\fwh\\samples\\states.dbf</span><br />   <span style=\"color: #00C800;\">local</span> cField   := <span style=\"color: #ff0000;\">\"NAME\"</span><br />   <span style=\"color: #00C800;\">local</span> cReplace := <span style=\"color: #ff0000;\">\"STATENAME\"</span><br /><br />   XBROWSER cDbf FASTEDIT<br />   ? FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br />   XBROWSER cDbf<br />   ? FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cReplace, cField <span style=\"color: #000000;\">&#41;</span><br />   XBROWSER cDbf<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> FW_DbfRenameField<span style=\"color: #000000;\">&#40;</span> cDbf, cField, cReplace <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> lSuccess := .f.<br />   <span style=\"color: #00C800;\">local</span> hFile, nHeaderSize, nAt<br />   <span style=\"color: #00C800;\">local</span> cBuf     := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> !File<span style=\"color: #000000;\">&#40;</span> cDbf <span style=\"color: #000000;\">&#41;</span><br />      ? cDbf + <span style=\"color: #ff0000;\">\" not found\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> .or. Empty<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> .or. ;<br />      Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span> .or. Len<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">10</span><br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   cField            := UPPER<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span> + CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   cReplace          := UPPER<span style=\"color: #000000;\">&#40;</span> cReplace <span style=\"color: #000000;\">&#41;</span> + CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> cField == cReplace<br />      ? <span style=\"color: #ff0000;\">\"Invalid field names\"</span><br />      <span style=\"color: #00C800;\">return</span> .f.<br />   <span style=\"color: #00C800;\">endif</span><br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFile := FOpen<span style=\"color: #000000;\">&#40;</span> cDbf, FO_READWRITE + FO_EXCLUSIVE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> >= <span style=\"color: #000000;\">0</span><br />      <span style=\"color: #00C800;\">if</span> FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />         nHeaderSize := BIN2I<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> cBuf, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> nHeaderSize > <span style=\"color: #000000;\">32</span><br />            cBuf     := Space<span style=\"color: #000000;\">&#40;</span> nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            FSeek<span style=\"color: #000000;\">&#40;</span> hFile, <span style=\"color: #000000;\">0</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />            FRead<span style=\"color: #000000;\">&#40;</span> hFile, @cBuf, nHeaderSize <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nAt := FieldAt<span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />               <span style=\"color: #00C800;\">if</span> FieldAt<span style=\"color: #000000;\">&#40;</span> cReplace, cBuf <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />                  cReplace    := PADR<span style=\"color: #000000;\">&#40;</span> cReplace, <span style=\"color: #000000;\">11</span>, CHR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                  FSeek<span style=\"color: #000000;\">&#40;</span> hFile, nAt - <span style=\"color: #000000;\">1</span>, FS_SET <span style=\"color: #000000;\">&#41;</span><br />                  <span style=\"color: #00C800;\">if</span> FWrite<span style=\"color: #000000;\">&#40;</span> hFile, cReplace, <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">11</span><br />                     lSuccess := .t.<br />                  <span style=\"color: #00C800;\">endif</span><br />               <span style=\"color: #00C800;\">else</span><br />                  ? cReplace + <span style=\"color: #ff0000;\">\" exists in dbf\"</span><br />               <span style=\"color: #00C800;\">endif</span><br />            <span style=\"color: #00C800;\">else</span><br />               ? cField + <span style=\"color: #ff0000;\">\" not in dbf\"</span><br />            <span style=\"color: #00C800;\">endif</span><br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />      Fclose<span style=\"color: #000000;\">&#40;</span> hFile <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      ? <span style=\"color: #ff0000;\">\"Can not open \"</span> + cDbf + <span style=\"color: #ff0000;\">\" exclusively\"</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lSuccess<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> FieldAt<span style=\"color: #000000;\">&#40;</span> cField, cBuf <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> nAt      := <span style=\"color: #000000;\">33</span><br />   <span style=\"color: #00C800;\">local</span> nFldLen  := Len<span style=\"color: #000000;\">&#40;</span> cField <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">for</span> nAt := <span style=\"color: #000000;\">33</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> cBuf <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">2</span> STEP <span style=\"color: #000000;\">32</span><br />      <span style=\"color: #00C800;\">if</span> cField == <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cBuf, nAt, nFldLen <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">return</span> nAt<br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:26rnikfv]\n\nThis is the result:\n[url=https&#58;//imageshack&#46;com/i/pnFgs77Zp:26rnikfv][img:26rnikfv]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/Fgs77Z&#46;png[/img:26rnikfv][/url:26rnikfv][/quote:26rnikfv]\n\nMr. Rao\n\nWorks perfect! \n\nThanks", "time": "18:31", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Compuin" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2018-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Funciona de lujo!!!\nAhora bien... una funcion como la de cambiar el nombre del campo, para cambiar la longitud del campo.\n\nLo que mas 'odio' en la tarea de actualizar programa es el cambiar el ancho de determinador campos de las bases de datos, ya sa porque el cliente se queja de que le queda corto y necesita ampliar la longitud de campos de texto.\n\nHay o alguien puede dar con la función como esta de útil y rapida que no sea copiando la base de datos a una temporal y hacer un APPEND FROM... que es como lo estoy haciendo actualmente.???\n\nGracias.", "time": "11:44", "topic": "Cambiar nombre a campos en tablas (SOLUCIONADO)", "username": "Xevi" } ]
Cambiar nombre a campos en tablas (SOLUCIONADO)
[ { "date": "2011-11-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nTengo un pequeño problema que no sé resolver. A lo mejor es una tontería, pero he intentado de todo y llevo días navegando por internet pero no encuentro solución. A ver si alguien es capaz de ayudarme.\n\nResulta que créo un documento Word con oWord:Documents:Add(), com siempre, y Word, por defecto, lo llama \"Documento1\". Con SaveAs( ... ) se puede guardar con un nombre concreto. Pero lo que quiero es que el cliente decida si guardarlo o no, y si decide guardarlo que éste se guarde con un nombre concreto, no como \"Documento1\". Para ello tengo que cambiarle el nombre al documento desde código fuente siin tener que guardarlo antes, y eso es lo que no se como hacerlo.\n\nA lo más que he llegado es a cambiarle el nombre en el pantalla con oActiveDoc:Window:Caption = \"...\", pero cuando le doy a guardar me sale el dialogo de guardarcomo donde me propone la palabra \"FECHA\" como nombre de fichero.\n\n¿Alguna idea?\n\nMuchas gracias de antmano.", "time": "13:33", "topic": "Cambiar nombre de documento Word sin guardarlo", "username": "antolin" } ]
Cambiar nombre de documento Word sin guardarlo
[ { "date": "2011-11-22", "forum": "FiveWin para Harbour/xHarbour", "text": "antolin, intenta asi:\n[code=fw:tjvm9pew]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> MsgNoYes<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Salvarlo como\"</span>, <span style=\"color: #ff0000;\">\"Por favor, Elija\"</span> <span style=\"color: #000000;\">&#41;</span>,GrabaComo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span><br />....<br /><span style=\"color: #00C800;\">Function</span> GrabaComo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; *Pedir el NOMBRE en xfile, yo se lo asignaré<br />&nbsp; &nbsp; xFile:=<span style=\"color: #ff0000;\">\"NomDoc.Doc\"</span><br />&nbsp; &nbsp; oActiveDoc:<span style=\"color: #000000;\">SaveAs</span><span style=\"color: #000000;\">&#40;</span> xFile <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br />&nbsp;</div>[/code:tjvm9pew]\n\nSaludos,\n\nAdhemar", "time": "16:18", "topic": "Cambiar nombre de documento Word sin guardarlo", "username": "acuellar" } ]
Cambiar nombre de documento Word sin guardarlo
[ { "date": "2011-11-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Acuellar, pero el problema es que el usuario tiene que revisar el informe e incluso cambair alguna cosa antes de guardarlo con un nombre concreto.\n\nEl SaveAs() no me sirve. Tengo que averiguar como le pone nombre el Office a sus ficheros para hacer lo mismo, pero no lo encuentro.\n\nSaludos", "time": "08:11", "topic": "Cambiar nombre de documento Word sin guardarlo", "username": "antolin" } ]
Cambiar nombre de documento Word sin guardarlo
[ { "date": "2011-11-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Did you try\n[code=fw:39p7bsmg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oWordDoc:<span style=\"color: #000000;\">SaveAs</span> <span style=\"color: #000000;\">&#40;</span>cWordFileName, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span></div>[/code:39p7bsmg]\n\nRegards\n[b:39p7bsmg]Anser[/b:39p7bsmg]", "time": "05:29", "topic": "Cambiar nombre de documento Word sin guardarlo", "username": "anserkk" } ]
Cambiar nombre de documento Word sin guardarlo
[ { "date": "2011-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias anserkk. Funcionó perfectamente. ¿Qué tontería, no?\n\nEl caso es que en el MSDN no especidfica nada de eso y por ahí sólo encontré que el '0' corresponde a 'wdFormatDocument', pero nadie dice que con '0' el documento no se guarda. Esta claro que los informáticos vamos a tener que estudiar adivinación para meterse en Word.\n\nGracias de nuevo.\n\nSaludos.", "time": "08:38", "topic": "Cambiar nombre de documento Word sin guardarlo", "username": "antolin" } ]
Cambiar nombre de documento Word sin guardarlo
[ { "date": "2010-05-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos\n\n¿Habría alguna posibilidad de cambiar el nombre de un fichero que tengo en el Clipboard por otro antes de grabar éste fichero en disco?.\n\nMe explico: Estoy utilizando la clase Tscan de Rafa, y el resultado del escaneo se queda en Clipboard, cuando quiero grabar en disco el fichero hago:\n[code=fw:2p98bsc3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oScan:<span style=\"color: #000000;\">ClipBoardToFile</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span></div>[/code:2p98bsc3]\n\nY me graba en disco un fichero con el nombre que le di a cfile.\nPara no estar renombrando el fichero una vez grabado, puedo renombrarlo en memoria? supongo que será más rápido.\n\nSaludos", "time": "11:10", "topic": "Cambiar nombre de fichero en Clipboard", "username": "JoseLuis" } ]
Cambiar nombre de fichero en Clipboard
[ { "date": "2010-05-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Simplemente cambia el valor de la variable cFile antes de ejecutar el método ClipBoardToFile\n\n[code=fw:19h5rbmh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />cFile:= <span style=\"color: #ff0000;\">\"nuevonombre.ext\"</span><br />oScan:<span style=\"color: #000000;\">ClipBoardToFile</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:19h5rbmh]", "time": "21:28", "topic": "Cambiar nombre de fichero en Clipboard", "username": "alvaro533" } ]
Cambiar nombre de fichero en Clipboard
[ { "date": "2023-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola buenas tardes para todos\n\nComo dice el encabezado necesitamos cambiar el contenido de un TDockPnel en tiempo ejecución \n\nLo intente de la siguiente manera pero no funciona <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nSolo actualiza el titulo \n\n[code=fw:knziv10l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">function</span> cambia<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />.....<br /><br /><span style=\"color: #B900B9;\">//Actualizamos el titulo del panel y tambien el contenido del mismo</span><br />oDock4  := TDockPnel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWChCfCn <span style=\"color: #000000;\">&#41;</span><br />    :<span style=\"color: #000000;\">SetCaption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o | <span style=\"color: #ff0000;\">\"Gestión configuración\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />    :<span style=\"color: #000000;\">SetCtrlsPnel</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | o, nT, nL, nH, nW  | fGestionConfigura<span style=\"color: #000000;\">&#40;</span> o, nT, nL, nH, nW <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />END <br /><br />...<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span> <br /><br /><br /><br />**************************<br />*GESTION DE LA INFORMACION<br />**************************<br /><span style=\"color: #00C800;\">function</span> fGestionConfigura<span style=\"color: #000000;\">&#40;</span> oP, nT, nL, nH, nW <span style=\"color: #000000;\">&#41;</span>      <br /><span style=\"color: #00C800;\">Local</span> cQry := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> oBrush,oSCtIn,oGCtIn,oGNmIn,oSCtIm,oGCtIm,oGNmIm,oSCtIc,oGCtIc,oGNmIc<br /><span style=\"color: #00C800;\">Local</span> oSApPr,oCApPr,oGVeFt,oGNmVe,oBtApl,oDlg,oFont,oFont1<br /><br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont  <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Calibri\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-13</span>  <br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFont1 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Calibri\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-13</span> BOLD<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush GRADIENT <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_WHITE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #00C800;\">if</span> nTipoDlg == <span style=\"color: #000000;\">1</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #000000;\">&#40;</span>WS_POPUP<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> oP:<span style=\"color: #000000;\">nWidth</span> , oP:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #0000ff;\">OF</span> oP <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />        oDlg:<span style=\"color: #000000;\">nTop</span>      := <span style=\"color: #000000;\">0</span><br />        oDlg:<span style=\"color: #000000;\">nLeft</span>     := <span style=\"color: #000000;\">0</span><br />        oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />        @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">5</span>   <span style=\"color: #0000ff;\">SAY</span> oSCtIn <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\"Cta. Ingreso: \"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> TRANSPARENT <span style=\"color: #0000ff;\">FONT</span> oFont1<br />        @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">GET</span> oGCtIn <span style=\"color: #0000ff;\">VAR</span> cGCtIn <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,  <span style=\"color: #000000;\">11</span>  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> BITMAP <span style=\"color: #ff0000;\">\"Bbusc\"</span> <span style=\"color: #0000ff;\">ACTION</span> EVAL<span style=\"color: #000000;\">&#40;</span>cbCuentaCnf,.T.,,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont <br />        @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">133</span> <span style=\"color: #0000ff;\">GET</span> oGNmIn <span style=\"color: #0000ff;\">VAR</span> cGNmIn <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont  <br /><br />        @ <span style=\"color: #000000;\">22</span>, <span style=\"color: #000000;\">5</span>   <span style=\"color: #0000ff;\">SAY</span> oSCtIm <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\"Cta. Impuesto: \"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> TRANSPARENT <span style=\"color: #0000ff;\">FONT</span> oFont1<br />        @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">60</span>  <span style=\"color: #0000ff;\">GET</span> oGCtIm <span style=\"color: #0000ff;\">VAR</span> cGCtIm <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> BITMAP <span style=\"color: #ff0000;\">\"Bbusc\"</span> <span style=\"color: #0000ff;\">ACTION</span> EVAL<span style=\"color: #000000;\">&#40;</span>cbCuentaCnf,.T.,,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">133</span> <span style=\"color: #0000ff;\">GET</span> oGNmIm <span style=\"color: #0000ff;\">VAR</span> cGNmIm <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        <br />        @ <span style=\"color: #000000;\">37</span>, <span style=\"color: #000000;\">5</span>   <span style=\"color: #0000ff;\">SAY</span> oSCtIc <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\"Cta. Csc/Ban/Cja:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> TRANSPARENT <span style=\"color: #0000ff;\">FONT</span> oFont1<br />        @ <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">60</span>  <span style=\"color: #0000ff;\">GET</span> oGCtIc <span style=\"color: #0000ff;\">VAR</span> cGCtIc <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> BITMAP <span style=\"color: #ff0000;\">\"Bbusc\"</span> <span style=\"color: #0000ff;\">ACTION</span> EVAL<span style=\"color: #000000;\">&#40;</span>cbCuentaCnf,.T.,,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        @ <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">133</span> <span style=\"color: #0000ff;\">GET</span> oGNmIc <span style=\"color: #0000ff;\">VAR</span> cGNmIc <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />        @ <span style=\"color: #000000;\">52</span>, <span style=\"color: #000000;\">5</span>   <span style=\"color: #0000ff;\">SAY</span> oSApPr <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\"Grupo Afectar:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> TRANSPARENT <span style=\"color: #0000ff;\">FONT</span> oFont1<br />        @ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">60</span>  DBCOMBO oCApPr <span style=\"color: #0000ff;\">VAR</span> nCApPr <span style=\"color: #0000ff;\">ITEMS</span> aId LIST aIdLis <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont<br />        @ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">133</span> <span style=\"color: #0000ff;\">GET</span> oGVeFt <span style=\"color: #0000ff;\">VAR</span> cGVeFt <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        @ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #0000ff;\">GET</span> oGNmVe <span style=\"color: #0000ff;\">VAR</span> cGNmVe <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">108</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        <br />        @ <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">60</span> BUTTONBMP oBtApl <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">13</span> <span style=\"color: #0000ff;\">RESOURCE</span> oLamcla:<span style=\"color: #000000;\">cIcoSis</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Aplicar\"</span> TEXTRIGHT <br />        <br />        oGNmIn:<span style=\"color: #000000;\">disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        oGNmIm:<span style=\"color: #000000;\">disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        oGNmIc:<span style=\"color: #000000;\">disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        oGNmVe:<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;\">NOWAIT</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>SetParent<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span>, oP:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">MOVE</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, , , .T. <span style=\"color: #000000;\">&#41;</span> <br /><br />elseif nTipoDlg == <span style=\"color: #000000;\">2</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">STYLE</span> <span style=\"color: #000000;\">&#40;</span>WS_POPUP<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> oP:<span style=\"color: #000000;\">nWidth</span> , oP:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #0000ff;\">OF</span> oP <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />        oDlg:<span style=\"color: #000000;\">nTop</span>      := <span style=\"color: #000000;\">0</span><br />        oDlg:<span style=\"color: #000000;\">nLeft</span>     := <span style=\"color: #000000;\">0</span><br />        oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />        @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">5</span>   <span style=\"color: #0000ff;\">SAY</span> oSCtOt <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #ff0000;\">\"Cta. Ingreso: \"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> TRANSPARENT <span style=\"color: #0000ff;\">FONT</span> oFont1<br />        @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">GET</span> oGCtOt <span style=\"color: #0000ff;\">VAR</span> cGCtOt <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,  <span style=\"color: #000000;\">11</span>  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> BITMAP <span style=\"color: #ff0000;\">\"Bbusc\"</span> <br />        @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">133</span> <span style=\"color: #0000ff;\">GET</span> oGNmOt <span style=\"color: #0000ff;\">VAR</span> cGNmOt <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">11</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@N\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont  <br />        <br />        @ <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">60</span> BUTTONBMP oBtApl <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">13</span> <span style=\"color: #0000ff;\">RESOURCE</span> oLamcla:<span style=\"color: #000000;\">cIcoSis</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Aplicar Rete\"</span> TEXTRIGHT <br />        <br />    <br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>SetParent<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span>, oP:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">MOVE</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, , , .T. <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">Return</span> oDlg<br /> </div>[/code:knziv10l]", "time": "18:28", "topic": "Cambiar objetos en un panel de TDockPnel tiempo ejecución", "username": "leandro" } ]
Cambiar objetos en un panel de TDockPnel tiempo ejecución
[ { "date": "2023-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Leandro, \nPara plantearte este tema has de enfocarlo en primer lugar olvidándote de que el contenedor sea un dockpnel o no \nPor cierto, no entiendo el por qué necesitas usar un dialog dentro del dockpnel, pero imagino que tus razones tendrás\nSi, olvidándote del dockpnel, tuvieras un dialog al que en tiempo de ejecución quisieras cambiar los controles que tiene, cómo lo harías ?\nIntenta eso y seguimos viendo lo que necesitas\nRecuerda que todo contenedor tiene un array ::aControls, en el que están todos los objetos que has definido dentro, por lo tanto\n[code=fw:lci04psa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   AEVal<span style=\"color: #000000;\">&#40;</span> oContenedor:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:lci04psa]\ndebería destruir todos los controles que hubiera ( al margen de posiblemente tener que hacer alguna cosa más ), que es el primer paso para la reutilización del contenedor\nEn el ejemplo que indicas es lo mismo, pero lo complicas poniendo un dialog dentro del dockpnel\nSi los controles se pintasen sobre el propio dockpnel y no sobre el dialog, el array de controles está en el objeto:\n[quote:lci04psa]\n oDock:oPnelH:aControls\n[/quote:lci04psa]\nquiero recordar\nEn tu caso, el array oDock:oPnelH:aControls solo contiene el objeto oDlg del diálog, por lo que \n[code=fw:lci04psa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   AEval<span style=\"color: #000000;\">&#40;</span>  oDock:<span style=\"color: #000000;\">oPnelH</span>:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">// Debería destruir todos los controles que hubiese en el dialog ya definidos</span><br /> </div>[/code:lci04psa]\nHay otras técnicas posibles a aplicar en el caso del uso de dockpnels, pero para poderte orientar necesitaría ver exactamente lo que pretendes.\nQuedo atento a tus comentarios\n\nPd.: no vuelvas a crear el dockpnel cada vez ( te lo digo porque tu código no me queda muy claro )", "time": "20:14", "topic": "Cambiar objetos en un panel de TDockPnel tiempo ejecución", "username": "cnavarro" } ]
Cambiar objetos en un panel de TDockPnel tiempo ejecución
[ { "date": "2023-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo buenas tardes, gracias por responder \n[quote:1jisi8nu]Para plantearte este tema has de enfocarlo en primer lugar olvidándote de que el contenedor sea un dockpnel o no\nPor cierto, no entiendo el por qué necesitas usar un dialog dentro del dockpnel, pero imagino que tus razones tendrás[/quote:1jisi8nu]\nPues referente a este tema, es por que asumí <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> que no se podía hacer, si no que era necesario hacerlo sobre el dialogo, simplemente seguí un ejemplo que había por ahí en el foro. Gracias por la recomendación, ya quite el dialogo y funciona de maravilla.\n\n[quote:1jisi8nu]Hay otras técnicas posibles a aplicar en el caso del uso de dockpnels, pero para poderte orientar necesitaría ver exactamente lo que pretendes.\nQuedo atento a tus comentarios[/quote:1jisi8nu]\nAmigo lo que pretendemos es cambiar los objetos de están dentro del dockpnel, nunca lo habíamos intentando de esa manera (destruyendo los objetos), pero ya que lo mencionas creo que podemos ocultar y mostrar los objetos que están dentro del dockpnel show() hide(), de esta manera causamos el mismo efecto. \n\n[quote:1jisi8nu]Pd.: no vuelvas a crear el dockpnel cada vez ( te lo digo porque tu código no me queda muy claro )[/quote:1jisi8nu]\nSimplemente lo intentamos de esa manera a ver si lográbamos solucionarlo. <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->", "time": "22:56", "topic": "Cambiar objetos en un panel de TDockPnel tiempo ejecución", "username": "leandro" } ]
Cambiar objetos en un panel de TDockPnel tiempo ejecución
[ { "date": "2023-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Cualquier cosa, dame un \"grito\"", "time": "23:58", "topic": "Cambiar objetos en un panel de TDockPnel tiempo ejecución", "username": "cnavarro" } ]
Cambiar objetos en un panel de TDockPnel tiempo ejecución
[ { "date": "2021-03-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches compañeros,\nTengo una tabla xBrowse y la idea es que a medida que el usuario aplica filtros sobre ella, que el orden de algunas columnas cambie. Cómo puedo cambiar el orden de las columnas desde el código? Gracias de antemano!", "time": "05:34", "topic": "Cambiar orden de columnas de un xBrowse", "username": "santidedos" } ]
Cambiar orden de columnas de un xBrowse
[ { "date": "2021-03-21", "forum": "FiveWin para Harbour/xHarbour", "text": "oCol:SetOrder()", "time": "19:50", "topic": "Cambiar orden de columnas de un xBrowse", "username": "nageswaragunupudi" } ]
Cambiar orden de columnas de un xBrowse
[ { "date": "2008-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros:\r\n\r\n¿Se podría cambiar la presentación de un Dialogs, cambiando el típico \"pantallazo\" por una aparición o cierre progresivo, dándole más movimiento a la ventana, tipo power-point?\r\n\r\n¿Existe alguna funcion por ahí que permita cambiar estos pantallazos?\r\nMil gracias.\r\nLOREN", "time": "21:20", "topic": "Cambiar pantallazos en los Dialogs", "username": "Loren" } ]
Cambiar pantallazos en los Dialogs