HowTo: Open a InputPanel without a menu

  • Thread starter Thread starter Guy Berlin
  • Start date Start date
G

Guy Berlin

Hi,

I am developing an application on the .net compact framework,
my application has no menu (fully graphic interface) and i want to be
able to edit text, i want to open the InputPanel in some way, the
problem is that it seems impossible to do if you have no mainmenu.

any help will be appricated,
Guy
 
Public Class Sip

<System.Runtime.InteropServices.DllImport
("coredll.dll")> _
Private Shared Function SipShowIM(ByVal i As IPStatus)
As Integer
End Function

Private Enum SIPStatus
SIPF_OFF = 0
SIPF_ON
End Enum

' Mostrar el SIP
Public Shared Sub Show()
SipShowIM(SIPStatus.SIPF_ON)
End Sub

' Ocultar el SIP
Public Shared Sub Hide()
SipShowIM(SIPStatus.SIPF_OFF)
End Sub

End Class



Dim Teclado As Sip

Teclado.Show
Teclado.Hide
 
Wait for the SP2 from Compact Framework! It was possible
in the version they recalled so it will be avaible when
they will release it again.(it won't be necessary to
declare a mainmenu, just a SIP)
 
O.k, found out, here is the code in c#:

[DllImport("coredll.dll")]private static extern bool SipShowIM(int dwFlag);

then call the function to show the input panel:
SipShowIM(1);

and to hide it:
SipShowIM(0);

i am still looking how to change the inputpanel position...
 
This works fine for me.

Mark Johnson
(e-mail address removed)

this.textBox00102.GotFocus += new
System.EventHandler(this.textMainFrame_GotFocus);

/// <summary>
/// Enable the Inputpanel when the TextBox is not ReadOnly
/// </summary>
private void textMainFrame_GotFocus(object sender, System.EventArgs e)
{
System.Windows.Forms.TextBox textBox = (System.Windows.Forms.TextBox)
sender;
if (textBox.ReadOnly == false)
inputPanelMainFrame.Enabled = true;
} // private void textMainFrame_GotFocus(object sender, System.EventArgs
e)
 
Back
Top