topic
stringlengths
1
63
text
stringlengths
1
577k
Activar RTS en la Comunicacion COM
Según la documentación de Microsoft, al usar esta cadena de conexión:BuildCommDcb( "COM1:9600,n,8,1", @cDcb ) el RTS se debería activar. Aqui te copio la explicación que ellos dan:· 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:fInX, fOutX,fOutXDsrFlow,and fOutXCtsFlow are all set to FALSEfDtrControl is set to DTR_CONTROL_ENABLEfRtsControl is set to RTS_CONTROL_ENABLE Aqui tienes un artículo que da más detalles del RTS:<!-- m --><a class="postlink" href="http://support.microsoft.com/kb/101419/es">http://support.microsoft.com/kb/101419/es</a><!-- m -->
Activar Teclado ao clicar num GET
è possivel quando clicar sobre um GET se o Teclado estivar Invisible, colocalo visibleObrigado Sérgio
Activar Teclado ao clicar num GET
Sérgio,@ 2, 2 GET oGet VAR cTest OF oWndoGet:bGotFocus := { || ShowKeyboard() }
Activar Teclado ao clicar num GET
Obrigado , funcionou, estou a adorar o FWPPC, estou a desenvolver umaaplicação.. Conto com a vossa ajuda..Mais uma questão está previsto uma versão para iphone?Obrigado
Activar Teclado ao clicar num GET
> Mais uma questão está previsto uma versão para iphone? Tenemos ya un prototipo pero lo desarrollamos para la versión 1, y hemos esperado a la versión 2 pues venian muchos cambios.La idea es retomar su desarrollo, y poder ofrecer una primera versión pronto.
Activar Teclado ao clicar num GET
[quote="Antonio Linares":1irs9aje]oGet:bGotFocus := { || [b:1irs9aje]ShowKeyboard()[/b:1irs9aje] }[/quote:1irs9aje]¿ Y como de oculta de nuevo ?
Activar Teclado ao clicar num GET
HideKeyBoard()
Activar Teclado ao clicar num GET
[quote="Biel EA6DD":gslp20hg][b:gslp20hg]Hide[/b:gslp20hg]KeyBoard()[/quote:gslp20hg]Claro 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]Muchas gracias, Biel.Y para rematar ¿ como saco que el teclado sea el NÚMERICO ?
Activar Teclado ao clicar num GET
[quote="JmGarcia":10dhypfx]Y para rematar ¿ como saco que el teclado sea el NÚMERICO ?[/quote:10dhypfx]Ups... <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Activar Temas
Hola Dentro de una misma aplicación, se pueden activar los temas y desactivar ? Saludos, Gabriel
Activar Temas
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=185184#p185184">viewtopic.php?p=185184#p185184</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=185139#p185139">viewtopic.php?p=185139#p185139</a><!-- l -->
Activar Temas
Hola Antonio 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. Saludos, Gabriel
Activar Temas
Has probado a llamar a SetWindowTheme( oDlg:hWnd, "", "" ) desde el ON INIT del ACTIVATE DIALOG del diálogo que contiene el folder ?
Activar Temas
Antonio, En el ON INIT SetWindowTheme( oFolder:hWnd, "", "" ) y funciona perfectamente. Saludos,
Activar Temas
muy bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Activar Una Opción pre-definida (menu)
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,,
Activar Una Opción pre-definida (menu)
oMenu:Hilite( <nOpción> )
Activar Una Opción pre-definida (menu)
Gracias, Pero ya lo intenté y lo único que hace es 'pintar' la Opción, pero realmente no está seleccionado el menú
Activar Una Opción pre-definida (menu)
Te refieres a ejecutar la acción de un menuitem ?
Activar Una Opción pre-definida (menu)
Saludos Antonio... Lo que plantea Angel es lo siguiente... Se 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... Efectivamente se probó usando oMenu:Hilite(), pero lo único que hace el método es resaltar la opción, pero no despliega el submenu. No se desea ejecutar ninguna acción de ningún item del menú, solo que la aplicación entre con el submenú ya desplegado. 1GB de Gracias de antemano por los comentarios, Giancarlo J. Sabattino S. Valencia, Venezuela.
Activar Una Opción pre-definida (menu)
Giancarlo, > Efectivamente se probó usando oMenu:Hilite(), pero lo único que hace el método es resaltar la opción, pero no despliega el submenu. > Habeis probado a hacer oMenu:Hilite() con un submenu del menú principal ?
Activar Una Opción pre-definida (menu)
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 gracias.....
Activar WebCam para filmar
Hola Amigos,, Es posible activar una WebCam para filmar y grabar la filmacion en un archivo?? Salu2
Activar WebCam para filmar
Amigo: Mira los posts: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=5695&highlight=webcam">http://fivetechsoft.com/forums/viewtopi ... ght=webcam</a><!-- m --> <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=2501">http://fivetechsoft.com/forums/viewtopic.php?t=2501</a><!-- m -->
Activar WebCam para filmar
Gracias señor,,,, Salu2
Activar boton en diferentes Browse
Hola Amigos Tengo 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. Gracias por la ayuda Saludos Adhemar
Activar boton en diferentes Browse
Hola... Prueba con bGotFocus y bLostFocus. [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] Saludos, Esteban.
Activar boton en diferentes Browse
Gracias Esteban Funcionó perfecto Saludos Adhemar
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Mr. Rao: Thanks so much, I will test your sample. Regards
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Mr. Rao: Please embed the dialogue in an MDI CHILD window Regards
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Hola Foreros: Por aquí saludando y preguntando, tengo el siguiente pseudo código: [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] Como vemos, el botón oBtns[02] esta condicionado, en otra función abro la tabla oRsVia y seguro estoy que tiene registros pero el botón no se activa, aún con oDlg:AEValWhen() Algo que me haga falta? Saludos
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Armando: yo también tengo miles de dolores de cabeza al tratar de activar un botón con una condición, sugiero lo siguiente: paso 1 : ( al colocar {|| } me funcionan en mi caso ) [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] paso 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]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Tocayo: Te agradezco la disponibilidad de apoyar pero no, no funciona como me sugeriste, a ver si hay alguna otra recomendación. Saludos
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Intenta asi: [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]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Karinha: Tampoco me funciona. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Saludos
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Hola Armando. Si te interesa puedes probar lo que yo hago. a la funcion que llamo con el boton le paso como parametros, el objeto menu y el boton que es los que tengo que desabilitar. Ejemplo. [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] Supongo que no sera lo mas ortodoxo, pero pruebalo que funciona. Saludos. Jose.
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Perdona se me ha olvidado decirte que las variables estan declaradas STATIC fuera de todo procedimiento , funcion. Saludos. Jose.
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
brakaman: Agradezco el interés, pero no es exactamente mi escenario. Te cuento: Tengo un dialogo dentro de una ventana MDICHILD, al activar la ventana, en el ON INIT voy a la función que crea una barra de botones que me sirven para AGREGAR, MODIFICAR, ELIMINAR, etc. Cuando abro el dialogo por primera vez la tabla está vacía y por tanto los botones están disable, excepto el botón AGREGAR Al agregar el primer registro a la tabla, necesito que se activen todos los botones, hasta ahí todo funciona muy bien. En el dialogo tengo un control DATEPICKER para dar opción al usuario de elegir movimientos de otro día, cuando cambian la fecha hago el filtro a la tabla y muestro los nuevos registros en un browse, ahí todo bien, pero los botones no se activan cuando que ya hay registros en la tabla. Saludos y gracias
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Buena dia... Ya evaluó directamente el resultado de la condición ? : "oRsVia:State() = adStateOpen .AND. oRsVia:RecordCount > 0 " ... Lo uso así acorde a mi necesidad. [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] Johnson Russi Colombia
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Amigos: Problema solucionado usando DISABLE y ENABLE. Muchas gracias y larga vida al foro
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
It should work even without calling oDlg:AEvalWhen() or oBar:AEvalWhen() even on a dialog in mdichild. This is my sample code working without calling any AEvalwhen() or disable or enable. [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] [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]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
The command used [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] embeds the dialog into mdichild. Simple and standard way to embed dialogs in mdichild from FWH1810. Whatsnew.txt ACTIVATE DIALOG oDlg AS MDICHILD. In an MDI environment, converts the dialog as mdichild and activates. On activation, the variable oDlg now refers to the new mdichild window and all actions and codeblocks using oDlg variable now act on the mdichild window. fwh\samples\mdidlg.prg <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36244">viewtopic.php?f=3&t=36244</a><!-- l --> May I know the version of FWH you are using? Let me try with the same version of FWH you are using.
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
This is a working sample for FWH versions older than FWH1810. I have tested this sample with FWH1602 and is working well. For the old versions I used [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] after changing the filter of oRs. This sample gives exactly the same results as shown in the above animated gif. [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]
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Mr. Rao: I use FWH1711. Regards
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
[quote="Armando":12ziwllb]Mr. Rao: I use FWH1711. Regards[/quote:12ziwllb] Then the second sample I posted should work for you. I tested this prg with FWH1602.
Activar botón con oDlg:AEValWhen() (SOLUCIONADO)
Mr. Rao: Thanks so much. Regards
Activar un oBtn con Click del Mouse y Enter de teclado
Hola: en 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: como 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 ?? Saludos Veracruz, Ver. Mexico
Activar un oBtn con Click del Mouse y Enter de teclado
Tienes algún botón que sea DEFAULT en la caja de diálogo ?
Activar un oBtn con Click del Mouse y Enter de teclado
Antonio: no, no tengo ningun boton DEFAULT, Gracias por tu atencion Saludos Veracruz, Mexico
Activar un oBtn con Click del Mouse y Enter de teclado
Que versión de FW usais ?
Activar un oBtn con Click del Mouse y Enter de teclado
Uso la version 2.3 de fivewin clipper 5.3 blinker 6.0 Realmente 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? Gracias. Saludos Veracruz, Mexico
Activar un oBtn con Click del Mouse y Enter de teclado
Estás usando una versión bastante antigua de FW. Deberías actualizarte a la versión más reciente. Se han hecho muchísimos cambios desde la versión que tu usas.
Activar una funcion justo al seleccionar una solapa de folde
Buenas: Necesito activar una función justo cuando el usuario pulsa una solapa dentro de un folder.... ¿es posible? Mil gracias. LORENZO.
Activar una funcion justo al seleccionar una solapa de folde
[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]
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Antonio, Quiero 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 : oRibbon:Refresh() oRibbon:Default() Y nop, no funca. A veces lo hace otras no. Acaso tengo que recorrer todos los botones pertenecientes al grupo para volver a validar la condicion ? No existe algun aEvalWhen() para la Ribbon ? Saludos
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Que tal Ray, Estoy usando la ribbon y en determinado momento tuve la necesidad de hacer lo mismo que tu, me fue dificl poder ejecutarlo, mejor opte por hacer un modulo de permisos para cada opcion de la ribbon, grupos y botones... Investigue 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: oRibbon: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: oRibbon:aDialogs[2]:aControls[3]:aControls[5]:nID los 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: oRibbon:Hide(no.grupo) y oRibbon:Show(no.grupo) siempre que hago eso ejecuto el oRibbon:CalcPos() y te comento algo, me funciona bien y como quiero, fue otro camino un poco mas largo, pero me dio la solucion... espero poder ayudarte saludos paco
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Hola Paco, Muchas gracias por la info, hare algunas pruebas con lo que comentas. Saludos
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Paco, Al parecer con esto logre solucionarlo : aeval( oRBar:aDialogs[x]:aControls, {|oControl| oControl:aevalwhen() } ) Y ya me esta validando las condiciones hasta el momento, de manera correcta. Veremos si no brinca algun otro detalle. Saludos
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Ray, excelente, 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, saludos paco
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
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,, gracias paco
Activar/Desactivar botones en ribbonBar on the fly.. (SOLVED
Paco, Abres tu hilo, te vas al 1er post y lo editas, y ahi ajustas tu encabezado. Saludos
Activar/desactivar opciones en EXPLOREBAR
En un control EXPLORERBAR puedo desactivar los PANEL con oPanel1:Disable() y ocultarlos con oPanel1:Hide(). ¿Hay forma de desactivar u ocultar los links de cada PANEL?
Activar/descativar ON CHANGE en tiempo de ejecucion
Compañeros: Tengo 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. Tengo el siguiente código [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] ¿ Como sería ? Con gracias anticipadas, saluda LORENZO
Activar/descativar ON CHANGE en tiempo de ejecucion
Podria ser [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]
Activate FW-forum for Tapatalk
Antonio, Is there a posibility to activate this forum so I can read it also with Tapatalk on my smartphone? Thanks, Marc
Activate FW-forum for Tapatalk
Antonio, Any chance? Marc
Activate FW-forum for Tapatalk
Marc, I 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. Sorry for the delay...
Activate FW-forum for Tapatalk
Antonio, Thank 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 --> Marc
Activate FW-forum for Tapatalk
Antonio, Have you had time to look at it? Thanks, Marc
Activate FW-forum for Tapatalk
Checking it right now, sorry for the delay: [url:th80euvp]http&#58;//www&#46;tapatalk&#46;com/activate_tapatalk&#46;php?plugin=phpbb[/url:th80euvp]
Activate FW-forum for Tapatalk
Mark, Ready, it should be available already <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Activate FW-forum for Tapatalk
Antonio, Tapatalk can't find fivetechsupport yet. Maybe I have to wait some time so they have updated their server. I let you know if it works. Thanks, Marc
Activate FW-forum for Tapatalk
Antonio, If I search tapatalk to fivetech or fivetechsoft, it doesn't find it. Did you use an other name? Thanks, Marc
Activate FW-forum for Tapatalk
Marc, I 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:-) -->
Activate FW-forum for Tapatalk
Antonio, It's working fine now!!! Thanks, Marc Verstuurd van mijn HTC Desire S met Tapatalk
Activate FW-forum for Tapatalk
Marc, Could you post a screenshot ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> thanks for your feedback
Activate FW-forum for Tapatalk
Antonio, I don't know if it's possible to make a 'Print-screen' and save it to a file with Android. Otherwise, I will take a photo of it when I'am home. Marc
Activate FW-forum for Tapatalk
Marc, [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]
Activate FW-forum for Tapatalk
Antonio, Sorry for the delay, but here are some screenshots. [img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-10&#46;jpg[/img:25cb2ev1] [img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-43&#46;jpg[/img:25cb2ev1] [img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-35-54&#46;jpg[/img:25cb2ev1] [img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-36-03&#46;jpg[/img:25cb2ev1] [img:25cb2ev1]http&#58;//www&#46;vms&#46;be/FWTest/2012-09-12_17-36-34&#46;jpg[/img:25cb2ev1] Regards, Marc
Activate FW-forum for Tapatalk
Marc, Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Activate Tabtip modify sample C#
Dear All, I found the C# that can activate Tabtip.exe anytime, even ::bGotFocus of GET, not only ACTIVATE clause. Can we modify to xHarbour? Thanks in advance, [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]
Activate Tabtip modify sample C#
Dear Dutch Not enough with this? <!-- 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 -->
Activate Tabtip modify sample C#
Dear cnavarro, I'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. Thank you in advance, [quote="cnavarro":2dxldcf8]Dear Dutch Not enough with this? <!-- 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]
Activate Tabtip modify sample C#
Ok, I understand and I will look at it then
Activate Tabtip modify sample C#
Thank you so much, [quote="cnavarro":b001zt41]Ok, I understand and I will look at it then[/quote:b001zt41]
Activate Windows Copilot today!
[url:26lw6y8m]https&#58;//www&#46;larazon&#46;es/tecnologia/inteligencia-artificial-sencillo-truco-activar-copilot-windows-11-espana_20231003651b1e9890d39d0001e6eff5&#46;html[/url:26lw6y8m] microsoft-edge://?ux=copilot&tcp=1&source=taskbar got it working on my PC, now wondering how to access it programmatically... Create a direct access on the desktop that you can move to the taskbar: C:\Windows\explorer.exe "microsoft-edge:///?ux=copilot&tcp=1&source=taskbar"
Activate Windows Copilot today!
[url:bs947nrt]https&#58;//stackoverflow&#46;com/questions/77249923/how-to-programmatically-use-the-new-windows-copilot?noredirect=1#comment136190904_77249923[/url:bs947nrt]
Activate Windows Copilot today!
Are you using it ? Please provide feedback as I am testing a new FWH example to inspect the Windows Copilot windows handles, in case you want to test it
Activate first item on popup menu
Hi, When 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? Alex
Activate first item on popup menu
Alex, In samples\TestPop.prg please insert this line: [code:2w8dm0ty] function ShowPopup&#40; nRow, nCol &#41; oMenu &#58;= BuildPopup&#40;&#41; // This one! 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; ACTIVATE POPUP oMenu WINDOW oWnd AT nRow, nCol return nil [/code:2w8dm0ty]
Activate first item on popup menu
Hi, The 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? Alex
Activate first item on popup menu
Alex, You could try to send a WM_KEYDOWN to the popup: SendMessage( oPopup:hMenu, WM_KEYDOWN, VK_DOWN )
Activating a Scanner
Hello For saving battery I have to activate the scanner when the program is going to use it and desactivate later. I the Symbol web I hace found some C functions. 1) The Functions are for Microsoft embedded Visual C++ 4.0. Is possible to use that? 2) How do I call a C function Thanks
Activating a Scanner
Jose, Probably, you may use this function similiar to BatteryInfo sample. Pawel
Activating a Scanner
Jose, Please provide the URL or the C code so we can help.
Activating a Scanner
Hello Antonio: The developers web for Symbol products is in: [url:1cboj543]http&#58;//devzone&#46;symbol&#46;com/[/url:1cboj543] I 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. [code:1cboj543] //-------------------------------------------------------------------- // FILENAME&#58; BasicScan&#46;c // // Copyright&#40;c&#41; 2002 Symbol Technologies Inc&#46; All rights reserved&#46; // // DESCRIPTION&#58; This simple scanning application demonstrates // how to use the Symbol Scan Library&#46; // The API's used are as follows&#58; // // SCAN_Open // SCAN_Enable // SCAN_AllocateBuffer // SCAN_ReadLabelMsg // SCAN_Flush // SCAN_Disable // SCAN_DeallocateBuffer // SCAN_Close // SCAN_SetSoftTrigger // // // // //-------------------------------------------------------------------- #include <windows&#46;h> #include <windowsx&#46;h> #include <ScanCAPI&#46;h> #include "resource&#46;h" #define countof&#40;x&#41; sizeof&#40;x&#41;/sizeof&#40;x&#91;0&#93;&#41; // Define user messages enum tagUSERMSGS &#123; UM_SCAN = WM_USER + 0x200, UM_STARTSCANNING, UM_STOPSCANNING &#125;; // Global variables HINSTANCE hInst = NULL; HANDLE hScanner = NULL; LPSCAN_BUFFER lpScanBuffer = NULL; TCHAR szScannerName&#91;MAX_PATH&#93; = TEXT&#40;"SCN1&#58;"&#41;; // default scanner name DWORD dwScanSize = 7095; // default scan buffer size DWORD dwScanTimeout = 0; // default timeout value &#40;0 means no timeout&#41; BOOL bUseText = TRUE; BOOL bTriggerFlag = FALSE; BOOL bRequestPending = FALSE; BOOL bStopScanning = FALSE; // Forward declarations LRESULT CALLBACK BasicScanProc&#40;HWND,UINT,WPARAM,LPARAM&#41;; void ErrorExit&#40;HWMD, UINT, LPTSTR&#41;; LPTSTR LoadMsg&#40;UINT, LPTSTR, int&#41;; //---------------------------------------------------------------------------- // // FUNCTION&#58; WinMain&#40;HINSTANCE, HINSTANCE, LPSTR, int&#41; // // PURPOSE&#58; Entry point function, initializes the application, instance, // and then launches the message loop&#46; // // PARAMETERS&#58; // hInstance - handle that uniquely identifies this instance of the // application // hPrevInstance - always zero in Win32 // lpszCmdLine - any command line arguements pass to the program // nCmdShow - the state which the application shows itself on // startup // // RETURN VALUE&#58; // &#40;int&#41; Returns the value from PostQuitMessage&#40;&#41;&#46; // //---------------------------------------------------------------------------- int WINAPI WinMain&#40;HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpszCmdLine, int nCmdShow&#41; &#123; int nResult; hInst = hInstance; // save the instance handle to a global variable nResult = DialogBox&#40;hInstance, MAKEINTRESOURCE&#40;IDD_DIALOG_SSCAN&#41;, NULL, BasicScanProc&#41;; return nResult; &#125; //---------------------------------------------------------------------------- // // FUNCTION&#58; BasicScanProc&#40;HINSTANCE, HINSTANCE, LPSTR, int&#41; // // PURPOSE&#58; Application-defined callback function that processes messages // sent to BasicScan dialog&#46; // // PARAMETERS&#58; // hwnd - handle to the dialog box&#46; // uMsg - specifies the message&#46; // wParam - specifies additional message-specific information&#46; // lParam - specifies additional message-specific information&#46; // // RETURN VALUE&#58; // &#40;BOOL&#41; return TRUE if it processed the message, and FALSE if it did not&#46; // //---------------------------------------------------------------------------- LRESULT CALLBACK BasicScanProc&#40;HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam&#41; &#123; DWORD dwResult; TCHAR szLabelType&#91;10&#93;; TCHAR szLen&#91;MAX_PATH&#93;; TCHAR szMsgBuf&#91;256&#93;; LPSCAN_BUFFER lpScanBuf; HWND hctl_data, hctl_length, hctl_type; switch&#40;uMsg&#41; &#123; case WM_INITDIALOG&#58; PostMessage&#40;hwnd,UM_STARTSCANNING,0,0L&#41;; break; case UM_STARTSCANNING&#58; // Open scanner, prepare for scanning, // and submit the first read request dwResult = SCAN_Open&#40;szScannerName, &hScanner&#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; &#123; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_Open"&#41;&#41;; break; &#125; dwResult = SCAN_Enable&#40;hScanner&#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; &#123; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_Enable"&#41;&#41;; break; &#125; lpScanBuffer = SCAN_AllocateBuffer&#40;bUseText, dwScanSize&#41;; if &#40;lpScanBuffer == NULL&#41; &#123; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_AllocateBuffer"&#41;&#41;; return TRUE; &#125; dwResult = SCAN_ReadLabelMsg&#40;hScanner, lpScanBuffer, hwnd, UM_SCAN, dwScanTimeout, NULL&#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_ReadLabelMsg"&#41;&#41;; else bRequestPending = TRUE; break; return TRUE; case UM_STOPSCANNING&#58; // We stop scanning in two steps&#58; first, cancel any pending read // request; second, after there is no more pending request, disable // and close the scanner&#46; We may need to do the second step after // a UM_SCAN message told us that the cancellation was completed&#46; if &#40;!bStopScanning && bRequestPending&#41; SCAN_Flush&#40;hScanner&#41;; if &#40;!bRequestPending&#41; &#123; SCAN_Disable&#40;hScanner&#41;; if &#40;lpScanBuffer&#41; SCAN_DeallocateBuffer&#40;lpScanBuffer&#41;; SCAN_Close&#40;hScanner&#41;; EndDialog&#40;hwnd, 0&#41;; &#125; bStopScanning = TRUE; return TRUE; case WM_ACTIVATE&#58; // In foreground scanning mode, we need to cancel read requests // when the application is deactivated, and re-submit read request // when the application is activated again&#46; switch&#40;LOWORD&#40;wParam&#41;&#41; &#123; case WA_INACTIVE&#58; hctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;; hctl_length = GetDlgItem&#40;hwnd,IDC_EDIT_LEN&#41;; hctl_type = GetDlgItem&#40;hwnd,IDC_EDIT_TYPE&#41;; Edit_SetText&#40;hctl_data, LoadMsg&#40;IDS_INACTIVE, szMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;; Edit_SetText&#40;hctl_length, TEXT&#40;""&#41;&#41;; Edit_SetText&#40;hctl_type, TEXT&#40;""&#41;&#41;; // Cancel any pending request since we are going to lose focus if &#40;bRequestPending&#41; dwResult = SCAN_Flush&#40;hScanner&#41;; // Do not set bRequestPending to FALSE until // we get the UM_SCAN message break; default&#58; // activating hctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;; Edit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READY, szMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;; if &#40;!bRequestPending && lpScanBuffer != NULL && !bStopScanning&#41; &#123; // Submit a read request if no request pending dwResult = SCAN_ReadLabelMsg&#40;hScanner, lpScanBuffer, hwnd, UM_SCAN, dwScanTimeout, NULL&#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_ReadLabelMsg"&#41;&#41;; else bRequestPending = TRUE; &#125; break; &#125; break; case UM_SCAN&#58; bRequestPending = FALSE; // Clear the soft trigger bTriggerFlag = FALSE; SCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;; // Get scan result from the scan buffer, and display it lpScanBuf = &#40;LPSCAN_BUFFER&#41;lParam; if &#40; lpScanBuf == NULL &#41; ErrorExit&#40;hwnd, IDS_ERR_BUF, 0&#41;; hctl_data = GetDlgItem&#40;hwnd,IDC_EDIT_DATA&#41;; hctl_length = GetDlgItem&#40;hwnd,IDC_EDIT_LEN&#41;; hctl_type = GetDlgItem&#40;hwnd,IDC_EDIT_TYPE&#41;; switch &#40;SCNBUF_GETSTAT&#40;lpScanBuf&#41;&#41; &#123; case E_SCN_DEVICEFAILURE&#58; Edit_SetText&#40;hctl_data, LoadMsg&#40;IDS_DEVICE_FAILURE, szMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;; break; case E_SCN_READPENDING&#58; Edit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READ_PENDING, szMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;; break; case E_SCN_READCANCELLED&#58; if &#40;bStopScanning&#41; &#123; // complete the second step of UM_STOPSCANNING SendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;; return TRUE; &#125; if &#40;!GetFocus&#40;&#41;&#41; break; // Do nothing if read was cancelled while deactivation Edit_SetText&#40;hctl_data, LoadMsg&#40;IDS_READ_CANCELLED, szMsgBuf, countof&#40;szMsgBuf&#41;&#41;&#41;; break; case E_SCN_SUCCESS&#58; Edit_SetText&#40;hctl_data, &#40;LPTSTR&#41;SCNBUF_GETDATA&#40;lpScanBuffer&#41;&#41;; // Format label type as a hex constant for display wsprintf&#40;szLabelType, TEXT&#40;"0x%&#46;2X"&#41;, SCNBUF_GETLBLTYP&#40;lpScanBuf&#41;&#41;; Edit_SetText&#40;hctl_type, szLabelType&#41;; wsprintf&#40;szLen, TEXT&#40;"%d"&#41;, SCNBUF_GETLEN&#40;lpScanBuf&#41;&#41;; Edit_SetText&#40;hctl_length, szLen&#41;; break; &#125; // Submit next read request if we are foreground if &#40;GetFocus&#40;&#41;&#41; &#123; dwResult = SCAN_ReadLabelMsg&#40;hScanner, lpScanBuffer, hwnd, uMsg, dwScanTimeout, NULL&#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; ErrorExit&#40;hwnd, IDS_FAILURE, TEXT&#40;"SCAN_ReadLabelMsg"&#41;&#41;; else bRequestPending = TRUE; &#125; return TRUE; case WM_COMMAND&#58; switch &#40;LOWORD&#40;wParam&#41;&#41; &#123; case IDC_BUTTON_SOFTTRIGGER&#58; // Clear the state first before we set it to TRUE bTriggerFlag = FALSE; SCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;; bTriggerFlag = TRUE; SCAN_SetSoftTrigger&#40;hScanner,&bTriggerFlag&#41;; break; case IDOK&#58; // fall through case IDCANCEL&#58; SendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;; break; &#125; return TRUE; &#125; return FALSE; &#125; //---------------------------------------------------------------------------- // // FUNCTION&#58; ErrorExit&#40;HWND, UINT, LPTSTR&#41; // // PURPOSE&#58; Handle critical errors and exit dialog&#46; // // PARAMETERS&#58; // hwnd - handle to the dialog box&#46; // uID - ID of the message string to be displayed // szFunc - function name if it's an API function failure // // RETURN VALUE&#58; // None&#46; // //---------------------------------------------------------------------------- void ErrorExit&#40;HWND hwnd, UINT uID, LPTSTR szFunc&#41; &#123; TCHAR szMsg&#91;256&#93;; TCHAR szBuf&#91;256&#93;; if &#40;szFunc == NULL&#41; wcscpy&#40;szMsg, LoadMsg&#40;uID, szBuf, countof&#40;szBuf&#41;&#41;&#41;; else wsprintf&#40;szMsg, TEXT&#40;"%s %s"&#41;, szFunc, LoadMsg&#40;uID, szBuf, countof&#40;szBuf&#41;&#41;&#41;; MessageBox&#40;NULL, szMsg, NULL, MB_OK&#41;; SendMessage&#40;hwnd,UM_STOPSCANNING,0,0L&#41;; &#125; //---------------------------------------------------------------------------- // // FUNCTION&#58; LoadMsg&#40;UINT, LPTSTR, int&#41; // // PURPOSE&#58; Load a message string for the string table // // PARAMETERS&#58; // uID - ID of the message string to be loaded // lpBuffer - buffer to hold the message string // nBufSize - size of lpBuffer // // RETURN VALUE&#58; // &#40;LPTSTR&#41; pointer to lpBuffer // //---------------------------------------------------------------------------- LPTSTR LoadMsg&#40;UINT uID, LPTSTR lpBuffer, int nBufSize&#41; &#123; if &#40;!LoadString&#40;hInst, uID, lpBuffer, nBufSize&#41;&#41; wcscpy&#40;lpBuffer, TEXT&#40;""&#41;&#41;; return lpBuffer; &#125;[/code:1cboj543] [/quote]
Activating a Scanner
Jose, You may start using some portions of the code and test them: From your app, just call Scan_Open() and see if you get or not an error message. [code:j2hanas1] #pragma BEGINDUMP #include <hbapi&#46;h> #include <windows&#46;h> #include <ScanCAPI&#46;h> HANDLE hScanner = NULL; TCHAR szScannerName&#91;MAX_PATH&#93; = L"SCN1&#58;"; HB_FUNC&#40; SCAN_OPEN &#41; &#123; DWORD dwResult = SCAN_Open&#40; szScannerName, &hScanner &#41;; if &#40; dwResult != E_SCN_SUCCESS &#41; MessageBox&#40; GetActiveWindow&#40;&#41;, L"Fallo en Scan_Open", L"Ok", 0 &#41;; &#125; #pragma ENDDUMP [/code:j2hanas1]
Activating a Scanner
Hello Jose I suggest you use palm with intergrated scanner. (I use <!-- m --><a class="postlink" href="http://na.psc.com/html/f4220.htm">http://na.psc.com/html/f4220.htm</a><!-- m --> ) They work very well and you d'ont need to write any cose, as it is automatic. Ihave had negative experiences with external scanner Regards Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
Activating a Scanner
Hello Maurizio. I 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. I will take a look at the web you point because I thing that 1500€ is very expensive. Thanks for your information
Active Directory
Does anybody know how to get the user name from active directory in FiveWin?