messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Según la documentación de Microsoft, al usar esta cadena de conexión:\r\n\r\nBuildCommDcb( \"COM1:9600,n,8,1\", @cDcb ) \r\n\r\nel RTS se debería activar. Aqui te copio la explicación que ellos dan:\r\n\r\n· For a string such as 96,n,8,1 or any other older-form mode string that doesn't end with an x or a p:\r\n\r\nfInX, fOutX,fOutXDsrFlow,and fOutXCtsFlow are all set to FALSE\r\nfDtrControl is set to DTR_CONTROL_ENABLE\r\nfRtsControl is set to RTS_CONTROL_ENABLE \r\n\r\nAqui tienes un artículo que da más detalles del RTS:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://support.microsoft.com/kb/101419/es\">http://support.microsoft.com/kb/101419/es</a><!-- m -->", "time": "14:01", "topic": "Activar RTS en la Comunicacion COM", "username": "Antonio Linares" } ]
Activar RTS en la Comunicacion COM
[ { "date": "2008-09-07", "forum": "FiveWin para Pocket PC", "text": "è possivel quando clicar sobre um GET se o Teclado estivar Invisible, colocalo visible\r\n\r\nObrigado\r\n\r\n Sérgio", "time": "23:00", "topic": "Activar Teclado ao clicar num GET", "username": "rasptty" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-09-08", "forum": "FiveWin para Pocket PC", "text": "Sérgio,\r\n\r\n@ 2, 2 GET oGet VAR cTest OF oWnd\r\n\r\noGet:bGotFocus := { || ShowKeyboard() }", "time": "12:33", "topic": "Activar Teclado ao clicar num GET", "username": "Antonio Linares" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-09-08", "forum": "FiveWin para Pocket PC", "text": "Obrigado , funcionou, estou a adorar o FWPPC, estou a desenvolver uma\r\naplicação.. Conto com a vossa ajuda..\r\n\r\nMais uma questão está previsto uma versão para iphone?\r\n\r\nObrigado", "time": "16:59", "topic": "Activar Teclado ao clicar num GET", "username": "rasptty" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-09-08", "forum": "FiveWin para Pocket PC", "text": "> Mais uma questão está previsto uma versão para iphone? \r\n\r\nTenemos ya un prototipo pero lo desarrollamos para la versión 1, y hemos esperado a la versión 2 pues venian muchos cambios.\r\n\r\nLa idea es retomar su desarrollo, y poder ofrecer una primera versión pronto.", "time": "19:34", "topic": "Activar Teclado ao clicar num GET", "username": "Antonio Linares" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-11-05", "forum": "FiveWin para Pocket PC", "text": "[quote=\"Antonio Linares\":1irs9aje]oGet:bGotFocus := { || [b:1irs9aje]ShowKeyboard()[/b:1irs9aje] }[/quote:1irs9aje]\r\n¿ Y como de oculta de nuevo ?", "time": "22:49", "topic": "Activar Teclado ao clicar num GET", "username": "JmGarcia" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-11-06", "forum": "FiveWin para Pocket PC", "text": "HideKeyBoard()", "time": "09:30", "topic": "Activar Teclado ao clicar num GET", "username": "Biel EA6DD" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-11-06", "forum": "FiveWin para Pocket PC", "text": "[quote=\"Biel EA6DD\":gslp20hg][b:gslp20hg]Hide[/b:gslp20hg]KeyBoard()[/quote:gslp20hg]\r\nClaro como no... [img:gslp20hg]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/hysterical&#46;gif[/img:gslp20hg] [img:gslp20hg]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/hysterical&#46;gif[/img:gslp20hg] [img:gslp20hg]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/hysterical&#46;gif[/img:gslp20hg]\r\n\r\nMuchas gracias, Biel.\r\n\r\nY para rematar ¿ como saco que el teclado sea el NÚMERICO ?", "time": "10:32", "topic": "Activar Teclado ao clicar num GET", "username": "JmGarcia" } ]
Activar Teclado ao clicar num GET
[ { "date": "2008-11-15", "forum": "FiveWin para Pocket PC", "text": "[quote=\"JmGarcia\":10dhypfx]Y para rematar ¿ como saco que el teclado sea el NÚMERICO ?[/quote:10dhypfx]\r\nUps... <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "20:10", "topic": "Activar Teclado ao clicar num GET", "username": "JmGarcia" } ]
Activar Teclado ao clicar num GET
[ { "date": "2017-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\n\n Dentro de una misma aplicación, se pueden activar los temas y desactivar ?\n\n Saludos,\n Gabriel", "time": "09:52", "topic": "Activar Temas", "username": "Frafive" } ]
Activar Temas
[ { "date": "2017-04-19", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=185184#p185184\">viewtopic.php?p=185184#p185184</a><!-- l -->\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=185139#p185139\">viewtopic.php?p=185139#p185139</a><!-- l -->", "time": "06:50", "topic": "Activar Temas", "username": "Antonio Linares" } ]
Activar Temas
[ { "date": "2017-04-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio\n\n No me funciona, no hace nada, quiero que al entrar en un dialog me muestre un folder con temas y despues al entrar en otro modulo que tengo que el folder tiene un page no me muestre los temas.\n\nSaludos,\nGabriel", "time": "18:09", "topic": "Activar Temas", "username": "Frafive" } ]
Activar Temas
[ { "date": "2017-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Has probado a llamar a SetWindowTheme( oDlg:hWnd, \"\", \"\" ) desde el ON INIT del ACTIVATE DIALOG del diálogo que contiene el folder ?", "time": "17:06", "topic": "Activar Temas", "username": "Antonio Linares" } ]
Activar Temas
[ { "date": "2017-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\n En el ON INIT SetWindowTheme( oFolder:hWnd, \"\", \"\" ) y funciona perfectamente.\n\nSaludos,", "time": "17:58", "topic": "Activar Temas", "username": "Frafive" } ]
Activar Temas
[ { "date": "2017-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "muy bien <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:46", "topic": "Activar Temas", "username": "Antonio Linares" } ]
Activar Temas
[ { "date": "2007-11-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Existe alguna forma de que al momento de entrar al sistema, se active automáticamente una selección del menú (Como si presionáramos la tecla Alt) ???, Gracias,,", "time": "21:42", "topic": "Activar Una Opción pre-definida (menu)", "username": "ADBLANCO" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "oMenu:Hilite( <nOpción> )", "time": "09:39", "topic": "Activar Una Opción pre-definida (menu)", "username": "Antonio Linares" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias, Pero ya lo intenté y lo único que hace es 'pintar' la Opción, pero realmente no está seleccionado el menú", "time": "16:29", "topic": "Activar Una Opción pre-definida (menu)", "username": "ADBLANCO" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Te refieres a ejecutar la acción de un menuitem ?", "time": "16:40", "topic": "Activar Una Opción pre-definida (menu)", "username": "Antonio Linares" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos Antonio...\n\nLo que plantea Angel es lo siguiente...\n\nSe desea que al iniciarse una aplicación se despliegue de una vez el submenu de una de las opciones de la barra de menú, de la misma forma como si el usuario hubiese hecho clic sobre la opción...\n\nEfectivamente se probó usando oMenu:Hilite(), pero lo único que hace el método es resaltar la opción, pero no despliega el submenu.\n\nNo se desea ejecutar ninguna acción de ningún item del menú, solo que la aplicación entre con el submenú ya desplegado.\n\n\n1GB de Gracias de antemano por los comentarios,\n\nGiancarlo J. Sabattino S.\nValencia, Venezuela.", "time": "13:42", "topic": "Activar Una Opción pre-definida (menu)", "username": "gsabattino" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Giancarlo,\n\n>\nEfectivamente se probó usando oMenu:Hilite(), pero lo único que hace el método es resaltar la opción, pero no despliega el submenu.\n>\n\nHabeis probado a hacer oMenu:Hilite() con un submenu del menú principal ?", "time": "14:32", "topic": "Activar Una Opción pre-definida (menu)", "username": "Antonio Linares" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-11-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas, el asunto es que el menu al activarse, no muestra nada y lo que se desea es que aparesca como si se pulsara la tecla ALT, que sombrea la primera opcion y coloca la linea subrayada en las letras asignadas\n\ngracias.....", "time": "21:59", "topic": "Activar Una Opción pre-definida (menu)", "username": "ADBLANCO" } ]
Activar Una Opción pre-definida (menu)
[ { "date": "2007-02-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos,, \nEs posible activar una WebCam para filmar y grabar la filmacion en un archivo??\n\nSalu2", "time": "06:23", "topic": "Activar WebCam para filmar", "username": "Willi Quintana" } ]
Activar WebCam para filmar
[ { "date": "2007-02-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo:\n\nMira los posts:\n\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=5695&highlight=webcam\">http://fivetechsoft.com/forums/viewtopi ... ght=webcam</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=2501\">http://fivetechsoft.com/forums/viewtopic.php?t=2501</a><!-- m -->", "time": "07:49", "topic": "Activar WebCam para filmar", "username": "Rochinha" } ]
Activar WebCam para filmar
[ { "date": "2007-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias señor,,,,\nSalu2", "time": "11:48", "topic": "Activar WebCam para filmar", "username": "Willi Quintana" } ]
Activar WebCam para filmar
[ { "date": "2010-08-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos\n\nTengo un Dialogo en el que muestro 2 Browse oBrw1 y oBrw2, cómo hago para que se activen los botones de acuerdo donde está el Focus.\n\nGracias por la ayuda\n\nSaludos\n\n\nAdhemar", "time": "15:55", "topic": "Activar boton en diferentes Browse", "username": "acuellar" } ]
Activar boton en diferentes Browse
[ { "date": "2010-08-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola...\nPrueba con bGotFocus y bLostFocus.\n\n[code=fw:1cqn53rq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrow1:<span style=\"color: #000000;\">bGotFocus</span> :=<span style=\"color: #000000;\">&#123;</span>|| oBtn1:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>   <span style=\"color: #B900B9;\">// Cuando el Browse 1 toma el foco</span><br />oBrow1:<span style=\"color: #000000;\">bLostFocus</span>:=<span style=\"color: #000000;\">&#123;</span>|| oBtn1:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// Cuando el Browse 1 pierde el foco</span><br /><br />oBrow2:<span style=\"color: #000000;\">bGotFocus</span> :=<span style=\"color: #000000;\">&#123;</span>|| oBtn2:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>   <span style=\"color: #B900B9;\">// Cuando el Browse 2 toma el foco</span><br />oBrow2:<span style=\"color: #000000;\">bLostFocus</span>:=<span style=\"color: #000000;\">&#123;</span>|| oBtn2:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// Cuando el Browse 2 pierde el foco</span></div>[/code:1cqn53rq] \n\nSaludos, Esteban.", "time": "15:57", "topic": "Activar boton en diferentes Browse", "username": "jrestojeda" } ]
Activar boton en diferentes Browse
[ { "date": "2010-08-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Esteban\n\nFuncionó perfecto\n\nSaludos\n\nAdhemar", "time": "16:52", "topic": "Activar boton en diferentes Browse", "username": "acuellar" } ]
Activar boton en diferentes Browse
[ { "date": "2019-06-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr. Rao:\n\nThanks so much, I will test your sample.\n\nRegards", "time": "15:21", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr. Rao:\n\nPlease embed the dialogue in an MDI CHILD window\n\nRegards", "time": "17:39", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Foreros:\n\nPor aquí saludando y preguntando, tengo el siguiente pseudo código:\n\n[code=fw:341bwjtc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWindow <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;\">10</span>,<span style=\"color: #000000;\">10</span>;<br />        <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Bitacora de viajes\"</span> <span style=\"color: #0000ff;\">ICON</span> oIcono<br />….<br />….<br />….<br />        <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">MOVE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">VALID</span> ! GetASyncKey<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">ON</span> RESIZE <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> oWnd<>NIL, oWnd:<span style=\"color: #000000;\">SETSIZE</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">+29</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />        <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>LaBarra<span style=\"color: #000000;\">&#40;</span>oWnd,oDlg,oBrw<span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">SetFocus</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> Cierra<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> LaBarra<span style=\"color: #000000;\">&#40;</span>oWnd,oDlg,oBrw<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">LOCAL</span> oBar<br />    <span style=\"color: #00C800;\">LOCAL</span> oBtns     := ARRAY<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">07</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">28</span>,<span style=\"color: #000000;\">28</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">CURSOR</span> oCursor <span style=\"color: #000000;\">2007</span><br /><br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtns<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">01</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BtnAdd\"</span>;<br />            <span style=\"color: #0000ff;\">ACTION</span> Editar<span style=\"color: #000000;\">&#40;</span>oBrw,<span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />            <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Agregar un nuevo vale\"</span><br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtns<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BtnCan\"</span>;<br />            <span style=\"color: #0000ff;\">WHEN</span> oRsVia:<span style=\"color: #000000;\">State</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = adStateOpen .AND. oRsVia:<span style=\"color: #000000;\">RecordCount</span> > <span style=\"color: #000000;\">0</span>;     <--- Condición<br />            <span style=\"color: #0000ff;\">ACTION</span> Cancelar<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span>;<br />            <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Cancelar vale\"</span><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:341bwjtc]\n\nComo vemos, el botón oBtns[02] esta condicionado, en otra función abro la tabla oRsVia\ny seguro estoy que tiene registros pero el botón no se activa, aún con oDlg:AEValWhen()\nAlgo que me haga falta?\n\nSaludos", "time": "18:31", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando:\n\nyo también tengo miles de dolores de cabeza al tratar de activar un botón con una condición, sugiero lo siguiente:\n\npaso 1 : ( al colocar {|| } me funcionan en mi caso )\n\n[code=fw:3kb9yh8q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtns<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BtnCan\"</span>;<br />            <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> oRsVia:<span style=\"color: #000000;\">State</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = adStateOpen .AND. oRsVia:<span style=\"color: #000000;\">RecordCount</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>    ;     <--- Condición<br />            <span style=\"color: #0000ff;\">ACTION</span> Cancelar<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span>;<br />            <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Cancelar vale\"</span></div>[/code:3kb9yh8q]\n\npaso 2 : trabajar el botón con Enable(), Disable() traspasando el control a una función independiente que te devuelva el valor deseado y activando o desactivando el control oBtns[2]", "time": "15:11", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "armando.lagunas" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Tocayo:\n\nTe agradezco la disponibilidad de apoyar pero no, no funciona como\nme sugeriste, a ver si hay alguna otra recomendación.\n\nSaludos", "time": "18:03", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Intenta asi:\n\n[code=fw:2vx1ryvh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bChange</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; ó<br /><br />&nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ó<br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2vx1ryvh]", "time": "18:48", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "karinha" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Karinha:\n\nTampoco me funciona. <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nSaludos", "time": "21:11", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Armando.\n\nSi te interesa puedes probar lo que yo hago.\na la funcion que llamo con el boton le paso como parametros, el objeto menu y el boton\nque es los que tengo que desabilitar.\nEjemplo.\n[code=fw:1hfxhz3o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> EmpresBrw<span style=\"color: #000000;\">&#40;</span> oMenuEmp, oEmpres <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oMenuEmp:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oEmpres:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// y luego cuando me salgo de la ventana</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndEmp <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oMenuEmp:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oEmpres:<span style=\"color: #000000;\">Enable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, CierraEmp<span style=\"color: #000000;\">&#40;</span> cTrab <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> .....<br /><br />&nbsp;</div>[/code:1hfxhz3o]\n\nSupongo que no sera lo mas ortodoxo, pero pruebalo que funciona.\n\nSaludos.\n\nJose.", "time": "22:23", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "jvtecheto" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Perdona se me ha olvidado decirte que las variables \nestan declaradas STATIC fuera de todo procedimiento , funcion.\n\nSaludos.\n\nJose.", "time": "22:25", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "jvtecheto" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-03", "forum": "FiveWin para Harbour/xHarbour", "text": "brakaman:\n\nAgradezco el interés, pero no es exactamente mi escenario.\n\nTe cuento:\n\nTengo un dialogo dentro de una ventana MDICHILD, al activar la ventana, en el ON INIT voy\na la función que crea una barra de botones que me sirven para AGREGAR, MODIFICAR,\nELIMINAR, etc.\n\nCuando abro el dialogo por primera vez la tabla está vacía y por tanto los botones están\ndisable, excepto el botón AGREGAR\n\nAl agregar el primer registro a la tabla, necesito que se activen todos los botones, hasta ahí\ntodo funciona muy bien.\n\nEn el dialogo tengo un control DATEPICKER para dar opción al usuario de elegir movimientos\nde otro día, cuando cambian la fecha hago el filtro a la tabla y muestro los nuevos registros\nen un browse, ahí todo bien, pero los botones no se activan cuando que ya hay registros en\nla tabla.\n\nSaludos y gracias", "time": "23:59", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Buena dia...\n\nYa evaluó directamente el resultado de la condición ? : \"oRsVia:State() = adStateOpen .AND. oRsVia:RecordCount > 0 \"\n\n... Lo uso así acorde a mi necesidad.\n\n[code=fw:z92xi9h9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">LOCAL</span> lGenReg := .f.  ,oBotReg ,oPlaVeh  ,oPlaVeh<br /><br /><br />@ <span style=\"color: #000000;\">15</span>,<span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">GET</span> oPlaVeh <span style=\"color: #0000ff;\">VAR</span> oPlaVeh ;<br />         <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!X\"</span> ;<br />         <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>*nAjuAnc,<span style=\"color: #000000;\">45</span> ;<br />         <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE,CLR_YELLOW <span style=\"color: #0000ff;\">FONT</span> M->oFonAc24 ;<br />         <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> defineRegistroClientePar<span style=\"color: #000000;\">&#40;</span>@lGenReg,oBotReg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />@ <span style=\"color: #000000;\">97</span>, <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBotReg ;<br />          <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">155</span>,<span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlgPar ;<br />          <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"ADICIONAR\"</span> ;<br />          <span style=\"color: #0000ff;\">WHEN</span> lGenReg ;<br />          <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> grabarRegistroPar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />           <br /><span style=\"color: #00C800;\">FUNCTION</span> defineRegistroClientePar<span style=\"color: #000000;\">&#40;</span>lGenReg,oBotReg <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">IF</span> lGenReg<br />   oBotReg :<span style=\"color: #000000;\">enable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />   oBotReg :<span style=\"color: #000000;\">disable</span><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;\">return</span> .t.<br /> </div>[/code:z92xi9h9]\n\n\nJohnson Russi \nColombia", "time": "12:06", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "russimicro" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nProblema solucionado usando DISABLE y ENABLE.\n\nMuchas gracias y larga vida al foro", "time": "17:57", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-06", "forum": "FiveWin para Harbour/xHarbour", "text": "It should work even without calling oDlg:AEvalWhen() or oBar:AEvalWhen() even on a dialog in mdichild.\n\nThis is my sample code working without calling any AEvalwhen() or disable or enable.\n[code=fw:11se6ap2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oCn<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Browse\"</span> <span style=\"color: #0000ff;\">ACTION</span> MdiDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> &nbsp;<span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oCn != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;end<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MdiDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oRs, oDlg, oBar, oBrw, oFont, oRad<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nState &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aStates &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" &nbsp;\"</span>, <span style=\"color: #ff0000;\">\"NY\"</span>, <span style=\"color: #ff0000;\">\"WA\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"xbrtest.mdb\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRs &nbsp; &nbsp; &nbsp; &nbsp; := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, <span style=\"color: #ff0000;\">\"customer\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Filter</span> &nbsp;:= <span style=\"color: #ff0000;\">\"STATE=NULL\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><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;\">650</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">48</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span> &nbsp; &nbsp;FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Modify\"</span> FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">WHEN</span> oRs:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Delete\"</span> FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\d</span>elete.bmp\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">WHEN</span> oRs:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">Delete</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">48</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oRs COLUMNS <span style=\"color: #ff0000;\">\"FIRST\"</span>,<span style=\"color: #ff0000;\">\"CITY\"</span>,<span style=\"color: #ff0000;\">\"STATE\"</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<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: #000000;\">050</span>,<span style=\"color: #000000;\">520</span> <span style=\"color: #0000ff;\">RADIO</span> oRad <span style=\"color: #0000ff;\">VAR</span> nState <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #ff0000;\">\"None\"</span>, <span style=\"color: #ff0000;\">\"NY\"</span>, <span style=\"color: #ff0000;\">\"WA\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Filter</span> := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nState == <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"STATE=NULL\"</span>, <span style=\"color: #ff0000;\">\"STATE='\"</span> + aStates<span style=\"color: #000000;\">&#91;</span> nState <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\"'\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg AS <span style=\"color: #0000ff;\">MDICHILD</span> ;<br />&nbsp; &nbsp; &nbsp; SETUP <span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">&#123;</span> || oRs:<span style=\"color: #000000;\">Close</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 /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:11se6ap2]\n\n[url=https&#58;//imageshack&#46;com/i/plLZDd6gg:11se6ap2][img:11se6ap2]https&#58;//imagizer&#46;imageshack&#46;com/img921/1309/LZDd6g&#46;gif[/img:11se6ap2][/url:11se6ap2]", "time": "06:10", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "The command used\n[code=fw:34e1ze8r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg AS <span style=\"color: #0000ff;\">MDICHILD</span> ....<br /> </div>[/code:34e1ze8r]\nembeds the dialog into mdichild.\nSimple and standard way to embed dialogs in mdichild from FWH1810.\n\nWhatsnew.txt\n ACTIVATE DIALOG oDlg AS MDICHILD.\n In an MDI environment, converts the dialog as mdichild and activates.\n On activation, the variable oDlg now refers to the new mdichild window\n and all actions and codeblocks using oDlg variable now act on the \n mdichild window.\n fwh\\samples\\mdidlg.prg\n <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36244\">viewtopic.php?f=3&t=36244</a><!-- l -->\n\n\n\nMay I know the version of FWH you are using? Let me try with the same version of FWH you are using.", "time": "00:08", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "This is a working sample for FWH versions older than FWH1810. I have tested this sample with FWH1602 and is working well.\nFor the old versions I used\n[code=fw:3q5bxnp0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oDlg:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3q5bxnp0]\nafter changing the filter of oRs.\n\nThis sample gives exactly the same results as shown in the above animated gif.\n[code=fw:3q5bxnp0]<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: #B900B9;\">// FOR FWH VERSIONS PRIOR TO FWH1806</span><br /><br /><span style=\"color: #00C800;\">static</span> oCn<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Browse\"</span> <span style=\"color: #0000ff;\">ACTION</span> MdiDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> &nbsp;<span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oCn != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;end<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MdiDlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oRs, oDlg, oWnd, oBrw, oFont, oRad<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nState &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aStates &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" &nbsp;\"</span>, <span style=\"color: #ff0000;\">\"NY\"</span>, <span style=\"color: #ff0000;\">\"WA\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"xbrtest.mdb\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRs &nbsp; &nbsp; &nbsp; &nbsp; := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, <span style=\"color: #ff0000;\">\"customer\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Filter</span> &nbsp;:= <span style=\"color: #ff0000;\">\"STATE=NULL\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><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;\">650</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">48</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oRs COLUMNS <span style=\"color: #ff0000;\">\"FIRST\"</span>,<span style=\"color: #ff0000;\">\"CITY\"</span>,<span style=\"color: #ff0000;\">\"STATE\"</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<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: #000000;\">050</span>,<span style=\"color: #000000;\">520</span> <span style=\"color: #0000ff;\">RADIO</span> oRad <span style=\"color: #0000ff;\">VAR</span> nState <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #ff0000;\">\"None\"</span>, <span style=\"color: #ff0000;\">\"NY\"</span>, <span style=\"color: #ff0000;\">\"WA\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style=\"color: #000000;\">Filter</span> := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nState == <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"STATE=NULL\"</span>, <span style=\"color: #ff0000;\">\"STATE='\"</span> + aStates<span style=\"color: #000000;\">&#91;</span> nState <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\"'\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> BuildBar<span style=\"color: #000000;\">&#40;</span> oDlg, oBrw <span style=\"color: #000000;\">&#41;</span>, ChangeParent<span style=\"color: #000000;\">&#40;</span> oDlg, oWnd <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> BuildBar<span style=\"color: #000000;\">&#40;</span> oDlg, oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBar<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">48</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span> &nbsp; &nbsp;FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Modify\"</span> FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">WHEN</span> oBrw:<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Delete\"</span> FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\d</span>elete.bmp\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">WHEN</span> oBrw:<span style=\"color: #000000;\">oRs</span>:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">Delete</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ChangeParent<span style=\"color: #000000;\">&#40;</span> oDlg, oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oControl<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each oControl in oDlg:<span style=\"color: #000000;\">aControls</span><br />&nbsp; &nbsp; &nbsp; SetParent<span style=\"color: #000000;\">&#40;</span> oControl:<span style=\"color: #000000;\">hWnd</span>, oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">aControls</span>, oControl <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oControl:<span style=\"color: #000000;\">oWnd</span> &nbsp;:= oWnd<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br /><br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nClrText</span>, oDlg:<span style=\"color: #000000;\">nClrPane</span>, oDlg:<span style=\"color: #000000;\">oBrush</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:3q5bxnp0]", "time": "01:21", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr. Rao:\n\nI use FWH1711.\n\nRegards", "time": "03:02", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Armando\":12ziwllb]Mr. Rao:\n\nI use FWH1711.\n\nRegards[/quote:12ziwllb]\nThen the second sample I posted should work for you. I tested this prg with FWH1602.", "time": "03:29", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "nageswaragunupudi" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2019-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr. Rao:\n\nThanks so much.\n\nRegards", "time": "16:31", "topic": "Activar botón con oDlg:AEValWhen() (SOLUCIONADO)", "username": "Armando" } ]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[ { "date": "2006-06-21", "forum": "FiveWin para CA-Clipper", "text": "Hola:\nen una ventana coloque 6 oBtns, que activan o desactivan oGets segun sea el caso (mediante oGet:Disable, oGet:Enable), el motivo del presente es que cuando doy click al oBtn \"buscar\" se activan correctamente los gets que quiero y se deshabilitan los que no uso, asi tambien se posisiciona el cursor en el primer oGet \"Sucursal\", sin embargo cuando le doy \"Enter\" sobre el mismo oBtn \"Buscar\" no hace lo mismo, el foco lo deja en un boton que no quiero, mi pregunta es la siguiente:\ncomo puede realizar eventos diferente si tengo entendido que el click izquierdo, el enter, y la tecla activa (alt + \"B\") x ejemplo debieran hacer lo mismo ?, que estare haciendo mal ??\n\nSaludos\nVeracruz, Ver.\nMexico", "time": "20:38", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "servicomver" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2006-06-22", "forum": "FiveWin para CA-Clipper", "text": "Tienes algún botón que sea DEFAULT en la caja de diálogo ?", "time": "00:15", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "Antonio Linares" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2006-06-22", "forum": "FiveWin para CA-Clipper", "text": "Antonio:\nno, no tengo ningun boton DEFAULT, Gracias por tu atencion\n\nSaludos\nVeracruz, Mexico", "time": "15:06", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "servicomver" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2006-06-22", "forum": "FiveWin para CA-Clipper", "text": "Que versión de FW usais ?", "time": "22:52", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "Antonio Linares" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2006-06-23", "forum": "FiveWin para CA-Clipper", "text": "Uso la version 2.3 de fivewin\nclipper 5.3\nblinker 6.0\n\nRealmente parece un problema sencillo pero para quienes no son muy habiles con el mouse y prefieren el teclado se complica bastante el no poder hacerlo. Habra otra forma de solucionar esto?\n\nGracias.\nSaludos \nVeracruz, Mexico", "time": "19:07", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "servicomver" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2006-06-24", "forum": "FiveWin para CA-Clipper", "text": "Estás usando una versión bastante antigua de FW. Deberías actualizarte a la versión más reciente. \n\nSe han hecho muchísimos cambios desde la versión que tu usas.", "time": "08:12", "topic": "Activar un oBtn con Click del Mouse y Enter de teclado", "username": "Antonio Linares" } ]
Activar un oBtn con Click del Mouse y Enter de teclado
[ { "date": "2017-08-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas:\n\nNecesito activar una función justo cuando el usuario pulsa una solapa dentro de un folder.... ¿es posible?\nMil gracias.\n\nLORENZO.", "time": "12:54", "topic": "Activar una funcion justo al seleccionar una solapa de folde", "username": "Loren" } ]
Activar una funcion justo al seleccionar una solapa de folde
[ { "date": "2017-08-22", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:2ufcv3vu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFol <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Tab1\"</span>,<span style=\"color: #ff0000;\">\"Tab2\"</span> <span style=\"color: #0000ff;\">DIALOGS</span> ......<br />...<br />oFol:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">&#40;</span> oFol:<span style=\"color: #000000;\">nOption</span> = <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Tab 1\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Tab 2\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp;</div>[/code:2ufcv3vu]", "time": "13:04", "topic": "Activar una funcion justo al seleccionar una solapa de folde", "username": "armando.lagunas" } ]
Activar una funcion justo al seleccionar una solapa de folde
[ { "date": "2011-06-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\n\nQuiero activar/desactivar algunos botones segun alguna condicion del usuario o ya sea que se le activen tales opciones de manera manual on the fly, ya intente :\n\noRibbon:Refresh()\noRibbon:Default()\n\nY nop, no funca. A veces lo hace otras no.\n\nAcaso tengo que recorrer todos los botones pertenecientes al grupo para volver a validar la condicion ? \n\nNo existe algun aEvalWhen() para la Ribbon ? \n\nSaludos", "time": "02:53", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Raymundo Islas M." } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Que tal Ray,\n\nEstoy usando la ribbon y en determinado momento tuve la necesidad de hacer lo mismo que tu, me fue dificl poder ejecutarlo,\nmejor opte por hacer un modulo de permisos para cada opcion de la ribbon, grupos y botones...\n\nInvestigue un poco, cada pestaña es un dialogo y dentro de este estan sus controles y dentro de estos hay mas controles llegando a los botones si hay grupos dentro de grupos,,, y puedes probar asi:\noRibbon:aDialogs[2]:aControls[3]:aControls[5]:nLeft -> aqui el detalle es poder determinar que numero de control es cual boton, no lo probe asi pero pudiera ser:\noRibbon:aDialogs[2]:aControls[3]:aControls[5]:nID\n\nlos grupos directos de ribbon, no los desactivo y activo, lo que hago es ocultar y mostrar, la otra opcion nunca pude hacerla, y los haces asi:\noRibbon:Hide(no.grupo) y oRibbon:Show(no.grupo) siempre que hago eso ejecuto el oRibbon:CalcPos()\n\ny te comento algo, me funciona bien y como quiero, fue otro camino un poco mas largo, pero me dio la solucion...\nespero poder ayudarte\nsaludos\npaco", "time": "15:33", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Francisco Horta" } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Paco, \n\nMuchas gracias por la info, hare algunas pruebas con lo que comentas.\n\nSaludos", "time": "17:23", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Raymundo Islas M." } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Paco,\n\nAl parecer con esto logre solucionarlo :\n\naeval( oRBar:aDialogs[x]:aControls, {|oControl| oControl:aevalwhen() } )\n\nY ya me esta validando las condiciones hasta el momento, de manera correcta.\n\nVeremos si no brinca algun otro detalle.\n\n\nSaludos", "time": "00:58", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Raymundo Islas M." } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Ray,\n\nexcelente, si habia que bajar hasta los ultimos controles, yo ahi tope un poco, pero por cuestiones de seguridad en los tipos de permisos a los usuarios, tuve que hacerlo por cada boton, pero igual y pruebo el aevalwhen,, cualquier cosa mas que le encuentres por ahi avisa, para estar al tanto,\nsaludos\npaco", "time": "15:38", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Francisco Horta" } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-24", "forum": "FiveWin para Harbour/xHarbour", "text": "perdon ray, como le agregaste el solved al subject original, yo no lo he podido hacer, lo hice pero me lo puse en el mensaje no en el primer post,,\ngracias\npaco", "time": "15:39", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Francisco Horta" } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-06-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Paco,\n\nAbres tu hilo, te vas al 1er post y lo editas, y ahi ajustas tu encabezado.\n\n\nSaludos", "time": "16:37", "topic": "Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED", "username": "Raymundo Islas M." } ]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
[ { "date": "2011-05-01", "forum": "FiveWin para Harbour/xHarbour", "text": "En un control EXPLORERBAR puedo desactivar los PANEL con oPanel1:Disable() y ocultarlos con oPanel1:Hide().\n¿Hay forma de desactivar u ocultar los links de cada PANEL?", "time": "12:47", "topic": "Activar/desactivar opciones en EXPLOREBAR", "username": "Manuel Aranda" } ]
Activar/desactivar opciones en EXPLOREBAR
[ { "date": "2009-09-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros:\n\nTengo la clausula ON CHANGE en un GET pero necesito activarlo o desactivarlo en tiempo de ejecución en función del valor que tome un radiobutton.\n\nTengo el siguiente código\n[code=fw:2pyzvt19]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br />  <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">get</span>     otexto <span style=\"color: #0000ff;\">var</span> texto <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">4004</span> <span style=\"color: #0000ff;\">of</span> obuscar <span style=\"color: #0000ff;\">on</span> <span style=\"color: #0000ff;\">change</span> <span style=\"color: #000000;\">&#40;</span> CONTEUDO<span style=\"color: #000000;\">&#40;</span> otexto, nKey, obuscar, olistbox, texto <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />  otexto:<span style=\"color: #000000;\">bkeydown</span> := <span style=\"color: #000000;\">&#123;</span>|nKey| iif<span style=\"color: #000000;\">&#40;</span>nKey==<span style=\"color: #000000;\">13</span>, <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'buscando...'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />  <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">radio</span>   oradio <span style=\"color: #0000ff;\">var</span> opcion <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">4011</span>,<span style=\"color: #000000;\">4014</span>,<span style=\"color: #000000;\">4012</span> <span style=\"color: #0000ff;\">of</span> obuscar <span style=\"color: #0000ff;\">on</span> <span style=\"color: #0000ff;\">change</span> <span style=\"color: #000000;\">&#40;</span>tex:=<span style=\"color: #ff0000;\">'Teclee el '</span>+iif<span style=\"color: #000000;\">&#40;</span>opcion=<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">'nombre del USUARIO'</span>,iif<span style=\"color: #000000;\">&#40;</span>opcion=<span style=\"color: #000000;\">2</span>,<span style=\"color: #ff0000;\">'CÓDIGO @PLICA'</span>,<span style=\"color: #ff0000;\">'nombre del PROYECTO'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+iif<span style=\"color: #000000;\">&#40;</span>opcion=<span style=\"color: #000000;\">1</span> .or. opcion=<span style=\"color: #000000;\">3</span>,<span style=\"color: #ff0000;\">'. No es necesario teclear todo el nombre completo.'</span>,<span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span>,osay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,otexto:<span style=\"color: #000000;\">setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2pyzvt19]\n\n¿ Como sería ?\n\nCon gracias anticipadas, saluda\nLORENZO", "time": "22:53", "topic": "Activar/descativar ON CHANGE en tiempo de ejecucion", "username": "Loren" } ]
Activar/descativar ON CHANGE en tiempo de ejecucion
[ { "date": "2009-09-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Podria ser\n[code=fw:483zi340]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Local</span> bChange<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> || CONTEUDO<span style=\"color: #000000;\">&#40;</span> otexto, nKey, obuscar, olistbox, texto <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Local</span> bChange<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> || Otrafun<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Local</span> bChange<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">Nil</span> <span style=\"color: #000000;\">&#125;</span><br />....<br /><span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">get</span>     otexto <span style=\"color: #0000ff;\">var</span> texto <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">4004</span> <span style=\"color: #0000ff;\">of</span> obuscar<br />     oTexto:<span style=\"color: #000000;\">bChange</span> := bChange<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br /><br />  otexto:<span style=\"color: #000000;\">bkeydown</span> := <span style=\"color: #000000;\">&#123;</span>|nKey| iif<span style=\"color: #000000;\">&#40;</span>nKey==<span style=\"color: #000000;\">13</span>, <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'buscando...'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />  <span style=\"color: #0000ff;\">redefine</span> <span style=\"color: #0000ff;\">radio</span>   oradio <span style=\"color: #0000ff;\">var</span> opcion <span style=\"color: #0000ff;\">id</span> <span style=\"color: #000000;\">4011</span>,<span style=\"color: #000000;\">4014</span>,<span style=\"color: #000000;\">4012</span> <span style=\"color: #0000ff;\">of</span> obuscar ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">on</span> <span style=\"color: #0000ff;\">change</span> <span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #000000;\">bChange</span> := bChange<span style=\"color: #000000;\">&#91;</span> nOpcion <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:483zi340]", "time": "23:34", "topic": "Activar/descativar ON CHANGE en tiempo de ejecucion", "username": "RenOmaS" } ]
Activar/descativar ON CHANGE en tiempo de ejecucion
[ { "date": "2012-08-19", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nIs there a posibility to activate this forum so I can read it also with Tapatalk on my smartphone?\n\nThanks,\nMarc", "time": "15:19", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-08-24", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nAny chance?\n\nMarc", "time": "17:05", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-08-24", "forum": "Off Topic / Otros temas", "text": "Marc,\n\nI have been reviewing it and I think we can implement it for these forums. I won't be in the office until next monday, then we can work on it.\n\nSorry for the delay...", "time": "19:04", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-08-24", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nThank you, this would be nice, since than I can access this forum anytime!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nMarc", "time": "19:18", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-08-31", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nHave you had time to look at it?\n\nThanks,\nMarc", "time": "18:16", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-08-31", "forum": "Off Topic / Otros temas", "text": "Checking it right now, sorry for the delay:\n\n[url:th80euvp]http&#58;//www&#46;tapatalk&#46;com/activate_tapatalk&#46;php?plugin=phpbb[/url:th80euvp]", "time": "18:35", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-02", "forum": "Off Topic / Otros temas", "text": "Mark,\n\nReady, it should be available already <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:46", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-02", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nTapatalk can't find fivetechsupport yet. Maybe I have to wait some time so they have updated their server.\n\nI let you know if it works.\n\nThanks,\nMarc", "time": "12:11", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nIf I search tapatalk to fivetech or fivetechsoft, it doesn't find it. Did you use an other name?\n\nThanks,\nMarc", "time": "11:14", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Marc,\n\nI missed to list it, it should be ok now as \"FiveTech Software tech support forums\" <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:17", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nIt's working fine now!!!\nThanks,\nMarc\n\nVerstuurd van mijn HTC Desire S met Tapatalk", "time": "12:26", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Marc,\n\nCould you post a screenshot ? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nthanks for your feedback", "time": "13:19", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nI don't know if it's possible to make a 'Print-screen' and save it to a file with Android.\nOtherwise, I will take a photo of it when I'am home.\n\nMarc", "time": "13:22", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-03", "forum": "Off Topic / Otros temas", "text": "Marc,\n\n[quote:3nm9xx6s]If you’re using Android 4.0 or later, this is easy. Just press and hold the Volume Down and Power buttons at the same time. You’ll see an animation on the screen, indicating that the screenshot was saved. Android will save the screenshot to your Gallery. Launch the Gallery app and tap Screenshots to view and share your screenshots.[/quote:3nm9xx6s]", "time": "13:56", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-12", "forum": "Off Topic / Otros temas", "text": "Antonio,\n\nSorry for the delay, but here are some screenshots.\n\n[img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-10&#46;jpg[/img:25cb2ev1]\n\n[img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-43&#46;jpg[/img:25cb2ev1]\n\n[img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-54&#46;jpg[/img:25cb2ev1]\n\n[img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-36-03&#46;jpg[/img:25cb2ev1]\n\n[img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-36-34&#46;jpg[/img:25cb2ev1]\n\nRegards,\nMarc", "time": "16:42", "topic": "Activate FW-forum for Tapatalk", "username": "Marc Vanzegbroeck" } ]
Activate FW-forum for Tapatalk
[ { "date": "2012-09-12", "forum": "Off Topic / Otros temas", "text": "Marc,\n\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "19:45", "topic": "Activate FW-forum for Tapatalk", "username": "Antonio Linares" } ]
Activate FW-forum for Tapatalk
[ { "date": "2020-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nI found the C# that can activate Tabtip.exe anytime, even ::bGotFocus of GET, not only ACTIVATE clause. \nCan we modify to xHarbour?\n\nThanks in advance,\n[code=fw:1a1267lb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">using System;<br />using System.Diagnostics;<br />using Microsoft.Win32;<br /><br />namespace CSharpTesting<br /><span style=\"color: #000000;\">&#123;</span><br />    <span style=\"color: #00C800;\">class</span> Program<br />    <span style=\"color: #000000;\">&#123;</span><br />        <span style=\"color: #B900B9;\">/// <summary></span><br />        <span style=\"color: #B900B9;\">/// The different layout types on the virtual keyboard.</span><br />        <span style=\"color: #B900B9;\">/// </summary></span><br />        <span style=\"color: #00C800;\">public</span> enum KeyboardLayoutMode<br />        <span style=\"color: #000000;\">&#123;</span><br />            <span style=\"color: #00C800;\">Default</span>,<br />            ThumbLayout,<br />            Handwriting<br />        <span style=\"color: #000000;\">&#125;</span><br /><br />        <span style=\"color: #B900B9;\">/// <summary></span><br />        <span style=\"color: #B900B9;\">/// The registry key which holds the keyboard settings.</span><br />        <span style=\"color: #B900B9;\">/// </summary></span><br />        <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> readonly RegistryKey registryKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Software<span style=\"color: #000000;\">\\\\</span>Microsoft<span style=\"color: #000000;\">\\\\</span>TabletTip<span style=\"color: #000000;\">\\\\</span>1.7\"</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />        <span style=\"color: #00C800;\">static</span> void Main<span style=\"color: #000000;\">&#40;</span>string<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">&#93;</span> args<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#123;</span><br />            SetKeyboardDockedMode<span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">true</span><span style=\"color: #000000;\">&#41;</span>;<br />            SetKeyboardLayoutMode<span style=\"color: #000000;\">&#40;</span>KeyboardLayoutMode.ThumbLayout<span style=\"color: #000000;\">&#41;</span>;<br />            ShowKeyboard<span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">true</span><span style=\"color: #000000;\">&#41;</span>;<br />        <span style=\"color: #000000;\">&#125;</span><br /><br />        <span style=\"color: #B900B9;\">/// <summary></span><br />        <span style=\"color: #B900B9;\">/// Shows the onscreen keyboard.</span><br />        <span style=\"color: #B900B9;\">/// </summary></span><br />        <span style=\"color: #B900B9;\">/// <param name=\"killExistingProcess\">If true, kill any existing TabTip.exe process.</param></span><br />        <span style=\"color: #00C800;\">public</span> <span style=\"color: #00C800;\">static</span> void ShowKeyboard<span style=\"color: #000000;\">&#40;</span>bool killExistingProcess<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#123;</span><br />            <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>killExistingProcess<span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #000000;\">&#123;</span><br />                <span style=\"color: #B900B9;\">// If the user presses the close button on the keyboard then TabTip.exe will still run in the background. If we have made registry</span><br />                <span style=\"color: #B900B9;\">// changes to the keyboard settings, they don't take effect until the process is started again so killing this ensures the keyboard</span><br />                <span style=\"color: #B900B9;\">// will open with our new settings.</span><br />                foreach <span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">var</span> process in Process.GetProcessesByName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TabTip\"</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #000000;\">&#123;</span><br />                    process.Kill<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />                <span style=\"color: #000000;\">&#125;</span><br />            <span style=\"color: #000000;\">&#125;</span><br /><br />            string onScreenKeyboardPath = @<span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\P</span>rogram Files<span style=\"color: #000000;\">\\C</span>ommon Files<span style=\"color: #000000;\">\\M</span>icrosoft Shared<span style=\"color: #000000;\">\\i</span>nk<span style=\"color: #000000;\">\\T</span>abTip.exe\"</span>;<br />            Process.Start<span style=\"color: #000000;\">&#40;</span>onScreenKeyboardPath<span style=\"color: #000000;\">&#41;</span>;<br />        <span style=\"color: #000000;\">&#125;</span><br /><br />        <span style=\"color: #B900B9;\">/// <summary></span><br />        <span style=\"color: #B900B9;\">/// Sets if the keyboard is in docked or floating mode.</span><br />        <span style=\"color: #B900B9;\">/// </summary></span><br />        <span style=\"color: #B900B9;\">/// <param name=\"isDocked\">If true set to docked, if false set to floating.</param></span><br />        <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> void SetKeyboardDockedMode<span style=\"color: #000000;\">&#40;</span>bool isDocked<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#123;</span><br />            registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"EdgeTargetDockedState\"</span>, Convert.ToInt32<span style=\"color: #000000;\">&#40;</span>isDocked<span style=\"color: #000000;\">&#41;</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />        <span style=\"color: #000000;\">&#125;</span><br /><br />        <span style=\"color: #B900B9;\">/// <summary></span><br />        <span style=\"color: #B900B9;\">/// Changes the layout mode of the keyboard.</span><br />        <span style=\"color: #B900B9;\">/// </summary></span><br />        <span style=\"color: #B900B9;\">/// <param name=\"mode\">The layout mode to use.</param></span><br />        <span style=\"color: #00C800;\">private</span> <span style=\"color: #00C800;\">static</span> void SetKeyboardLayoutMode<span style=\"color: #000000;\">&#40;</span>KeyboardLayoutMode mode<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#123;</span><br />            <span style=\"color: #00C800;\">switch</span> <span style=\"color: #000000;\">&#40;</span>mode<span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #000000;\">&#123;</span><br />                <span style=\"color: #00C800;\">case</span> KeyboardLayoutMode.Handwriting:<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"KeyboardLayoutPreference\"</span>, <span style=\"color: #000000;\">0</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"LastUsedModalityWasHandwriting\"</span>, <span style=\"color: #000000;\">1</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    <span style=\"color: #00C800;\">break</span>;<br />                <span style=\"color: #00C800;\">case</span> KeyboardLayoutMode.ThumbLayout:<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"KeyboardLayoutPreference\"</span>, <span style=\"color: #000000;\">1</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"LastUsedModalityWasHandwriting\"</span>, <span style=\"color: #000000;\">0</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    <span style=\"color: #B900B9;\">// 0 = small, 1 = medium, 2 = large</span><br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"ThumbKeyboardSizePreference\"</span>, <span style=\"color: #000000;\">2</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    <span style=\"color: #00C800;\">break</span>;<br />                <span style=\"color: #00C800;\">default</span>:<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"KeyboardLayoutPreference\"</span>, <span style=\"color: #000000;\">0</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    registryKey.SetValue<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"LastUsedModalityWasHandwriting\"</span>, <span style=\"color: #000000;\">0</span>, RegistryValueKind.DWord<span style=\"color: #000000;\">&#41;</span>;<br />                    <span style=\"color: #00C800;\">break</span>;<br />            <span style=\"color: #000000;\">&#125;</span><br />        <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:1a1267lb]", "time": "14:26", "topic": "Activate Tabtip, modify sample C#", "username": "dutch" } ]
Activate Tabtip, modify sample C#
[ { "date": "2020-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Dutch\nNot enough with this?\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37570&p=224642&hilit=tabtip#p224617\">viewtopic.php?f=3&t=37570&p=224642&hilit=tabtip#p224617</a><!-- l -->", "time": "16:05", "topic": "Activate Tabtip, modify sample C#", "username": "cnavarro" } ]
Activate Tabtip, modify sample C#
[ { "date": "2020-09-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear cnavarro,\n\nI've read this thread already and used it but if the user close the keyboard (tabtip). It cannot activate again even oGet:OnGotFocus. This is the problem.\n\nThank you in advance,\n[quote=\"cnavarro\":2dxldcf8]Dear Dutch\nNot enough with this?\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37570&p=224642&hilit=tabtip#p224617\">viewtopic.php?f=3&t=37570&p=224642&hilit=tabtip#p224617</a><!-- l -->[/quote:2dxldcf8]", "time": "12:14", "topic": "Activate Tabtip, modify sample C#", "username": "dutch" } ]
Activate Tabtip, modify sample C#
[ { "date": "2020-09-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, I understand and I will look at it then", "time": "14:41", "topic": "Activate Tabtip, modify sample C#", "username": "cnavarro" } ]
Activate Tabtip, modify sample C#
[ { "date": "2020-09-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you so much,\n[quote=\"cnavarro\":b001zt41]Ok, I understand and I will look at it then[/quote:b001zt41]", "time": "17:07", "topic": "Activate Tabtip, modify sample C#", "username": "dutch" } ]
Activate Tabtip, modify sample C#
[ { "date": "2023-10-07", "forum": "Off Topic / Otros temas", "text": "[url:26lw6y8m]https&#58;//www&#46;larazon&#46;es/tecnologia/inteligencia-artificial-sencillo-truco-activar-copilot-windows-11-espana_20231003651b1e9890d39d0001e6eff5&#46;html[/url:26lw6y8m]\n\nmicrosoft-edge://?ux=copilot&tcp=1&source=taskbar\n\ngot it working on my PC, now wondering how to access it programmatically...\n\nCreate a direct access on the desktop that you can move to the taskbar:\nC:\\Windows\\explorer.exe \"microsoft-edge:///?ux=copilot&tcp=1&source=taskbar\"", "time": "11:47", "topic": "Activate Windows Copilot today!", "username": "Antonio Linares" } ]
Activate Windows Copilot today!
[ { "date": "2023-10-08", "forum": "Off Topic / Otros temas", "text": "[url:bs947nrt]https&#58;//stackoverflow&#46;com/questions/77249923/how-to-programmatically-use-the-new-windows-copilot?noredirect=1#comment136190904_77249923[/url:bs947nrt]", "time": "19:54", "topic": "Activate Windows Copilot today!", "username": "Antonio Linares" } ]
Activate Windows Copilot today!
[ { "date": "2023-10-13", "forum": "Off Topic / Otros temas", "text": "Are you using it ?\n\nPlease provide feedback as I am testing a new FWH example to inspect the Windows Copilot windows handles, in case you want to test it", "time": "17:01", "topic": "Activate Windows Copilot today!", "username": "Antonio Linares" } ]
Activate Windows Copilot today!
[ { "date": "2007-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nWhen a popup menu is activated, the highlight is not show, and the user must first press up or down to see the highlight. Is there a way to automatically highlight the first item?\n\nAlex", "time": "09:46", "topic": "Activate first item on popup menu", "username": "AlexSchaft" } ]
Activate first item on popup menu
[ { "date": "2007-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nIn samples\\TestPop.prg please insert this line:\n[code:2w8dm0ty]\nfunction ShowPopup&#40; nRow, nCol &#41;\n\n oMenu &#58;= BuildPopup&#40;&#41;\n\n // This one!\n oMenu&#58;aItems&#91; 1 &#93;&#58;bWhen = &#123; || oMenu&#58;oWnd &#58;= oWnd, oMenu&#58;Hilite&#40; 1 &#41;, oMenu&#58;aItems&#91; 1 &#93;&#58;bWhen &#58;= nil &#125;\n\n ACTIVATE POPUP oMenu WINDOW oWnd AT nRow, nCol\n\nreturn nil\n[/code:2w8dm0ty]", "time": "09:59", "topic": "Activate first item on popup menu", "username": "Antonio Linares" } ]
Activate first item on popup menu
[ { "date": "2007-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nThe highlight seems to work, but the menu still \"thinks\" it is not highlighted, as you must press down twice to get off the first row. Is there a way around this?\n\nAlex", "time": "13:11", "topic": "Activate first item on popup menu", "username": "AlexSchaft" } ]
Activate first item on popup menu
[ { "date": "2007-06-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nYou could try to send a WM_KEYDOWN to the popup:\n\nSendMessage( oPopup:hMenu, WM_KEYDOWN, VK_DOWN )", "time": "18:54", "topic": "Activate first item on popup menu", "username": "Antonio Linares" } ]
Activate first item on popup menu
[ { "date": "2005-11-12", "forum": "FiveWin for Pocket PC", "text": "Hello\n\nFor saving battery I have to activate the scanner when the program is going to use it and desactivate later.\n\nI the Symbol web I hace found some C functions.\n\n1) The Functions are for Microsoft embedded Visual C++ 4.0. Is possible to use that?\n\n2) How do I call a C function\n\nThanks", "time": "13:42", "topic": "Activating a Scanner", "username": "josevalle" } ]
Activating a Scanner
[ { "date": "2005-11-12", "forum": "FiveWin for Pocket PC", "text": "Jose,\n\nProbably, you may use this function similiar to BatteryInfo sample. \n\nPawel", "time": "17:56", "topic": "Activating a Scanner", "username": "pawelu" } ]
Activating a Scanner
[ { "date": "2005-11-12", "forum": "FiveWin for Pocket PC", "text": "Jose,\n\nPlease provide the URL or the C code so we can help.", "time": "19:37", "topic": "Activating a Scanner", "username": "Antonio Linares" } ]
Activating a Scanner
[ { "date": "2005-11-12", "forum": "FiveWin for Pocket PC", "text": "Hello Antonio:\n\nThe developers web for Symbol products is in:\n\n[url:1cboj543]http&#58;//devzone&#46;symbol&#46;com/[/url:1cboj543]\n\nI attach de code but the solution for this is not urgent for me as I can finish my aplication (I will do that first) and after I will try to optimize the battery life. \n\n\n\n[code:1cboj543]\n//--------------------------------------------------------------------\n// FILENAME&#58;\t\tBasicScan&#46;c\n//\n// Copyright&#40;c&#41; 2002 Symbol Technologies Inc&#46; All rights reserved&#46;\n//\n// DESCRIPTION&#58;\t\tThis simple scanning application demonstrates\n//\t\t\t\t\thow to use the Symbol Scan Library&#46;\n//\t\t\t\t\tThe API's used are as follows&#58;\n//\n//\t\t\t\t\tSCAN_Open\n//\t\t\t\t\tSCAN_Enable\n//\t\t\t\t\tSCAN_AllocateBuffer\n//\t\t\t\t\tSCAN_ReadLabelMsg\n//\t\t\t\t\tSCAN_Flush\n//\t\t\t\t\tSCAN_Disable\n//\t\t\t\t\tSCAN_DeallocateBuffer\n//\t\t\t\t\tSCAN_Close\n//\t\t\t\t\tSCAN_SetSoftTrigger\n//\n//\n// \n//\n//--------------------------------------------------------------------\n\n#include <windows&#46;h>\n#include <windowsx&#46;h>\n\n#include <ScanCAPI&#46;h>\n\n#include \"resource&#46;h\"\n\t\n#define\t\tcountof&#40;x&#41;\t\tsizeof&#40;x&#41;/sizeof&#40;x&#91;0&#93;&#41;\n\n// Define user messages\nenum tagUSERMSGS\n&#123;\n\tUM_SCAN\t= WM_USER + 0x200,\n\tUM_STARTSCANNING,\n\tUM_STOPSCANNING\n&#125;;\n\n// Global variables\nHINSTANCE\t\thInst\t\t\t\t\t= NULL;\nHANDLE\t\t\thScanner\t\t\t\t= NULL;\nLPSCAN_BUFFER\tlpScanBuffer\t\t\t= NULL;\nTCHAR\t\t\tszScannerName&#91;MAX_PATH&#93; = TEXT&#40;\"SCN1&#58;\"&#41;;\t// default scanner name\nDWORD\t\t\tdwScanSize\t\t\t\t= 7095;\t\t\t\t// default scan buffer size\t\nDWORD\t\t\tdwScanTimeout\t\t\t= 0;\t\t\t\t// default timeout value &#40;0 means no timeout&#41;\t\nBOOL\t\t\tbUseText\t\t\t\t= TRUE;\nBOOL\t\t\tbTriggerFlag\t\t\t= FALSE;\nBOOL\t\t\tbRequestPending\t\t\t= FALSE;\nBOOL\t\t\tbStopScanning\t\t\t= FALSE;\n\n// Forward declarations\nLRESULT CALLBACK BasicScanProc&#40;HWND,UINT,WPARAM,LPARAM&#41;;\nvoid\tErrorExit&#40;HWMD, UINT, LPTSTR&#41;;\nLPTSTR\tLoadMsg&#40;UINT, LPTSTR, int&#41;;\n\n//----------------------------------------------------------------------------\n//\n// FUNCTION&#58; WinMain&#40;HINSTANCE, HINSTANCE, LPSTR, int&#41;\n//\n// PURPOSE&#58; Entry point function, initializes the application, instance,\n// and then launches the message loop&#46;\n//\n// PARAMETERS&#58;\n// hInstance - handle that uniquely identifies this instance of the\n// application\n// hPrevInstance - always zero in Win32\n// lpszCmdLine - any command line arguements pass to the program\n// nCmdShow - the state which the application shows itself on\n// startup\n//\n// RETURN VALUE&#58;\n// &#40;int&#41; Returns the value from PostQuitMessage&#40;&#41;&#46;\n//\n//----------------------------------------------------------------------------\n\nint WINAPI WinMain&#40;HINSTANCE hInstance,\n\t\t\t\t HINSTANCE hPrevInstance,\n\t\t\t\t LPWSTR lpszCmdLine,\n\t\t\t\t int nCmdShow&#41;\n&#123;\n\tint nResult;\n\n\thInst = hInstance;\t\t// save the instance handle to a global variable\n\tnResult = DialogBox&#40;hInstance, MAKEINTRESOURCE&#40;IDD_DIALOG_SSCAN&#41;, NULL, \n\t\t\t\t\t\tBasicScanProc&#41;;\n\n\treturn nResult;\n&#125;\n\n\n//----------------------------------------------------------------------------\n//\n// FUNCTION&#58; BasicScanProc&#40;HINSTANCE, HINSTANCE, LPSTR, int&#41;\n//\n// PURPOSE&#58; Application-defined callback function that processes messages \n//\t\t\t\tsent to BasicScan dialog&#46; \n//\n// PARAMETERS&#58;\n// hwnd - handle to the dialog box&#46; \n// uMsg\t - specifies the message&#46; \n// wParam - specifies additional message-specific information&#46; \n// lParam - specifies additional message-specific information&#46; \n//\n// RETURN VALUE&#58;\n// &#40;BOOL&#41; return TRUE if it processed the message, and FALSE if it did not&#46; \n//\n//----------------------------------------------------------------------------\n\nLRESULT CALLBACK BasicScanProc&#40;HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam&#41;\n&#123;\n\tDWORD\t\t\tdwResult;\n\tTCHAR\t\t\tszLabelType&#91;10&#93;;\n\tTCHAR\t\t\tszLen&#91;MAX_PATH&#93;;\n\tTCHAR\t\t\tszMsgBuf&#91;256&#93;;\n\tLPSCAN_BUFFER\tlpScanBuf;\n\tHWND\t\t\thctl_data, hctl_length, hctl_type;\n\n\tswitch&#40;uMsg&#41;\n &#123;\n\t\tcase WM_INITDIALOG&#58;\n\n\t\t\tPostMessage&#40;hwnd,UM_STARTSCANNING,0,0L&#41;;\n\t\t\tbreak;\n\n\t\tcase UM_STARTSCANNING&#58;\n\n\t\t\t// Open scanner, prepare for scanning, \n\t\t\t// and submit the first read request\n\t\t\tdwResult = SCAN_Open&#40;szScannerName, &hScanner&#41;;\n\t\t\tif &#40; dwResult != E_SCN_SUCCESS &#41;\n\t\t\t&#123;\t\n\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_Open\"&#41;&#41;;\n\t\t\t\tbreak;\n\t\t\t&#125;\n\n\t\t\tdwResult = SCAN_Enable&#40;hScanner&#41;;\n\t\t\tif &#40; dwResult != E_SCN_SUCCESS &#41;\n\t\t\t&#123;\n\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_Enable\"&#41;&#41;;\n\t\t\t\tbreak;\n\t\t\t&#125;\n\n\t\t\tlpScanBuffer = SCAN_AllocateBuffer&#40;bUseText, dwScanSize&#41;;\n\t\t\tif &#40;lpScanBuffer == NULL&#41;\n\t\t\t&#123;\n\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_AllocateBuffer\"&#41;&#41;;\n\t\t\t\treturn TRUE;\n\t\t\t&#125;\n\n\t\t\tdwResult = SCAN_ReadLabelMsg&#40;hScanner,\n\t\t\t\t\t\t\t\t\t\t lpScanBuffer,\n\t\t\t\t\t\t\t\t\t\t hwnd,\n\t\t\t\t\t\t\t\t\t\t UM_SCAN,\n\t\t\t\t\t\t\t\t\t\t dwScanTimeout,\n\t\t\t\t\t\t\t\t\t\t NULL&#41;;\n\t\t\tif &#40; dwResult != E_SCN_SUCCESS &#41;\n\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_ReadLabelMsg\"&#41;&#41;;\n\t\t\telse\n\t\t\t\tbRequestPending = TRUE;\n\n\t\t\tbreak;\n\n\t\t\treturn TRUE;\n\n\t\tcase UM_STOPSCANNING&#58;\n\n\t\t\t// We stop scanning in two steps&#58; first, cancel any pending read \n\t\t\t// request; second, after there is no more pending request, disable \n\t\t\t// and close the scanner&#46; We may need to do the second step after \n\t\t\t// a UM_SCAN message told us that the cancellation was completed&#46;\n\t\t\tif &#40;!bStopScanning && bRequestPending&#41;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tSCAN_Flush&#40;hScanner&#41;;\n\n\t\t\tif &#40;!bRequestPending&#41;\t\t\t\n\t\t\t&#123;\t\t\t\t\t\t\t \n\t\t\t\tSCAN_Disable&#40;hScanner&#41;;\n\n\t\t\t\tif &#40;lpScanBuffer&#41;\n\t\t\t\t\tSCAN_DeallocateBuffer&#40;lpScanBuffer&#41;;\n\n\t\t\t\tSCAN_Close&#40;hScanner&#41;;\n\n\t\t\t\tEndDialog&#40;hwnd, 0&#41;;\n\t\t\t&#125;\n\t\t\tbStopScanning = TRUE;\n\n\t\t\treturn TRUE;\n\n\t\tcase WM_ACTIVATE&#58;\n\n\t\t\t// In foreground scanning mode, we need to cancel read requests\n\t\t\t// when the application is deactivated, and re-submit read request\n\t\t\t// when the application is activated again&#46;\n\t\t\tswitch&#40;LOWORD&#40;wParam&#41;&#41;\n\t\t\t&#123;\n\t\t\t\tcase WA_INACTIVE&#58;\n\n\t\t\t\t\thctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;;\n\t\t\t\t\thctl_length = GetDlgItem&#40;hwnd,IDC_EDIT_LEN&#41;;\n\t\t\t\t\thctl_type = GetDlgItem&#40;hwnd,IDC_EDIT_TYPE&#41;;\n\n\t\t\t\t\tEdit_SetText&#40;hctl_data, LoadMsg&#40;IDS_INACTIVE, \n\t\t\t\t\t\t\t\t\t\t\t\t\tszMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;;\n\t\t\t\t\tEdit_SetText&#40;hctl_length, TEXT&#40;\"\"&#41;&#41;;\n\t\t\t\t\tEdit_SetText&#40;hctl_type, TEXT&#40;\"\"&#41;&#41;; \n\n\t\t\t\t\t// Cancel any pending request since we are going to lose focus\n\t\t\t\t\tif &#40;bRequestPending&#41;\n\t\t\t\t\t\tdwResult = SCAN_Flush&#40;hScanner&#41;;\n\t\t\t\t\t\t// Do not set bRequestPending to FALSE until\n\t\t\t\t\t\t// we get the UM_SCAN message\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault&#58;\t// activating\n\n\t\t\t\t\thctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;;\n\t\t\t\t\tEdit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READY, \n\t\t\t\t\t\t\t\t\t\t\t\t\tszMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;;\n\n\t\t\t\t\tif &#40;!bRequestPending && lpScanBuffer != NULL && !bStopScanning&#41;\n\t\t\t\t\t&#123;\t\n\t\t\t\t\t\t// Submit a read request if no request pending\n\t\t\t\t\t\tdwResult = SCAN_ReadLabelMsg&#40;hScanner,\n\t\t\t\t\t\t\t\t\t\t\t\t\t lpScanBuffer,\n\t\t\t\t\t\t\t\t\t\t\t\t\t hwnd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t UM_SCAN,\n\t\t\t\t\t\t\t\t\t\t\t\t\t dwScanTimeout,\n\t\t\t\t\t\t\t\t\t\t\t\t\t NULL&#41;;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif &#40; dwResult != E_SCN_SUCCESS &#41;\n\t\t\t\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_ReadLabelMsg\"&#41;&#41;;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbRequestPending = TRUE;\n\t\t\t\t\t&#125;\n\t\t\t\t\tbreak;\n\t\t\t&#125;\n\t\t\tbreak;\n\n\t\tcase UM_SCAN&#58;\n\n\t\t\tbRequestPending = FALSE;\n\n\t\t\t// Clear the soft trigger\n\t\t\tbTriggerFlag = FALSE;\n\t\t\tSCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;;\n\n\t\t\t// Get scan result from the scan buffer, and display it\n\t\t\tlpScanBuf = &#40;LPSCAN_BUFFER&#41;lParam;\n\t\t\tif &#40; lpScanBuf == NULL &#41;\n\t\t\t\tErrorExit&#40;hwnd, IDS_ERR_BUF, 0&#41;;\n\n\t\t\thctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;;\n\t\t\thctl_length = GetDlgItem&#40;hwnd,IDC_EDIT_LEN&#41;;\n\t\t\thctl_type = GetDlgItem&#40;hwnd,IDC_EDIT_TYPE&#41;;\n\n\t\t\tswitch &#40;SCNBUF_GETSTAT&#40;lpScanBuf&#41;&#41;\n\t\t\t&#123; \n\t\t\t\tcase E_SCN_DEVICEFAILURE&#58;\n\n\t\t\t\t\tEdit_SetText&#40;hctl_data, LoadMsg&#40;IDS_DEVICE_FAILURE, \n\t\t\t\t\t\t\t\t\t\t\t\t\tszMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase E_SCN_READPENDING&#58;\n\n\t\t\t\t\tEdit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READ_PENDING, \n\t\t\t\t\t\t\t\t\t\t\t\t\tszMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase E_SCN_READCANCELLED&#58;\n\n\t\t\t\t\tif &#40;bStopScanning&#41;\n\t\t\t\t\t&#123;\t// complete the second step of UM_STOPSCANNING\n\t\t\t\t\t\tSendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;;\t\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t&#125;\n\t\t\t\t\tif &#40;!GetFocus&#40;&#41;&#41;\t\n\t\t\t\t\t\tbreak;\t// Do nothing if read was cancelled while deactivation\n\n\t\t\t\t\tEdit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READ_CANCELLED, \n\t\t\t\t\t\t\t\t\t\t\t\t\tszMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;;\n\t\t\t\t\tbreak;\n\t\t\t\n\t\t\t\tcase E_SCN_SUCCESS&#58;\n\t\t\t\t\n\t\t\t\t\tEdit_SetText&#40;hctl_data, &#40;LPTSTR&#41;SCNBUF_GETDATA&#40;lpScanBuffer&#41;&#41;;\n\t\t\t\t\t\n\t\t\t\t\t// Format label type as a hex constant for display\n\t\t\t\t\twsprintf&#40;szLabelType, TEXT&#40;\"0x%&#46;2X\"&#41;, SCNBUF_GETLBLTYP&#40;lpScanBuf&#41;&#41;;\n\t\t\t\t\tEdit_SetText&#40;hctl_type, szLabelType&#41;;\n\n\t\t\t\t\twsprintf&#40;szLen, TEXT&#40;\"%d\"&#41;, SCNBUF_GETLEN&#40;lpScanBuf&#41;&#41;;\n\t\t\t\t\tEdit_SetText&#40;hctl_length, szLen&#41;;\n\n\t\t\t\t\tbreak;\n\t\t\t&#125;\n\n\t\t\t// Submit next read request if we are foreground\n\t\t\tif &#40;GetFocus&#40;&#41;&#41;\n\t\t\t&#123;\n\t\t\t\tdwResult = SCAN_ReadLabelMsg&#40;hScanner,\n\t\t\t\t\t\t\t\t\t\t\t lpScanBuffer,\n\t\t\t\t\t\t\t\t\t\t\t hwnd,\n\t\t\t\t\t\t\t\t\t\t\t uMsg,\n\t\t\t\t\t\t\t\t\t\t\t dwScanTimeout,\n\t\t\t\t\t\t\t\t\t\t\t NULL&#41;;\n\t\t\t\t\n\t\t\t\tif &#40; dwResult != E_SCN_SUCCESS &#41;\n\t\t\t\t\tErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;\"SCAN_ReadLabelMsg\"&#41;&#41;;\n\t\t\t\telse\n\t\t\t\t\tbRequestPending = TRUE;\n\t\t\t&#125;\n\n\t\t\treturn TRUE;\n\n\t\tcase WM_COMMAND&#58;\n\t\t\t\n\t\t\tswitch &#40;LOWORD&#40;wParam&#41;&#41;\n &#123;\n\t\t\t\tcase IDC_BUTTON_SOFTTRIGGER&#58;\n\t\t\t\t\t// Clear the state first before we set it to TRUE\n\t\t\t\t\tbTriggerFlag = FALSE;\n\t\t\t\t\tSCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;;\n\n\t\t\t\t\tbTriggerFlag = TRUE;\n\t\t\t\t\tSCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase IDOK&#58;\t// fall through\n\n\t\t\t\tcase IDCANCEL&#58;\n\n\t\t\t\t\tSendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;;\n\t\t\t\t\tbreak;\n\t\t\t&#125;\n\n\t\t\treturn TRUE;\n\t&#125;\n\n\treturn FALSE;\n&#125;\n\n//----------------------------------------------------------------------------\n//\n// FUNCTION&#58; ErrorExit&#40;HWND, UINT, LPTSTR&#41;\n//\n// PURPOSE&#58; Handle critical errors and exit dialog&#46; \n//\n// PARAMETERS&#58;\n// hwnd - handle to the dialog box&#46; \n// uID\t\t - ID of the message string to be displayed \n// szFunc - function name if it's an API function failure \n//\n// RETURN VALUE&#58;\n// None&#46;\n//\n//----------------------------------------------------------------------------\n\nvoid ErrorExit&#40;HWND hwnd, UINT uID, LPTSTR szFunc&#41;\n&#123;\n\tTCHAR szMsg&#91;256&#93;;\n\tTCHAR szBuf&#91;256&#93;;\n\n\tif &#40;szFunc == NULL&#41;\n\t\twcscpy&#40;szMsg, LoadMsg&#40;uID, szBuf, countof&#40;szBuf&#41;&#41;&#41;;\n\telse\n\t\twsprintf&#40;szMsg, TEXT&#40;\"%s %s\"&#41;, szFunc, \n\t\t\t\t\tLoadMsg&#40;uID, szBuf, countof&#40;szBuf&#41;&#41;&#41;;\n\tMessageBox&#40;NULL, szMsg, NULL, MB_OK&#41;;\n\tSendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;;\n&#125;\n\n//----------------------------------------------------------------------------\n//\n// FUNCTION&#58; LoadMsg&#40;UINT, LPTSTR, int&#41;\n//\n// PURPOSE&#58; Load a message string for the string table\n//\n// PARAMETERS&#58;\n// uID\t\t - ID of the message string to be loaded\n// lpBuffer - buffer to hold the message string\n//\t\tnBufSize - size of lpBuffer\n//\n// RETURN VALUE&#58;\n// &#40;LPTSTR&#41; pointer to lpBuffer\n//\n//----------------------------------------------------------------------------\n\nLPTSTR LoadMsg&#40;UINT uID, LPTSTR lpBuffer, int nBufSize&#41;\n&#123;\n\tif &#40;!LoadString&#40;hInst, uID, lpBuffer, nBufSize&#41;&#41;\n\t\twcscpy&#40;lpBuffer, TEXT&#40;\"\"&#41;&#41;;\n\n\treturn lpBuffer;\n&#125;[/code:1cboj543]\n\n\n[/quote]", "time": "20:44", "topic": "Activating a Scanner", "username": "josevalle" } ]
Activating a Scanner
[ { "date": "2005-11-12", "forum": "FiveWin for Pocket PC", "text": "Jose,\n\nYou may start using some portions of the code and test them:\n\nFrom your app, just call Scan_Open() and see if you get or not an error message.\n\n[code:j2hanas1]\n#pragma BEGINDUMP \n\n#include <hbapi&#46;h> \n#include <windows&#46;h> \n#include <ScanCAPI&#46;h> \n\nHANDLE hScanner = NULL;\nTCHAR szScannerName&#91;MAX_PATH&#93; = L\"SCN1&#58;\"; \n\nHB_FUNC&#40; SCAN_OPEN &#41;\n&#123;\n DWORD dwResult = SCAN_Open&#40; szScannerName, &hScanner &#41;;\n \n if &#40; dwResult != E_SCN_SUCCESS &#41; \n MessageBox&#40; GetActiveWindow&#40;&#41;, L\"Fallo en Scan_Open\", L\"Ok\", 0 &#41;;\n&#125;\n\n#pragma ENDDUMP\n[/code:j2hanas1]", "time": "22:01", "topic": "Activating a Scanner", "username": "Antonio Linares" } ]
Activating a Scanner
[ { "date": "2005-11-14", "forum": "FiveWin for Pocket PC", "text": "Hello Jose\n\nI suggest you use palm with intergrated scanner. \n(I use <!-- m --><a class=\"postlink\" href=\"http://na.psc.com/html/f4220.htm\">http://na.psc.com/html/f4220.htm</a><!-- m --> )\nThey work very well and you d'ont need to write any cose, \nas it is automatic.\nIhave had negative experiences with external scanner \n\nRegards Maurizio\n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->", "time": "15:34", "topic": "Activating a Scanner", "username": "Maurizio" } ]
Activating a Scanner
[ { "date": "2005-11-14", "forum": "FiveWin for Pocket PC", "text": "Hello Maurizio.\n\nI have a Symbol 8800 pda with integrated scanner. I can configure it to remain active all the time but the seller told me that was better, for saving battery, to activate a de-activate each time we want to scan a codebar. \n\nI will take a look at the web you point because I thing that 1500€ is very expensive.\n\nThanks for your information", "time": "16:31", "topic": "Activating a Scanner", "username": "josevalle" } ]
Activating a Scanner
[ { "date": "2007-09-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Does anybody know how to get the user name from active directory in FiveWin?", "time": "21:23", "topic": "Active Directory", "username": "byron.hopp" } ]
Active Directory