Page 1 of 1

Evento que dispara el teclado (ocultar/mostrar)

PostPosted: Tue Feb 14, 2006 6:25 pm
by jlcapel
Antonio,

El teclado de la PDA, cuando se muestra o se esconde, ¿tiene un evento asociado? ¿Se puede capturar?

Saludos,
José Luis Capel

PostPosted: Wed Feb 15, 2006 7:45 am
by Carles
JLCapel,

No se q finalidad persigues con la captura del 'evento' pero en mi caso, creo q seria interesante conocer el 'estado' del teclado. De esta manera si saltamos a un dialogo/ventana al salir podemos restaurar dicho 'estado'.


Saludos.
C.

PostPosted: Wed Feb 15, 2006 9:43 am
by jlcapel
Carles,

No se q finalidad persigues con la captura del 'evento' pero en mi caso, creo q seria interesante conocer el 'estado' del teclado. De esta manera si saltamos a un dialogo/ventana al salir podemos restaurar dicho 'estado'.


La finalidad que persigo es 'recortar' la ventana activa y ajustar algunos controles cuando el teclado está activo y cuando no lo está. Para ello necesito saber cuando se dispara ese evento (suponiendo que se pueda saber).

Saludos,
José Luis Capel

PostPosted: Thu Feb 16, 2006 11:34 am
by jlcapel
Antonio,

SipShowIM
This function shows or hides the currently active input panel window. An application must call this function to display the input panel and its current input method.

BOOL SipShowIM(
DWORD dwFlag);
Parameters

dwFlag
[in] Specifies whether to show or hide the current input panel window. It is one of the following flags:
Value Description
SIPF_ON Shows the input panel window.
SIPF_OFF Hides the input panel window.

Return Values

TRUE indicates success. When this function fails, it returns an HRESULT error code.

Remarks

When this function is called, the input panel notifies the input method (IM) of the appropriate action to take, which is whether to adopt a hidden or visible state.

On devices that have a limited display area, an application can call SipShowIM to hide the input panel and increase the display area for output.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.10 and later Sipapi.h Coresip.lib


¿ SipApi.h y CoreSip.Lib... están en Vce4 ?

Saludos,
José Luis Capel

PostPosted: Thu Feb 16, 2006 2:16 pm
by Antonio Linares
Jose Luis,

Sí, el fichero de cabecera está y la librería se llama corelibc.lib

FWPPC ya implementa esa función como:

Code: Select all  Expand view
HB_FUNC( SHOWKEYBOARD )
{
   SipShowIM( SIPF_ON );
}

HB_FUNC( HIDEKEYBOARD )
{
   SipShowIM( SIPF_OFF );
}

PostPosted: Thu Feb 16, 2006 3:00 pm
by jlcapel
Antonio,

Sí, el fichero de cabecera está y la librería se llama corelibc.lib

FWPPC ya implementa esa función como:

Código:

HB_FUNC( SHOWKEYBOARD )
{
SipShowIM( SIPF_ON );
}

HB_FUNC( HIDEKEYBOARD )
{
SipShowIM( SIPF_OFF );
}


Gracias!!

No he sabido encontrar estas dos funciones en los fuentes y/o documentación de FWPPC :-(

Saludos,
José Luis Capel