messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-01-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Como posso centralizar los itens, na MgsItem:\n\n1-)\n[img:2zm3nonh]http://www.technet.com.br/~jackson/sbsarq/bmps/msgbar1.JPG[/img:2zm3nonh]\n\n2-)\n[img:2zm3nonh]http://www.technet.com.br/~jackson/sbsarq/bmps/msgbar2.JPG[/img:2zm3nonh]\n\nSaluds", "time": "21:07", "topic": "Centered..MsgItem ...", "username": "Ale SB" } ]
Centered..MsgItem ...
[ { "date": "2008-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Ale,\n\nModifica el método Paint() de la Clase TMsgItem.\n\nEn FWH 8.02 esta correctamente implementado", "time": "12:13", "topic": "Centered..MsgItem ...", "username": "Antonio Linares" } ]
Centered..MsgItem ...
[ { "date": "2008-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Maestro....precisamente...qual Linha...devo mudar ?\n\nSaluds", "time": "13:03", "topic": "Centered..MsgItem ...", "username": "Ale SB" } ]
Centered..MsgItem ...
[ { "date": "2008-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "::oMsgBar:Say( ::oMsgBar:nHeight / 4 - 2,;\n nLeft + 3 + ( ::nWidth - GetTextWidth( hDC, AllTrim( ::cMsg ) ) ) / 2,;\n AllTrim( ::cMsg ), If( ::lActive, ::nClrText, ::nClrDisabled ),;\n ::nClrPane, ::oFont, .T., .T. )", "time": "14:39", "topic": "Centered..MsgItem ...", "username": "Antonio Linares" } ]
Centered..MsgItem ...
[ { "date": "2008-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Perfect Maestro.....Gracias\n\nSaluds", "time": "18:08", "topic": "Centered..MsgItem ...", "username": "Ale SB" } ]
Centered..MsgItem ...
[ { "date": "2009-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Everyone,\n\nI see that the nDataBmpAlign variable of the TXBrwColumn class allows for only left or right justification, but not centering. And yet the Testxbr3.prg sample shows a checkbox bitmap being centered in the, \"Married\" column (this dialog is reached by selecting Window, RDD, Selected Cols). I looked at the code for the RddBrwSelColsWin() function of the sample which supports the browse, and I saw where the checkbox bitmap was being set via the code:\n\n[code=fw:y91m5uti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> oCol := oBrw:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Married\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      oCol:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ON\"</span>, <span style=\"color: #ff0000;\">\"OFF\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      oCol:<span style=\"color: #000000;\">cSortOrder</span>  := <span style=\"color: #00C800;\">nil</span><br />      <span style=\"color: #B900B9;\">// oCol:lBmpStretch = .T.</span><br />   <span style=\"color: #00C800;\">endif</span><br /> </div>[/code:y91m5uti]\n\nBut I don't see how the centering of the checkbox bitmap is being done. Can anyone tell me what variable is being set to center the checkbox bitmap?\n\nThanks!\n\n-Patrick", "time": "01:44", "topic": "Centering Checkbox Bitmaps in txbrowse columns", "username": "PatrickWeisser" } ]
Centering Checkbox Bitmaps in txbrowse columns
[ { "date": "2009-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello patrick\n\nwhat FWH version do you use?", "time": "02:08", "topic": "Centering Checkbox Bitmaps in txbrowse columns", "username": "Daniel Garcia-Gil" } ]
Centering Checkbox Bitmaps in txbrowse columns
[ { "date": "2009-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Daniel,\n\nI'm still on the October 2008 version. I have customized some of the TGet code for my needs so it always takes me time to re-apply my changes when I download a new FiveWin version. But I think it's time for me to upgrade again so I won't fall too far behind everyone else. \n\nThe October 2008 version does appear to have the ability to center a check box in a browse column in the TestXbr3.prg sample, so I'm probably just missing something simple in the TextXbr3.prg source code.\n\nThanks,\n\n-Patrick", "time": "03:11", "topic": "Centering Checkbox Bitmaps in txbrowse columns", "username": "PatrickWeisser" } ]
Centering Checkbox Bitmaps in txbrowse columns
[ { "date": "2009-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Patrick...\n\ndo you use array ? \nbecause the octuber version no work this feature....\n\nit was added in december \n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=72507#p72507\">viewtopic.php?p=72507#p72507</a><!-- l -->\n* Enhancement: Class TXBrowe, the checkbox image can be centered when an array is browsed. \n\npelase update your actual version or i can tell you how change the xbrowse class", "time": "03:21", "topic": "Centering Checkbox Bitmaps in txbrowse columns", "username": "Daniel Garcia-Gil" } ]
Centering Checkbox Bitmaps in txbrowse columns
[ { "date": "2009-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Daniel,\n\nYes I'm browsing an array, so that's the problem exactly. I will update my FiveWin version. It's past time I did that anyway.\n\nThank you!\n\n-Patrick", "time": "08:40", "topic": "Centering Checkbox Bitmaps in txbrowse columns", "username": "PatrickWeisser" } ]
Centering Checkbox Bitmaps in txbrowse columns
[ { "date": "2007-11-15", "forum": "FiveWin para Harbour/xHarbour", "text": "¿Es posible centralizar el título en un cuadro de diálogo, en la barra de título?\n\nSaludos", "time": "03:25", "topic": "Centralizar Titulo em Dialog ????/", "username": "Ale SB" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2007-11-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Puedes añadirle espacios a la izquierda del título\nSpace( 40 ) + cTitulo", "time": "08:17", "topic": "Centralizar Titulo em Dialog ????/", "username": "Antonio Linares" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2007-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Habia una forma en clipper que se usaba para el centrado de titulos en la pantalla o documentos a imprimir, que era diviendo el tamaño de columnas creo que entre 2 y restandole el tamaño del texto o algo asi, si alguien recuerda eso, bueno te serviria, deja revisar en mi clipoteca a ver si la encuentro y te la envio o publico.practica lo que te dije de la division.saludos.... lo bueno de esto es que si cambias el tamaño del dialogo se centra igual en cambio como te dice antonio te va a quedar movido en titulo y vas a tener que estar incrementando SPACE(), podrias hacerte una funcioncita, bye.", "time": "16:37", "topic": "Centralizar Titulo em Dialog ????/", "username": "joseluisysturiz" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2007-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Supongo que lo que comenta Jose Luis es algo similar a esto:\n[code:3q3fmqot]\nFUNCTION Centra&#40;cCadena,nLon,cRelleno&#41;\n DEFAULT nLon&#58;=78\n DEFAULT cRelleno&#58;=Space&#40;1&#41; \n cCadena&#58;= Replicate&#40;cRelleno,Int&#40;&#40;nLon-Len&#40;cCadena&#41;&#41;/2&#41;&#41;+cCadena+Replicate&#40;cRelleno,Int&#40;&#40;nLon-Len&#40;cCadena&#41;&#41;/2&#41;&#41;\nRETURN cCadena[/code:3q3fmqot]\nPero para que te funcione ok, necesitas saber el ancho donde lo quieres centrar.", "time": "17:23", "topic": "Centralizar Titulo em Dialog ????/", "username": "Biel EA6DD" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2007-11-16", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Biel EA6DD\":7wek935e]Supongo que lo que comenta Jose Luis es algo similar a esto:\n[code:7wek935e]\nFUNCTION Centra&#40;cCadena,nLon,cRelleno&#41;\n DEFAULT nLon&#58;=78\n DEFAULT cRelleno&#58;=Space&#40;1&#41; \n cCadena&#58;= Replicate&#40;cRelleno,Int&#40;&#40;nLon-Len&#40;cCadena&#41;&#41;/2&#41;&#41;+cCadena+Replicate&#40;cRelleno,Int&#40;&#40;nLon-Len&#40;cCadena&#41;&#41;/2&#41;&#41;\nRETURN cCadena[/code:7wek935e]\nPero para que te funcione ok, necesitas saber el ancho donde lo quieres centrar.[/quote:7wek935e]\nEse mismo Biel, logico que como dices, debe saber el ancho del dialogo y creo es lo mas facil de todo y depende si usa tamaño por pixeles u otra forma.Gracias por esa Biel..., voy probarla a ver que tal va... <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->", "time": "22:25", "topic": "Centralizar Titulo em Dialog ????/", "username": "joseluisysturiz" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2007-11-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias amigos para las pistas !\n\nSauludos", "time": "14:37", "topic": "Centralizar Titulo em Dialog ????/", "username": "Ale SB" } ]
Centralizar Titulo em Dialog ????/
[ { "date": "2013-12-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nComo puedo hacer que me centralice el texto en un botón.... me deja un espacio en la parte superior...\n\ngracias\n\n\n @ 110,320 BTNBMP oRECEP ;\n SIZE 40,25 Of oFol:aDialogs[2] ;\n PROMPT 'Control de' + CRLF + 'Recepcion' 2007 ; //TexIdio[19] 2007 ;\t\t\t//'Control de RECEPCION'\n tooltip 'Control de Recepcion' ;\n ACTION (If((COMPSOL)->CANCELA > 0 .and. (COMPSOL)->CANCELA < 4 ,;\n (nRecNo := AMB_REC( EMPRESA, mCodiUSUA , (COMPSOL)->(Recno()) ) ,;\n If(nRecno = 0,(COMPSOL)->( DbGoBottom() ) , (COMPSOL)->(DbGoTo(nRecNo)) ), ;\n oBrwCom:refresh()) ,;\n MsgInfo('Compras con RECEPCION DEFINITIVA','Recepcion') ) )", "time": "15:13", "topic": "Centralizar texto den BTNBMP", "username": "davidObarrio" } ]
Centralizar texto den BTNBMP
[ { "date": "2013-12-07", "forum": "FiveWin para Harbour/xHarbour", "text": "David \nEn el la carpeta \"FWH\\SAMPLES\" tienes el ejemplo [color=#0040FF:2y9itetb]\"testbtn3\"[/color:2y9itetb] ahi encontraras las distinas formas de usar el BTNBMP\nEspero te sirva\n\nSaludos", "time": "17:57", "topic": "Centralizar texto den BTNBMP", "username": "Blessed" } ]
Centralizar texto den BTNBMP
[ { "date": "2013-12-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias por tu repuesta\n\nestuve viendo el ejemplo y sigo con el problema.... no lo centraliza\n\ngracias\n\ndavid", "time": "22:22", "topic": "Centralizar texto den BTNBMP", "username": "davidObarrio" } ]
Centralizar texto den BTNBMP
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "How can I centralize an image in the center of the window regardless the user resize the window, maximize, etc?", "time": "21:25", "topic": "Centralize image in window", "username": "sambomb" } ]
Centralize image in window
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "The needed calculation on window-resize\n( I can add a compiled sample + source if needed )\n\n[b:9gmhgv51]Logo :[/b:9gmhgv51]\n\n[color=#008000:9gmhgv51][b:9gmhgv51]@ nLTop, nLLeft IMAGE oLogo ; // Top / Left\nFILENAME c_Path1 + cLogo ;\nNOBORDER ;\nOF oWnd PIXEL UPDATE TRANSPARENT[/b:9gmhgv51][/color:9gmhgv51]\n\n[b:9gmhgv51]The calculation to center the image-position on window-resize :[/b:9gmhgv51]\n\n[color=#0000FF:9gmhgv51][b:9gmhgv51]oWnd:bResized := {|| nLTop := INT( ( ( oWnd:nHeight ) / 2 ) - ( oLogo:nHeight / 2 ) ), ;\nnLLeft := INT( ( ( oWnd:nWidth - 18 ) / 2 ) - ( oLogo:nWidth / 2 ) ), ;\noLogo:Move( nLTop, nLLeft, , , .T. ) }[/b:9gmhgv51][/color:9gmhgv51]\n\nbest regards\nUwe <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "22:51", "topic": "Centralize image in window", "username": "ukoenig" } ]
Centralize image in window
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Worked fine! Thanks!", "time": "22:58", "topic": "Centralize image in window", "username": "sambomb" } ]
Centralize image in window
[ { "date": "2015-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "The results\n\n[b:al7e9lm4]Full screen[/b:al7e9lm4]\n\n[img:al7e9lm4]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Center3&#46;jpg[/img:al7e9lm4]\n\n[b:al7e9lm4]Resized[/b:al7e9lm4]\n\n[img:al7e9lm4]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Center4&#46;jpg[/img:al7e9lm4]\n\nbest regards\nUwe <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "23:04", "topic": "Centralize image in window", "username": "ukoenig" } ]
Centralize image in window
[ { "date": "2006-06-09", "forum": "FiveWin para Pocket PC", "text": "Amigos\nSaben como puedo centrar el texto de un SAY en vertical. Con FWH funcionaba indicando en nStyle = SS_CENTERIMAGE pero no responde con FWPPC. \n\nSaludos\nToni Sales", "time": "09:27", "topic": "Centrar SAY verticalmente", "username": "tsales" } ]
Centrar SAY verticalmente
[ { "date": "2008-05-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola foro\r\n\r\n Se puede centrar un say verticalmente desde recursos ?\r\n\r\n\r\n un saludo", "time": "08:02", "topic": "Centrar Say ?", "username": "Frafive" } ]
Centrar Say ?
[ { "date": "2008-05-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Haces asi, con SAYROTATED()\r\n[code:3iqcxkzx]\n LOCAL oFont1, oFont2\n\n DEFINE FONT oFont1 NAME \"Arial\" SIZE 0,-36 NESCAPEMENT 90*10\n DEFINE FONT oFont2 NAME \"Arial\" SIZE 0,-24 BOLD NESCAPEMENT 45*10\n\n ACTIVATE DIALOG ODLGD CENTERED ;\n ON INIT SNDPLAYSOUND&#40;\"&#46;\\LEMBRETE&#46;WAV\" &#41; ;\n ON PAINT&#40; SayRotated&#40; oDlgd, 260, 10, ; // 235 210\n \"Vendas \", oFont1,,, &#46;t&#46; &#41;, ;\n SayRotated&#40; oDlgd, 150, 500, \"About \", oFont2, ; //150,420\n CLR_HRED, CLR_YELLOW, &#46;F&#46; &#41; &#41;\n\n//---------------------------------------------------------------------------//\n\nFunction SayRotated&#40; oWnd, Y, X, cPrompt, oFont, nClrText, nClrPane, l3D &#41;\n\n Local hDC &#58;= oWnd&#58;hDC\n\n DEFAULT nClrText &#58;= CLR_HRED, l3D &#58;= &#46;T&#46;\n \n IF l3D\n DrawRotated&#40; hdc, cPrompt, Y + 1, X + 1, CLR_BLACK, nClrPane, oFont &#41;\n DrawRotated&#40; hdc, cPrompt, Y - 1, X - 1, nClrText, nClrPane, oFont &#41;\n ENDIF\n\n DrawRotated&#40; hdc, cPrompt, Y , X , nClrText, nClrPane, oFont &#41;\n\nReturn Nil\n\n//----------------------------------------------------------------------------\n\nStatic Function DrawRotated&#40; hDC, cPrompt, Y, X, nClrText, nClrPane, oFont &#41;\n\n Local hOldFont, nOldMode, nOldClrText, nOldClrPane, nOldBkMode\n\n nOldClrText &#58;= SetTextColor&#40; hDC, nClrText &#41;\n\n if nClrPane <> Nil\n nOldClrPane &#58;= SetBkColor&#40; hDC, nClrPane &#41;\n else\n nOldBkMode &#58;= SetBkMode&#40; hDC,1 &#41;\n Endif\n\n hOldFont &#58;= SelectObject&#40; hDC, oFont&#58;hFont &#41;\n\n TextOut&#40; hDC, Y, X, cPrompt, Len&#40; cPrompt &#41; &#41;\n\n SelectObject&#40; hDC, hOldFont &#41;\n\n if nClrPane<>nil\n SetBkColor&#40; hDC, nOldClrPane &#41;\n else\n SetBkMode&#40; hDC, nOldBkMode &#41;\n Endif\n\n SetTextColor&#40; hDC, nOldClrText &#41;\n\nReturn Nil\n\n//----------------------------------------------------------------------------\n[/code:3iqcxkzx]\r\n\r\nSaludos, desde Brasil.", "time": "13:43", "topic": "Centrar Say ?", "username": "karinha" } ]
Centrar Say ?
[ { "date": "2009-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nEstoy intentando centrar una ventana en la principal pero no se que hago mal que no me la centra.\n\nYo la intento crear de la siguiente manera:\n\n[code=fw:2yzpycs6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oVentPrinc <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">24</span>,<span style=\"color: #000000;\">80</span>;               <span style=\"color: #B900B9;\">// Se define la ventana principal</span><br />  <span style=\"color: #0000ff;\">TITLE</span>  <span style=\"color: #ff0000;\">\"CyEWin Contabilidad y Estimaciones en WINDOWS\"</span> ;      <span style=\"color: #B900B9;\">//T¡tulo de la ventana</span><br />  COLORS RGB <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span>, RGB <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>;<br />  <span style=\"color: #0000ff;\">ICON</span> <span style=\"color: #ff0000;\">\"cyewin.ico\"</span>;<br />  <span style=\"color: #0000ff;\">MENU</span> PreparaMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">TO</span> oFont<br />  SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"CYEWIN Contabilidad y Estimaciones en WINDOWS - Colt Hop ED., S.L.\"</span> KEYBOARD CLOCK DATE <span style=\"color: #000000;\">2007</span><br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlgw <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">600</span>*ProPor,<span style=\"color: #000000;\">800</span>*ProPor <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Ventana\"</span> <span style=\"color: #0000ff;\">COLOR</span> escri01, fondo01 NOICONICE NOMAXIMICE NOCAPTION<br /><br />  <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlgw <span style=\"color: #0000ff;\">NORMAL</span><br />  quitmenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />*  datomenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />*  catotdia<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  gestmenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  oDlgw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  oDlgw:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">&#40;</span>oVentPrinc:<span style=\"color: #000000;\">oWndClient</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />  oDlgw:<span style=\"color: #000000;\">SetFocus</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;\">WINDOW</span> oVentPrinc <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> gestusua<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">VALID</span> salida2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">&#40;</span> BmpTiled<span style=\"color: #000000;\">&#40;</span> hDC, oVentPrinc, oBmpTiled <span style=\"color: #000000;\">&#41;</span>, PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">&#40;</span> oVentPrinc:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">&#40;</span> oBmp:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">&#40;</span> oVentPrinc:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">&#40;</span> oBmp:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, oBmp:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2yzpycs6]\n\nPero me sale asi:\n\n[img:2yzpycs6]http&#58;//www&#46;colthop&#46;es/prueba&#46;jpg[/img:2yzpycs6]\n\nY la ventana completa es asi:\n\n[img:2yzpycs6]http&#58;//www&#46;colthop&#46;es/prueba1&#46;jpg[/img:2yzpycs6]\n\nAlguien me puede decir porque me pasa esto y no la centa en la ventana.\n\nUn saludo y Gracias de antemano\n\nCarlos", "time": "10:43", "topic": "Centrar Ventana en Ventana Principal", "username": "colthop" } ]
Centrar Ventana en Ventana Principal
[ { "date": "2009-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "ponle en el activate la clausula 'CENTERED'", "time": "21:33", "topic": "Centrar Ventana en Ventana Principal", "username": "ADBLANCO" } ]
Centrar Ventana en Ventana Principal
[ { "date": "2009-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Para centrar ventanas hijas en un entorno MDI debes crear una función que lo haga...\nY ponerla en el ON INIT.\nLa cláusula CENTERED es soportada por los diálogos, no por las WINDOW.\nEspero te sirva la idea.", "time": "21:45", "topic": "Centrar Ventana en Ventana Principal", "username": "jrestojeda" } ]
Centrar Ventana en Ventana Principal
[ { "date": "2008-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos:\r\n\r\nQuisiera saber si hay alguna manera de centrar el contenido de una columna en un LISTBOX. Algo parecido a aJustify pero que en vez de alinearlo a la derecha lo centre en la columna.\r\n\r\nUn saludo\r\n\r\nCarlos", "time": "18:03", "topic": "Centrar columna en un LIXTBOX", "username": "colthop" } ]
Centrar columna en un LIXTBOX
[ { "date": "2008-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\r\n\r\nTe refieres a un browse ? Cual browse estás usando ?", "time": "18:43", "topic": "Centrar columna en un LIXTBOX", "username": "Antonio Linares" } ]
Centrar columna en un LIXTBOX
[ { "date": "2008-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\r\n\r\nYo me refiero a:\r\n\r\n@ 1, 2 LISTBOX odlg09 VAR oLbx2 ;\r\n FIELDS letra, puesto;\r\n FIELDSIZES 120,120;\r\n HEADERS \"Unidad\", \"SI o NO\";\r\n SIZE 120,120;\r\n ON LEFT CLICK cambitras();\r\n OF odlgw\r\n oLbx2:aJustify:={.T.,.T.}\r\n\r\nSi pongo la última linea me lo justifica a la derecha y lo que quisiera saber si hay alguna instruccion en vez de esa que lo que haga es centrarlo.\r\n\r\nUn saludo\r\n\r\ncarlos", "time": "18:47", "topic": "Centrar columna en un LIXTBOX", "username": "colthop" } ]
Centrar columna en un LIXTBOX
[ { "date": "2008-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\r\n\r\nOk, estas usando la clase TWBrowse.\r\n\r\nSi revisas el fichero source\\classes\\wbrowse.prg en la función wBrwLine() verás que se usan unas llamadas a:\r\n\r\nSetTextAlign( hDC, TA_RIGHT )\r\nó a \r\nSetTextAlign( hDC, TA_LEFT )\r\n\r\nNecesitarías SetTextAlign( hDC, TA_CENTER ) para centrar el texto. Lo que ocurre es que nosotros usamos un valor lógico en el array aJustify, por lo que no serviría para indicarle centrado, ya que necesitamos un tercer estado.\r\n\r\nHay que pensar la forma de hacerlo manteniendo la compatibilidad con el código actual. Mientras tanto puedes modificar tu mismo source\\classes\\wbrowse.prg y probarlo.", "time": "19:00", "topic": "Centrar columna en un LIXTBOX", "username": "Antonio Linares" } ]
Centrar columna en un LIXTBOX
[ { "date": "2008-04-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio asi lo hare.\r\n\r\nUn saliudo\r\n\r\nCarlos", "time": "19:03", "topic": "Centrar columna en un LIXTBOX", "username": "colthop" } ]
Centrar columna en un LIXTBOX
[ { "date": "2006-09-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nHe estado probando Resource Builder 2.5 y la verdad es que me parece excelente y como dice el Master RF, da más de lo que vale, sin embargo no he encontrado la forma de centrar controles en un diálogo, por ejemplo, los clásicos botones ACEPTAR y CANCELAR deseo centrarlos en el diálogo que los contiene.\n\nEs o no posible ?, o es que no he visto cómo se hace ? <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\nSaludos, Armando", "time": "18:39", "topic": "Centrar controles en Resource Builder", "username": "Armando" } ]
Centrar controles en Resource Builder
[ { "date": "2005-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos.\n\nAlguien que me pueda ayudar necesito centrar un texto en la hoja, pero este texto es variable.\n\n oPrn:CmSay( x,y,\"Algo\", ::oFont7 ,,,,1)\n\ndesde ya muchas gracias...", "time": "03:19", "topic": "Centrar texto en la clase TPrinter", "username": "Fco_Ozuna" } ]
Centrar texto en la clase TPrinter
[ { "date": "2005-12-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\ntienes que aumentar el parametro de ancho withd para que se pueda calcular en que area quieres centrar el texto\n\nMarcelo\n\n[quote=\"Fco_Ozuna\":wejkvvjj]Hola a todos.\n\nAlguien que me pueda ayudar necesito centrar un texto en la hoja, pero este texto es variable.\n\n oPrn:CmSay( x,y,\"Algo\", ::oFont7 ,,,,1)\n\ndesde ya muchas gracias...[/quote:wejkvvjj]", "time": "16:27", "topic": "Centrar texto en la clase TPrinter", "username": "Marcelo Via Giglio" } ]
Centrar texto en la clase TPrinter
[ { "date": "2006-05-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola chicos(as)\nEsto haciendo un informe con TPRINTER y utilizo Cmsay para presentar los datos. Pero tengon problema no consiguo centrar un texto en el centro dle informe\n\nHago esto\nPRINT oPrn PREVIEW\n oPrn:SetPortrait() //Ponemos la impresion en vertical\n PrnSetSize( 2100, 2970 ) //Tamaño de la pagina\n\n DEFINE FONT oFnt1 NAME \"Arial\" SIZE 0,-7 BOLD OF oPrn\n DEFINE FONT oFnt2 NAME \"Arial\" SIZE 0,-13 BOLD OF oPrn\n DEFINE FONT oFnt3 NAME \"Arial\" SIZE 0,-15 BOLD OF oPrn\n DEFINE FONT oFnt4 NAME \"Arial\" SIZE 0,-24 BOLD OF oPrn\n DEFINE FONT oFnt5 NAME \"Arial\" SIZE 0,-10 ITALIC OF oPrn\n DEFINE FONT oFnt6 NAME \"Arial\" SIZE 0,-10 BOLD OF oPrn\n DEFINE FONT oFnt7 NAME \"Arial\" SIZE 0,-7 OF oPrn\n DEFINE FONT oFnt8 NAME \"Courier New\" SIZE 0,-14 ITALIC BOLD OF oPrn\noPrn:Startpage()\noPrn:CmSay(27.50,10.50,Dtoc(date()) ,oFnt7 )\noPrn:CmSay(27.50,14.30,Reparto->NOMORI ,oFnt7 )\noPrn:CmSay(28.00,03.00,Substr(Agenc->CODTER,1,2)+' '+SubStr(Agenc->NOMAGE,1,21),oFnt7 )\noPrn:CmSay(28.00,09.80,Agenc->DIRECC ,oFnt7 )\n\n\n.................\n\n[b:1vsl1ggd]oPrn:CmSay(29.00,09.80,Reparto->NOMDES,oFnt8,,,,TA_CENTER )[/b:1vsl1ggd]\nAqui quiero al final de la pagina centrar un texto pero no se como\n\n\n\n.................\nEndpage \nEnd Print\n\nAlguien pued decirme como lo hago?\n\nGracias", "time": "07:12", "topic": "Centrar texto en un informe", "username": "jmua" } ]
Centrar texto en un informe
[ { "date": "2006-05-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionado, en lugar de utilzat PAD_CENTER lo hacia con TA_CENTER\n\nGracias a todos", "time": "07:45", "topic": "Centrar texto en un informe", "username": "jmua" } ]
Centrar texto en un informe
[ { "date": "2021-04-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola. Quisiera saber como puedo centrar los titulos de las columnas en un xBrowse.\ny aprovecho para consultar como especifico el ancho de las columnas del xBrowse ( en ColSizes me cuesta o no se como definirlos correctamente ).\n asi lo tengo definido.\n @ 4,5 XBROWSE oBrw ;\n COLUMNS \"CodCliente\", \"RazonSoc\", \"Direccion\", \"EstadoCta\", \"FecSdoAct\", \"GenPrecio\", \"SaldoAct\" ;\n COLSIZES-10,-10,-10,-10,-10,-10,-10 OF oDlg ;\n SIZE 712,285 PIXEL ;\n JUSTIFY .T. ;\n ALIAS cAlias AUTOSORT FOOTERS LINES CELL NOBORDER ;\n BACKGROUND aGrad VERTICAL\ny por ultimo como agrego espacios al inicio del contenido de un campo?\nejemplo.\nen un registro tengo un campo NIVEL que es numérico y un campo DETALLE que es Alfabético y quiero \" indentar \" el campo detalle con tantos espacios adelante como lo indique el campo nivel,\npara poder mostrarlo asi:\n\nINGRESOS\n Cobros en Efectivo\n Cobros con Cheques\n Cheques Corrientes\n Cheques a Fecha\n .... \n\nGracias", "time": "04:55", "topic": "Centrar títulos de columnas en xBrowse.", "username": "José Camilo" } ]
Centrar títulos de columnas en xBrowse.
[ { "date": "2021-04-27", "forum": "FiveWin para Harbour/xHarbour", "text": "After defining the browse,\nTo center headers of all columns:\n[code=fw:2z5uw4zm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw:<span style=\"color: #000000;\">nHeadStrAligns</span> := AL_CENTER<br /> </div>[/code:2z5uw4zm]\n\nColsizes: You need to specify the column sizes. XBrowse automatically decides the width of each column depending on the contents of the column.\n\nSpecifying colsizes is optional.\n\nIndenting text:\n[code=fw:2z5uw4zm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCol:<span style=\"color: #000000;\">bIndent</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">cAlias</span> <span style=\"color: #000000;\">&#41;</span>->LEVEL * <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:2z5uw4zm]\nThis indents text by 20 * LEVEL number of pixels.", "time": "20:55", "topic": "Centrar títulos de columnas en xBrowse.", "username": "nageswaragunupudi" } ]
Centrar títulos de columnas en xBrowse.
[ { "date": "2021-04-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Aqui tenés un ejemplo:\n\n[code=fw:3i5u6gan]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> XBrwIndentado<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg, oBrw<br /><br />&nbsp; &nbsp;DbCreate<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\C</span>ata\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"CODIGO\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"NIV\"</span>, &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"N\"</span>, &nbsp;<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"DESCRIP\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;dbUseArea<span style=\"color: #000000;\">&#40;</span>.t.,,<span style=\"color: #ff0000;\">\"CATA\"</span>,<span style=\"color: #ff0000;\">\"CATA\"</span>,.f.<span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;dbSelectArea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"CATA\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5101\"</span> &nbsp; &nbsp;; field->Niv := <span style=\"color: #000000;\">1</span> ; field->descrip := <span style=\"color: #ff0000;\">\"GASTOS DE ADMINISTRACION\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5101001\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Salarios\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5101002\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Vacaciones\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5101003\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Aguinaldo\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5102\"</span> &nbsp; &nbsp;; field->Niv := <span style=\"color: #000000;\">1</span> ; field->descrip := <span style=\"color: #ff0000;\">\"GASTOS DE VENTA\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5102001\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Salarios\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5102002\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Comisiones\"</span><br />&nbsp; &nbsp;DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Field->Codigo := <span style=\"color: #ff0000;\">\"5102003\"</span> ; field->Niv := <span style=\"color: #000000;\">4</span> ; field->descrip := <span style=\"color: #ff0000;\">\"Gastos de Viaje\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">450</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Prueba XBrw Indentado\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style=\"color: #ff0000;\">\"CATA\"</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">\"Codigo\"</span>,<span style=\"color: #ff0000;\">\"Niv\"</span>, <span style=\"color: #ff0000;\">\"Descrip\"</span> ;<br />&nbsp; &nbsp; &nbsp; SIZES <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">300</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nHeadStrAligns</span> := AL_CENTER<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">Descrip</span>:<span style=\"color: #000000;\">bIndent</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Cata->Niv > <span style=\"color: #000000;\">1</span>, Cata->Niv * <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;CATA-><span style=\"color: #000000;\">&#40;</span>dbCloseArea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Ferase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\C</span>ATA.DBF\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3i5u6gan]\n\nSaludos.", "time": "22:42", "topic": "Centrar títulos de columnas en xBrowse.", "username": "FranciscoA" } ]
Centrar títulos de columnas en xBrowse.
[ { "date": "2021-04-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas Gracias !!!!", "time": "23:17", "topic": "Centrar títulos de columnas en xBrowse.", "username": "José Camilo" } ]
Centrar títulos de columnas en xBrowse.
[ { "date": "2007-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas, estoy interesado en centrar un texto con TPRINTER,sabiendo el texto a centrar, el font del texto y si la impresion es vertical o horizontal.\n\nGracias.\nUn Saludo.", "time": "16:20", "topic": "Centrar un texto con TPrinter", "username": "softruz" } ]
Centrar un texto con TPrinter
[ { "date": "2007-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"softruz\":1bv9t73x]Muy buenas, estoy interesado en centrar un texto con TPRINTER,sabiendo el texto a centrar, el font del texto y si la impresion es vertical o horizontal.\n\nGracias.\nUn Saludo.[/quote:1bv9t73x]\n\nBajate las clase TImprime y TUtilPrn, estan por aqui en el foro de utilidades,\ny ahi tienes el codigo fuente que realiza eso y mucho mas...", "time": "17:54", "topic": "Centrar un texto con TPrinter", "username": "thefull" } ]
Centrar un texto con TPrinter
[ { "date": "2007-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "PRINT oPrn NAME \"Reporte de nomina semanal ...\" PREVIEW\nDEFINE FONT oFnt1 NAME \"Arial\" SIZE 0, -08 OF oPrn bold\n\nPAGE\n oPrn:CmSay(1, 01, 'TEXTO NORMAL', oFnt1 )\n\n _centraCm(1, 'TEXTO CENTRADO', oPrn, oFnt1 )\n\nENDPAGE\nENDPRINT\n\n\nFUNCTION _centraCm(nRen,cValor, oPrn, oFont )\n oPrn:CmSay(nRen,0,cValor,oFont,oPrn:nHorzRes,,,2 )\nRETURN (nil)\n\n\nsaludos.", "time": "23:21", "topic": "Centrar un texto con TPrinter", "username": "sysctrl2" } ]
Centrar un texto con TPrinter
[ { "date": "2008-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\r\n\r\ncentrar una imagen en la pantalla es sencillo, pero como se podria hacer tprinter, se puede sacar la resolucion horizontal y/o vertical de la impresora, pero como sacar la resolucion de la imagen en el contexto del dispositivo de impresion, alguna sugerencia?\r\n\r\nsaludos\r\n\r\nMarcelo", "time": "14:52", "topic": "Centrar una imagen en tprinter", "username": "Marcelo Via Giglio" } ]
Centrar una imagen en tprinter
[ { "date": "2019-10-04", "forum": "mod_harbour", "text": "Ep!\n\nAqui tenemos el ejemplo que hemos montado esta semana con nuestro mod. Esta semana hemos testeado con Apache Windows para probar ADO\n\nPantalla de Autenticacion\nADO connection!\nMS SQL database\nBrowser (todo a pelo, sin usar pluggins)\nPaginacion\nEdicion de registro\nControl de errores en la edicion, validacion de datos\n...\n\nUsando nuestro MVC (Modelo/Vista/Controlador) Mercury\n\n<!-- m --><a class=\"postlink\" href=\"http://modharbour.sysctrlsoftware.com:39391/seamap-3\">http://modharbour.sysctrlsoftware.com:39391/seamap-3</a><!-- m -->\n\n\nRegards\nC.", "time": "19:27", "topic": "Cerrando circulos...", "username": "Carles" } ]
Cerrando circulos...
[ { "date": "2009-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nSe puede hacer que mi Aplicacion se cierre si está un tiempo determinado Inactivo?\n\ngracias\n\nDavid\nargentina", "time": "10:48", "topic": "Cerrar Aplicaciones Abiertas", "username": "dobfivewin" } ]
Cerrar Aplicaciones Abiertas
[ { "date": "2009-06-29", "forum": "FiveWin para Harbour/xHarbour", "text": "DAvid, podes hacer con un TIMER\n\nSaludos\n\nAdhemar", "time": "14:06", "topic": "Cerrar Aplicaciones Abiertas", "username": "acuellar" } ]
Cerrar Aplicaciones Abiertas
[ { "date": "2013-10-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola AMIGOS....\n\nQuiero cerrar mi Aplicación luego de cierto tiempo que no se use, alguien tendrá un ejemplo o implementado algo?\n\nmuchas gracias\n\nSaludos\n\nDavid", "time": "22:42", "topic": "Cerrar Aplicación cuando no se use", "username": "davidObarrio" } ]
Cerrar Aplicación cuando no se use
[ { "date": "2014-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Se me ocurre utilizar un timer que vaya incrementando un contador, donde el contador determinará cuando quieres que se apague, cada vez que realices un proceso borras el contador para que el timer vuelva a empezar, si no se usa, no se reinicia el contador y al llegar al tiempo esperado cierras el programa", "time": "18:30", "topic": "Cerrar Aplicación cuando no se use", "username": "quique" } ]
Cerrar Aplicación cuando no se use
[ { "date": "2014-01-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, mira mi classe tinativo:\n\nSaludos\n\nWilliam Adami\n\n\n[code=fw:2sthfr35]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />* exemplo <span style=\"color: #00C800;\">do</span> uso da classe Tinativo<br />* Apos um tempo de inatividade <span style=\"color: #00C800;\">do</span> mouse <br />* e <span style=\"color: #00C800;\">do</span> teclado chama uma funcao qualquer.<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br />*************<br /><span style=\"color: #00C800;\">function</span> main<br />*************<br /><br />nTempo_espera:=<span style=\"color: #000000;\">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Tempo a ser esperado ate chamar a funcao</span><br /><br />cNome_funcao:=<span style=\"color: #ff0000;\">\"LOGOFF()\"</span> &nbsp; <span style=\"color: #B900B9;\">//nome da funcao a ser chamada quando </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//chegar no tempo de espera</span><br /><br />lTimercontinua:=.f. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//se apos executar a funcao , continua monitorando </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//a inatividade do mouse e teclado.</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;\">\"Teste de teclado e mouse\"</span><br /><br /><span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">window</span> oWnd <span style=\"color: #0000ff;\">on</span> <span style=\"color: #0000ff;\">init</span> tinativo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span>nTempo_espera,cNome_funcao, lTimerContinua<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> logoff<br /><br />&nbsp; msgalert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"AQUI ENTRA SUA FUNCAO DE LOGOFF !\"</span>,<span style=\"color: #ff0000;\">\"AVISO\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><br /><br />tinativo.prg<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TINATIVO<br /><br />&nbsp; <span style=\"color: #00C800;\">DATA</span> nTimeInpAntes<br />&nbsp; <span style=\"color: #00C800;\">DATA</span> nTimeInpDepois<br />&nbsp; <span style=\"color: #00C800;\">DATA</span> cTimeAtu <br />&nbsp; <span style=\"color: #00C800;\">DATA</span> nTempo<br />&nbsp; <span style=\"color: #00C800;\">DATA</span> oTimerTime<br />&nbsp; <span style=\"color: #00C800;\">DATA</span> cFunc<br />&nbsp; <span style=\"color: #00C800;\">DATA</span> lContinuar<br /><br />&nbsp; <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">NEW</span><span style=\"color: #000000;\">&#40;</span> nTime, cFuncao, lContinua <span style=\"color: #000000;\">&#41;</span> &nbsp;CONSTRUCTOR<br /><br />&nbsp; <span style=\"color: #00C800;\">METHOD</span> ver_tempo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><br />**********************<br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span>ntime,cFuncao,lContinua<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TINATIVO<br />**********************<br />::<span style=\"color: #000000;\">cfunc</span>:=cfuncao<br />::<span style=\"color: #000000;\">ntempo</span>:=ntime<br />::<span style=\"color: #000000;\">lContinuar</span>:=lContinua<br />::<span style=\"color: #000000;\">oTimerTime</span> := TTimer<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1000</span>, <span style=\"color: #000000;\">&#123;</span> || ::<span style=\"color: #000000;\">VER_TEMPO</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: #000000;\">oTimerTime</span>:<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />::<span style=\"color: #000000;\">cTimeAtu</span> := time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />::<span style=\"color: #000000;\">nTimeInpAntes</span> := getInputState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 0 = erro</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">self</span><br /><br /><br />*************************<br /><span style=\"color: #00C800;\">METHOD</span> VER_TEMPO <span style=\"color: #00C800;\">CLASS</span> TINATIVO<br />*************************<br />::<span style=\"color: #000000;\">nTimeInpDepois</span> := getInputState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nTimeInpDepois</span> - ::<span style=\"color: #000000;\">nTimeInpAntes</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nTimeInpAntes</span> := getInputState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cTimeAtu</span> := time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br /><br /><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> CONVTIME<span style=\"color: #000000;\">&#40;</span>time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> - CONVTIME<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cTimeAtu</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > ::<span style=\"color: #000000;\">ntempo</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oTimerTime</span>:<span style=\"color: #000000;\">DeActivate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aux:=::<span style=\"color: #000000;\">cfunc</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;* aqui executa a funcao <br /><br />&nbsp; &nbsp;&aux <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lContinuar</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">oTimerTime</span>:<span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">cTimeAtu</span> := time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> CONVTIME<span style=\"color: #000000;\">&#40;</span>ZZ<span style=\"color: #000000;\">&#41;</span><br />Z:=<span style=\"color: #000000;\">&#40;</span>VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>ZZ,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">360</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #000000;\">&#40;</span>VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>ZZ,<span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">60</span><span style=\"color: #000000;\">&#41;</span>+VAL<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">RIGHT</span><span style=\"color: #000000;\">&#40;</span>ZZ,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> Z<br /><br /><br />**----------------------------------------------------------------------<br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><span style=\"color: #00D7D7;\">#define</span> _WIN32_WINNT 0x0500<br /><span style=\"color: #00D7D7;\">#define</span> WINVER 0x0500<br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"windows.h\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbapi.h\"</span><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> GETINPUTSTATE <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />LASTINPUTINFO lpi;<br />lpi.cbSize = sizeof<span style=\"color: #000000;\">&#40;</span>LASTINPUTINFO<span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>!GetLastInputInfo<span style=\"color: #000000;\">&#40;</span>&lpi<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />hb_retni<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />hb_retni<span style=\"color: #000000;\">&#40;</span>lpi.dwTime<span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:2sthfr35]", "time": "21:38", "topic": "Cerrar Aplicación cuando no se use", "username": "WilliamAdami" } ]
Cerrar Aplicación cuando no se use
[ { "date": "2014-01-16", "forum": "FiveWin para Harbour/xHarbour", "text": "William,\nHe probado la utilidad y funciona muy bién, me será util.\nGracias por el aporte. <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "17:06", "topic": "Cerrar Aplicación cuando no se use", "username": "José Vicente Beltrán" } ]
Cerrar Aplicación cuando no se use
[ { "date": "2014-01-16", "forum": "FiveWin para Harbour/xHarbour", "text": "William, Excelente!!!", "time": "18:07", "topic": "Cerrar Aplicación cuando no se use", "username": "karinha" } ]
Cerrar Aplicación cuando no se use
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\nel siguiente codigo funciona\n[code=fw:1nfftf3u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #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> oDlg<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">40</span> <br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">bLostFocus</span> = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1nfftf3u]\n\npero cuando el dialogo es definido desde recursos no, esto funcionaba en versiones previas a la 9.06 si no me equivoco y dejo de funcionar con las versiones nuevas.\n\nAlguna idea?\n\nsaludos\n\nMarcelo", "time": "04:24", "topic": "Cerrar Dialogo al perder el foco", "username": "Marcelo Via Giglio" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "M,\n\nHe testeado en 10.8 y funciona OK", "time": "16:25", "topic": "Cerrar Dialogo al perder el foco", "username": "Carles" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos\n\nprobado en la 10.12 y funciona bien", "time": "16:55", "topic": "Cerrar Dialogo al perder el foco", "username": "Daniel Garcia-Gil" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\ngracias por responder, tienen razon, funciona, mi problema es que hice un mal ejemplo, el problema es cuando hay algun control mas en el dialog por ejemplo un botton.\n\nRecuerdo que lo utilice para hacer un calendario emergente y que si uno hacia click fuera del dialogo este se cerraba, esto dejo de funcionar, pero veo que la solucion es que el dialogo se cierre cuando se pierda el foco del control definido en el dialogo y no asi del dialogo en si, esto creo que funcionara.\n\nGracias y saludos\n\nMarcelo", "time": "17:52", "topic": "Cerrar Dialogo al perder el foco", "username": "Marcelo Via Giglio" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Marcelo\n\nPrepara un ejemplo que podamos reproducir el error\n\nGracias", "time": "17:57", "topic": "Cerrar Dialogo al perder el foco", "username": "Daniel Garcia-Gil" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Daniel,\n\nno estoy seguro que sea un error, por ejemplo, lo siguiente no cierra el dialogo\n[code=fw:1wclj82x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, b<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">40</span> <br /><br />   @ <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> b <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Close'</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oDlg:<span style=\"color: #000000;\">bLostFocus</span> = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <br /> </div>[/code:1wclj82x]\n\npero lo siguiente si\n[code=fw:1wclj82x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, b<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">40</span> <br /><br />   @ <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> b <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Close'</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   b:<span style=\"color: #000000;\">bLostFocus</span> = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> b:<span style=\"color: #000000;\">setFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <br /> </div>[/code:1wclj82x]\n\nAntes funciono, no recuerdo la version pero era 7... u 8... pero creo que de esta manera me sirve, no se si es lo esperado, Uds. lo diran\n\nMuchas gracias por la atencion\n\nsaludos\n\nMarcelo", "time": "18:07", "topic": "Cerrar Dialogo al perder el foco", "username": "Marcelo Via Giglio" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-01-27", "forum": "FiveWin para Harbour/xHarbour", "text": "No sé si digo un disparate pero para poder cerrar el dialogo cuando pierde el foco, este debe ser NoWait, sin esta característica el dialogo nunca pierde el foco. Saludos", "time": "14:33", "topic": "Cerrar Dialogo al perder el foco", "username": "horacio" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-02-04", "forum": "FiveWin para Harbour/xHarbour", "text": "tente utilizar assim:\n\nodlg:bstart:={||oDlg:bLostFocus = { || oDlg:end() } }\n\nRonaldo", "time": "23:07", "topic": "Cerrar Dialogo al perder el foco", "username": "ronaldo" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-02-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio, si no me equivoco, el dialogo, si tiene controles, nunca toma el foco, las NOWAIT menos. Yo utilizo muchas de esas ventanitas y siempre la cierro cuando TODOS los controles dejan de tener foco. No encontré otra solución.\n\nUn saludo", "time": "08:23", "topic": "Cerrar Dialogo al perder el foco", "username": "antolin" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2011-02-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Aqui te pongo un ejemplo que funciona\n\n[code=fw:3248cl5b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #0000ff;\">Of</span> oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> <span style=\"color: #0000ff;\">Pixel</span> <span style=\"color: #0000ff;\">Font</span> oFonts1<br /><br />&nbsp; &nbsp;oDlg : <span style=\"color: #000000;\">nStyle</span> &nbsp; &nbsp;:= &nbsp;nOr<span style=\"color: #000000;\">&#40;</span> WS_POPUP <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oDlg : <span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || oDlg : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> Group oGrupo <span style=\"color: #0000ff;\">To</span> oDlg : <span style=\"color: #000000;\">nRight</span> / <span style=\"color: #000000;\">2</span> - <span style=\"color: #000000;\">8</span>, oDlg : <span style=\"color: #000000;\">nBottom</span> / <span style=\"color: #000000;\">2</span> - <span style=\"color: #000000;\">8</span> Label <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #0000ff;\">Pixel</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ListBox</span> oLbx Fields <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">85</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">Pixel</span> <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #0000ff;\">Font</span> oFonts<br />&nbsp; &nbsp;oLbx : <span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span> aPeriodos <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;With Object oLbx<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bLine</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nAt | nAt := oLbx : <span style=\"color: #000000;\">nAt</span>, <span style=\"color: #000000;\">&#123;</span> Alltrim<span style=\"color: #000000;\">&#40;</span> aPeriodos<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bFont</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol, nStyle | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nStyle == <span style=\"color: #000000;\">1</span>, oFonts3 : <span style=\"color: #000000;\">hFont</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nStyle == <span style=\"color: #000000;\">3</span> .and. <span style=\"color: #000000;\">&#40;</span> nCol == <span style=\"color: #000000;\">2</span> .or. nCol == <span style=\"color: #000000;\">3</span> .or. nCol == <span style=\"color: #000000;\">4</span> .or. nCol == <span style=\"color: #000000;\">5</span> &nbsp;.or. nCol == <span style=\"color: #000000;\">6</span> .or. nCol == <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#41;</span>, oFonts3 : <span style=\"color: #000000;\">hFont</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: #000000;\">lDrawHeaders</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nHeaderHeight</span> := <span style=\"color: #000000;\">15</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aHJustify</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aJustify</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nClrFFore</span> &nbsp; &nbsp; := CLR_RED<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nLineHeight</span> &nbsp; := <span style=\"color: #000000;\">20</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aColSizes</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lCellStyle</span> &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nClrLine</span> &nbsp; &nbsp; &nbsp;:= RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">235</span>, <span style=\"color: #000000;\">235</span>, <span style=\"color: #000000;\">235</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bLDblClick</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || ConmutaBase<span style=\"color: #000000;\">&#40;</span> oLbx, aPeriodos, oDlg <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bKeyDown</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> | nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_RETURN, ConmutaBase<span style=\"color: #000000;\">&#40;</span> oLbx, aPeriodos, oDlg <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nClrPane</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oLbx : <span style=\"color: #000000;\">nAt</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">245</span>,<span style=\"color: #000000;\">245</span>,<span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nLineStyle</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nHeaderStyle</span> &nbsp;:= <span style=\"color: #000000;\">6</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//If( nStyle == 3 .and. nCol == 3, CLR_BLACK, )</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nFooterStyle</span> &nbsp;:= <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bTextColor</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> | nRow, nCol, nStyle | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nStyle == <span style=\"color: #000000;\">1</span>, CLR_HEAD, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//:bBkColor &nbsp; &nbsp; &nbsp; := { | nRow, nCol, nStyle | If( nStyle == 3 .and. nCol == 1, CLR_WHITE, ) }</span><br />&nbsp; &nbsp;End<br /><br /><span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg <span style=\"color: #0000ff;\">On</span> <span style=\"color: #0000ff;\">Init</span><span style=\"color: #000000;\">&#40;</span> oDlg : <span style=\"color: #000000;\">bLostFocus</span> := <span style=\"color: #000000;\">&#123;</span> || oDlg : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, oDlg : <span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">nBottom</span> + <span style=\"color: #000000;\">&#40;</span> oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">oMsgBar</span> : <span style=\"color: #000000;\">nTop</span> - <span style=\"color: #000000;\">4</span> - oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">oMsgBar</span> : <span style=\"color: #000000;\">nBottom</span> <span style=\"color: #000000;\">&#41;</span> - oDlg : <span style=\"color: #000000;\">nHeight</span>, oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">oMsgBar</span> : <span style=\"color: #000000;\">nRight</span> - <span style=\"color: #000000;\">&#40;</span> oDlg : <span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">150</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, Centra<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span>, oLbx : <span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oLbx : <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">Valid</span><span style=\"color: #000000;\">&#40;</span> oFuente1 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFuente2 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFonts : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFonts1 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFonts2 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFonts3 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">NoWait</span><br />&nbsp;</div>[/code:3248cl5b]\nEspero te sirva\nSaludos", "time": "15:25", "topic": "Cerrar Dialogo al perder el foco", "username": "horacio" } ]
Cerrar Dialogo al perder el foco
[ { "date": "2013-04-26", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25706&start=30#p143679\">viewtopic.php?f=3&t=25706&start=30#p143679</a><!-- l -->", "time": "21:02", "topic": "Cerrar Dialogo al perder el foco", "username": "Antonio Mart." } ]
Cerrar Dialogo al perder el foco
[ { "date": "2009-04-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas, necesito cerrar un dialogo definido como Nowait y como popup, es decir, como yo tengo la propiedad NOWAIT entonces si hago oDlg:end(), me dice que la variable ya no existe, eso es normal, pero me gustaría saber como puedo cerrar dicho dialogo.\n\nUn Saludo.", "time": "11:46", "topic": "Cerrar Dialogo con parametros NOWAIT y POPUP", "username": "softruz" } ]
Cerrar Dialogo con parametros NOWAIT y POPUP
[ { "date": "2009-04-06", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"softruz\":3hmidh3t]Muy buenas, necesito cerrar un dialogo definido como Nowait y como popup, es decir, como yo tengo la propiedad NOWAIT entonces si hago oDlg:end(), me dice que la variable ya no existe, eso es normal, pero me gustaría saber como puedo cerrar dicho dialogo.\n\nUn Saludo.[/quote:3hmidh3t]\n\nEn el PRG en donde declaras el DIALOG:\n\na) añades\n[code=fw:3hmidh3t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> oElDlg<br /> </div>[/code:3hmidh3t]\nb) declaras la función\n[code=fw:3hmidh3t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> CierraElDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oElDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oElDlg := <span style=\"color: #00C800;\">Nil</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /> </div>[/code:3hmidh3t]\nc) Declaras el DIALOG\n[code=fw:3hmidh3t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DIALOG</span> oElDlg <span style=\"color: #0000ff;\">NOWAIT</span> ...<br /> </div>[/code:3hmidh3t]\nd) Donde quieras cerrar el DIALOG usas la función declarada\n[code=fw:3hmidh3t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />CierraElDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3hmidh3t]\n\nUn saludo\nCarlos G.", "time": "12:25", "topic": "Cerrar Dialogo con parametros NOWAIT y POPUP", "username": "FiveWiDi" } ]
Cerrar Dialogo con parametros NOWAIT y POPUP
[ { "date": "2009-04-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Puedes definir la variabe oDlg como Estatica externa, de esta maneras pudes ejecutar oDlg:End()\n[code=fw:fyzibxs8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> oDlg<br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ...<br />   FunCreaDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ...<br />   oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ...<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">FUNCTION</span> FunCreaDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />   ...<br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span><br /> </div>[/code:fyzibxs8]", "time": "12:25", "topic": "Cerrar Dialogo con parametros NOWAIT y POPUP", "username": "Biel EA6DD" } ]
Cerrar Dialogo con parametros NOWAIT y POPUP
[ { "date": "2009-04-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Funciona correctamente, muchas gracias por vuestras siempre respuestas.\n\nUn Saludo.", "time": "12:41", "topic": "Cerrar Dialogo con parametros NOWAIT y POPUP", "username": "softruz" } ]
Cerrar Dialogo con parametros NOWAIT y POPUP
[ { "date": "2007-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nUso la clase toleauto para crear archivos en formato excel y word pero cada vez que abro la clase se queda en el Administrador de Tareas del Ordenador EXCEL.EXE o WINWORD.EXE, alguien me podria decir como se pueden cerrar estas aplicaciones desde el programa, gracias.\n\nUn saludo\n\nCarlos", "time": "16:00", "topic": "Cerrar EXCEL.EXE o WINWORD.EXE", "username": "colthop" } ]
Cerrar EXCEL.EXE o WINWORD.EXE
[ { "date": "2007-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Carlos,\n\n Pone al final:\n\noExcel:=NIL\n\nSaludos,", "time": "19:21", "topic": "Cerrar EXCEL.EXE o WINWORD.EXE", "username": "Kleyber" } ]
Cerrar EXCEL.EXE o WINWORD.EXE
[ { "date": "2007-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Kleyber por tu dato, lo he puesto y cuando salgo de la aplicacion lo cierra.\n\nUn saludo y gracias de nuevo\n\nCarlos", "time": "19:36", "topic": "Cerrar EXCEL.EXE o WINWORD.EXE", "username": "colthop" } ]
Cerrar EXCEL.EXE o WINWORD.EXE
[ { "date": "2007-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos:\n\nIntenta con \n\noExcel:WorkBooks:Close()\noExcel:Quit()\n\nSaludos", "time": "23:36", "topic": "Cerrar EXCEL.EXE o WINWORD.EXE", "username": "Armando" } ]
Cerrar EXCEL.EXE o WINWORD.EXE
[ { "date": "2021-10-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados amigos,\n\nNinguna de las dos opciones funcionaron.\n\nLa de Joao se ejectua sin problemas pero no cierra el .exe\n\nLa de hmpaquito arroja error en RUN &C", "time": "02:15", "topic": "Cerrar Ejecutable externo", "username": "JoseAlvarez" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos amigos del foro.\n\nEstoy utilizando el programa de terceros [b:1ewugon3]LTFViewr5u.exe[/b:1ewugon3] para hacer un preview con la clase TDosPrn\n\nTodo funciona muy bien, solo que al salir del modulo que lo llama, debo cerrarlo manualmente como es logico, ya que es una aplicacion de terceros.\n\nAlguna manera de cerrarlo desde mi sistema?\n\nGracias por la ayuda que puedan prestarme", "time": "22:18", "topic": "Cerrar Ejecutable externo", "username": "JoseAlvarez" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-08", "forum": "FiveWin para Harbour/xHarbour", "text": "c:= \"TaskKill /IM LTFViewr5u.exe\"\nRUN &c", "time": "22:29", "topic": "Cerrar Ejecutable externo", "username": "hmpaquito" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Intenta con:\n\n[code=fw:2t0ixobj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   SendMessage<span style=\"color: #000000;\">&#40;</span> FindWindow<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"LTFViewr5u\"</span> <span style=\"color: #000000;\">&#41;</span>, WM_CLOSE <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2t0ixobj]\n\nRegards, saludos", "time": "22:33", "topic": "Cerrar Ejecutable externo", "username": "karinha" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenos días !!!\n\nJosé mira si en este hilo puedes encontrar lo que buscas:\n\n[url:20leca9m]https&#58;//groups&#46;google&#46;com/g/harbour-users/c/FCyLEly6l-0[/url:20leca9m]\n\nMuchas gracias.\n\nSaludos,", "time": "10:09", "topic": "Cerrar Ejecutable externo", "username": "Baxajaun" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-09", "forum": "FiveWin para Harbour/xHarbour", "text": "También se podría ajustar el siguiente código a Harbour\n\n[code=fw:2roe9sur]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <process.h><br /><span style=\"color: #00D7D7;\">#include</span> <Tlhelp32.h><br /><span style=\"color: #00D7D7;\">#include</span> <winbase.h><br /><span style=\"color: #00D7D7;\">#include</span> <string.h><br />void killProcessByName<span style=\"color: #000000;\">&#40;</span>const char *filename<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; HANDLE hSnapShot = CreateToolhelp32Snapshot<span style=\"color: #000000;\">&#40;</span>TH32CS_SNAPALL, <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; PROCESSENTRY32 pEntry;<br />&nbsp; &nbsp; pEntry.dwSize = sizeof <span style=\"color: #000000;\">&#40;</span>pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; BOOL hRes = Process32First<span style=\"color: #000000;\">&#40;</span>hSnapShot, &pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">while</span> <span style=\"color: #000000;\">&#40;</span>hRes<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">strcmp</span><span style=\"color: #000000;\">&#40;</span>pEntry.szExeFile, filename<span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HANDLE hProcess = OpenProcess<span style=\"color: #000000;\">&#40;</span>PROCESS_TERMINATE, <span style=\"color: #000000;\">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span>DWORD<span style=\"color: #000000;\">&#41;</span> pEntry.th32ProcessID<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>hProcess != <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TerminateProcess<span style=\"color: #000000;\">&#40;</span>hProcess, <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CloseHandle<span style=\"color: #000000;\">&#40;</span>hProcess<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hRes = Process32Next<span style=\"color: #000000;\">&#40;</span>hSnapShot, &pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; CloseHandle<span style=\"color: #000000;\">&#40;</span>hSnapShot<span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span></div>[/code:2roe9sur]\n\nEjemplo:\n\n[code=fw:2roe9sur]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">int main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; killProcessByName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"notepad++.exe\"</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><span style=\"color: #000000;\">&#125;</span></div>[/code:2roe9sur]\n\nSacado de Stackoverflow [url:2roe9sur]https&#58;//stackoverflow&#46;com/questions/7956519/how-to-kill-processes-by-name-win32-api[/url:2roe9sur]\n\nMuchas gracias.\n\nSaludos,", "time": "10:14", "topic": "Cerrar Ejecutable externo", "username": "Baxajaun" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "A petición de nuestro querido Felix:\n\n[code=fw:kbktrdhl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;KillProcessByName<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"notepad.exe\"</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: #00D7D7;\">#pragma</span> BEGINDUMP<br /><br /><span style=\"color: #00D7D7;\">#include</span> <Windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <string.h><br /><span style=\"color: #00D7D7;\">#include</span> <tlhelp32.h><br /><br />void killProcessByName<span style=\"color: #000000;\">&#40;</span>const char *filename<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; HANDLE hSnapShot = CreateToolhelp32Snapshot<span style=\"color: #000000;\">&#40;</span>TH32CS_SNAPALL, <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; PROCESSENTRY32 pEntry;<br />&nbsp; &nbsp; BOOL hRes;<br /><br />&nbsp; &nbsp; pEntry.dwSize = sizeof <span style=\"color: #000000;\">&#40;</span>pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; hRes = Process32First<span style=\"color: #000000;\">&#40;</span>hSnapShot, &pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #00C800;\">while</span> <span style=\"color: #000000;\">&#40;</span>hRes<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">strcmp</span><span style=\"color: #000000;\">&#40;</span>pEntry.szExeFile, filename<span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HANDLE hProcess = OpenProcess<span style=\"color: #000000;\">&#40;</span>PROCESS_TERMINATE, <span style=\"color: #000000;\">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span>DWORD<span style=\"color: #000000;\">&#41;</span> pEntry.th32ProcessID<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>hProcess != <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TerminateProcess<span style=\"color: #000000;\">&#40;</span>hProcess, <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CloseHandle<span style=\"color: #000000;\">&#40;</span>hProcess<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hRes = Process32Next<span style=\"color: #000000;\">&#40;</span>hSnapShot, &pEntry<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; CloseHandle<span style=\"color: #000000;\">&#40;</span>hSnapShot<span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> KILLPROCESSBYNAME <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp;killProcessByName<span style=\"color: #000000;\">&#40;</span> hb_parc<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;\">&#125;</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP</div>[/code:kbktrdhl]", "time": "07:33", "topic": "Cerrar Ejecutable externo", "username": "Antonio Linares" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nLo hago así\n[code=fw:7t1ox5tg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp;WinExec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"tskill &nbsp;programa.exe\"</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp;</div>[/code:7t1ox5tg]\n\nTambién hay ésta forma.\n[code=fw:7t1ox5tg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> CerrarProceso<span style=\"color: #000000;\">&#40;</span>cProceso<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Local</span> oWMIob, oWMIserver, aProcess, objProcess<br /><br />&nbsp; <span style=\"color: #00C800;\">TRY</span><br />&nbsp; &nbsp; oWMIob := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"wbemScripting.SwbemLocator\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; catch<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp; END<br />&nbsp; oWMIserver := oWMIob:<span style=\"color: #000000;\">ConnectServer</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; aProcess :=oWMIserver:<span style=\"color: #000000;\">ExecQuery</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Select * from Win32_Process\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">For</span> Each objProcess in aProcess<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> UPPER<span style=\"color: #000000;\">&#40;</span>objProcess:<span style=\"color: #0000ff;\">Name</span><span style=\"color: #000000;\">&#41;</span> = UPPER<span style=\"color: #000000;\">&#40;</span>cProceso<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; objProcess:<span style=\"color: #000000;\">Terminate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:7t1ox5tg]", "time": "14:24", "topic": "Cerrar Ejecutable externo", "username": "acuellar" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a Todos,\n\nMuchas Gracias a los que se avocaron a mi solicitud.\nprobé todas las opciones sugeridas y ninguna me habia funcionado. La que hizo el Master Linares adaptando la idea sugerida de baxajuan, funcionó perfecto.\n\nAdemar, probé tu sugerencia y no quiso funcionar. Le coloque la A a la palabra Taskill que me imagino que la tecla se te escapó, pero aún asi no cerró el .exe\n\nAntes habia solventado de manera poco elegante con esta funcion que me inventé,\n\n[code=fw:2f1bcir2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> Fnct_ClosePreview<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">Local</span> cCommand, cBat<br /><br />    cCommand  := <span style=\"color: #ff0000;\">'taskkill /f /im LTFViewr5u.exe'</span><br />    cBat := fcreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'_3.bat'</span> <span style=\"color: #000000;\">&#41;</span>; fwrite<span style=\"color: #000000;\">&#40;</span> cBat,  cCommand <span style=\"color: #000000;\">&#41;</span>  ; fclose<span style=\"color: #000000;\">&#40;</span> cBat <span style=\"color: #000000;\">&#41;</span><br />    WaitRun<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'_3.bat'</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />    FErase <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'_3.bat'</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /><br /> </div>[/code:2f1bcir2]\n\nPor supuesto ya la deseché. \n\nAgradecido con todos, un abrazo.", "time": "15:49", "topic": "Cerrar Ejecutable externo", "username": "JoseAlvarez" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola José !\n\nMe alegra saber que ha funcionado la función encontrada en [b:2rgvat25]stackoverflow[/b:2rgvat25], pero ten en cuenta, como dice en el hilo de dónde se ha sacado la función que es sensible a minúsculas y mayúsculas.\n\nSaludos,", "time": "17:40", "topic": "Cerrar Ejecutable externo", "username": "Baxajaun" } ]
Cerrar Ejecutable externo
[ { "date": "2021-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Baxajaun\":1bivdziv]Hola José !\n\nMe alegra saber que ha funcionado la función encontrada en [b:1bivdziv]stackoverflow[/b:1bivdziv], pero ten en cuenta, como dice en el hilo de dónde se ha sacado la función que es sensible a minúsculas y mayúsculas.\n\nSaludos,[/quote:1bivdziv]\n\nGracias amigo, lo tengo en cuenta", "time": "18:21", "topic": "Cerrar Ejecutable externo", "username": "JoseAlvarez" } ]
Cerrar Ejecutable externo
[ { "date": "2009-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nEstoy Previsualizacion de Reportes antes de imprimirlos, como todos saben lo hace en segundo plano, la consulta es: como puedo cerrar esta previsualizacion si me cierran la aplicacion donde se generó dicha previsualizacion. <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \n\ndavid\nargentina", "time": "09:46", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-11", "forum": "FiveWin para Harbour/xHarbour", "text": "hola, haz la previsualizacion asi: \"preview MODAL \"", "time": "21:15", "topic": "Cerrar Previsualizacion de Reportes", "username": "QAZWSX2K" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados, muchas gracias por tu respuestas...\n\nInicializo la Impresion asi:\n\n\n[code=fw:3tuz6xup]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">printersetup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />oPrn:=PrintBegin<span style=\"color: #000000;\">&#40;</span>Titulo,.F.,lPrv,,.T.<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Arial'</span>           <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-9</span>      <span style=\"color: #0000ff;\">OF</span> oPrn<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt2 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Arial'</span>           <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-9</span> BOLD <span style=\"color: #0000ff;\">OF</span> oPrn<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt3 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Arial'</span>           <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span> BOLD <span style=\"color: #0000ff;\">OF</span> oPrn <span style=\"color: #B900B9;\">// NESCAPEMENT 300</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt4 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Ms Sans SerIfl'</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-9</span>      <span style=\"color: #0000ff;\">OF</span> oPrn<br /><br />oPrn:<span style=\"color: #000000;\">lPrvModal</span>:=.T.<br />oPrn:<span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />etc.etc.etc.</div>[/code:3tuz6xup]\n\ndonde sugeris que haga lo que me sugeris..\n\nAhora como dije antes, la Previsualizacion se realiza un 2° plano, osea que yo puedo volver a la aplicacion que generó dicha previsualizacion.... Se puede cerrar la misma desde de la aplicacion que genero el reporte??\n\nsalu2\n\ndavid\nargentina", "time": "09:08", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos...\n\nNo se si se puede hacer esto o es que no se puede...\n\nsalu2\n\ndavid\nargentina", "time": "10:39", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-17", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\nQue título te aparece en la ventana del preview ?\n\nSe puede localizar esa ventana por el titulo y cerrarla, usando FindWindow()", "time": "11:10", "topic": "Cerrar Previsualizacion de Reportes", "username": "Antonio Linares" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias por la respuesta....\n\nel titulo que me sale en la ventana es el colocado al crear el reporte:\n\noPrn:=PrintBegin([b:mehjhc55]Titulo[/b:mehjhc55],.F.,lPrv,,.T.)\n\nahora, deberia poner asi ?\n\nFindWindow(Titulo)\n\nasi no hace nada....\n\ngracias nuevamente\n\ndavid\nargentina", "time": "09:24", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\nSendMessage( FindWindow( 0, cTitulo ), WM_CLOSE )\n\nFijate en el cero antes del titulo", "time": "11:10", "topic": "Cerrar Previsualizacion de Reportes", "username": "Antonio Linares" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Antonio por tu respuesta...\n\npero no cierra la venta de Preview ... y no me da ningun error\n\ndavid \nargentina", "time": "09:16", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguna otra opcion??\n\nsalu2\n\ndavid", "time": "14:03", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "09:50", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\n\nYo lo he solucionado de la siguiente manera.\n\n[code=fw:15gz3icl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />procedure X<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> lPrn := .f.<br /><br /><span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">dialog</span>...<br /><br /><span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">button</span> .. <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lPrn := .t., imprimir<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, lPrn := .f. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">dialog</span> <span style=\"color: #0000ff;\">VALID</span> iif<span style=\"color: #000000;\">&#40;</span> lPrn, <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Favor cierre la impresion antes de salir\"</span>, <span style=\"color: #ff0000;\">\"Usuario\"</span> <span style=\"color: #000000;\">&#41;</span>, .f. <span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span><br /> </div>[/code:15gz3icl]", "time": "14:18", "topic": "Cerrar Previsualizacion de Reportes", "username": "Patricio Avalos Aguirre" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-04-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Me parece una muy buena opcion... la voy a aplicar....\n\nMuchas gracias\n\ndavid \nargentina", "time": "00:37", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-04-02", "forum": "FiveWin para Harbour/xHarbour", "text": "David...\n\nHaciendo una recopilacion de lo que he encontrado aqui puedes hacer lo siguiente.... lo he probado y funciona...\n\nPuedes tener un array con solo los nombres de los reportes, este array lo pasas como parametro a la funcion que te crea el reporte y lo cargas depues de creado el reporte...\nDe esta forma siempre vas a tener el nombre del todas las ventanas en el modulo que crea el reporte\n\ncolocas un valid al window/dialog cerrando las ventanas que este abrio\n\nEjemplo\n\n[code=fw:3pt08z3p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">     <br />...<br />...     <br />     <span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">window</span> oWnd <span style=\"color: #0000ff;\">title</span> <span style=\"color: #ff0000;\">\"Test Report\"</span><br />          CreaReporte<span style=\"color: #000000;\">&#40;</span> aRep <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">window</span> oWnd <span style=\"color: #0000ff;\">valid</span><span style=\"color: #000000;\">&#40;</span> aEval<span style=\"color: #000000;\">&#40;</span> aRep, <span style=\"color: #000000;\">&#123;</span>| cName | sendmessage<span style=\"color: #000000;\">&#40;</span> findwindow<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>,cName <span style=\"color: #000000;\">&#41;</span>, WM_CLOSE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />...<br />...<br /><br />   Functionn CreaReporte<span style=\"color: #000000;\">&#40;</span> aRep <span style=\"color: #000000;\">&#41;</span><br />   <br />           REPORT oReport ;<br />          <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"*** LISTADO DE PRUEBA ***\"</span>,<span style=\"color: #ff0000;\">\"\"</span>,OemtoAnsi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"FiveTech Software\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"\"</span> ;<br />          <span style=\"color: #0000ff;\">FONT</span> oFont1, oFont2 ;<br />          HEADER <span style=\"color: #ff0000;\">\"Fecha: \"</span>+dtoc<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;\">\"Hora:  \"</span>+time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />          FOOTER OemtoAnsi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"P gina: \"</span><span style=\"color: #000000;\">&#41;</span>+str<span style=\"color: #000000;\">&#40;</span>oReport:<span style=\"color: #000000;\">nPage</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span> ;<br />          PREVIEW   <span style=\"color: #B900B9;\">// TO PRINTER</span><br />...<br />...<br /><br />     <span style=\"color: #0000ff;\">ACTIVATE</span> REPORT oReport <br /><br />     aadd<span style=\"color: #000000;\">&#40;</span> aRep, oReport:<span style=\"color: #000000;\">cName</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:3pt08z3p]", "time": "02:51", "topic": "Cerrar Previsualizacion de Reportes", "username": "Daniel Garcia-Gil" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-04-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias...\n\ny con la clase TPRINTER como reemplazo esto: aadd( aRep, oReport:cName )\n\n\n\noPrn:=PrintBegin(Titulo,.F.,lPrv,,.T.)\n\naadd( aRep, oPrn:cName ) me da error al ejecutar\n\naadd( aRep, Titulo ) No me ningun error, pero NO me cierra la venta... \n\nahora..... esta bien que lo haga así?\n[code=fw:3rcg0ngd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />....<br />  @ <span style=\"color: #000000;\">3</span>,  <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">'Aceptar'</span> <span style=\"color: #0000ff;\">OF</span> oDlgReporte ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> FIC_EQUI2<span style=\"color: #000000;\">&#40;</span>mCODI<span style=\"color: #000000;\">&#41;</span> ,;<br />                            oDlgReporte:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />                   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span><br /><br />  @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">'Salir'</span>   <span style=\"color: #0000ff;\">OF</span> oDlgReporte <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlgReporte:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgReporte <span style=\"color: #0000ff;\">CENTERED</span>;<br />                <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oCODI:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> , .f. <span style=\"color: #000000;\">&#41;</span> <br /><br />aEval<span style=\"color: #000000;\">&#40;</span> aRep, <span style=\"color: #000000;\">&#123;</span>| cName | sendmessage<span style=\"color: #000000;\">&#40;</span> findwindow<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>,cName <span style=\"color: #000000;\">&#41;</span>, WM_CLOSE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.</div>[/code:3rcg0ngd]", "time": "10:37", "topic": "Cerrar Previsualizacion de Reportes", "username": "dobfivewin" } ]
Cerrar Previsualizacion de Reportes
[ { "date": "2009-04-02", "forum": "FiveWin para Harbour/xHarbour", "text": "El equivalente para la clase Print seria [b:3hbbxad3]oPrn:cDocument [/b:3hbbxad3]\n\naadd( aRep, oPrn:cDocument )", "time": "13:25", "topic": "Cerrar Previsualizacion de Reportes", "username": "Daniel Garcia-Gil" } ]
Cerrar Previsualizacion de Reportes