Evento que dispara el teclado (ocultar/mostrar)

Evento que dispara el teclado (ocultar/mostrar)

Postby jlcapel » Tue Feb 14, 2006 6:25 pm

Antonio,

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

Saludos,
José Luis Capel
User avatar
jlcapel
 
Posts: 229
Joined: Wed Oct 12, 2005 5:32 pm
Location: Valencia - España

Postby Carles » Wed Feb 15, 2006 7:45 am

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.
User avatar
Carles
 
Posts: 1114
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Postby jlcapel » Wed Feb 15, 2006 9:43 am

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
User avatar
jlcapel
 
Posts: 229
Joined: Wed Oct 12, 2005 5:32 pm
Location: Valencia - España

Postby jlcapel » Thu Feb 16, 2006 11:34 am

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
User avatar
jlcapel
 
Posts: 229
Joined: Wed Oct 12, 2005 5:32 pm
Location: Valencia - España

Postby Antonio Linares » Thu Feb 16, 2006 2:16 pm

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 );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41440
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby jlcapel » Thu Feb 16, 2006 3:00 pm

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
User avatar
jlcapel
 
Posts: 229
Joined: Wed Oct 12, 2005 5:32 pm
Location: Valencia - España


Return to FiveWin para Pocket PC

Who is online

Users browsing this forum: No registered users and 3 guests