A new method named ShowNumericSIP was added to the hardware library.
Calling this method will show the soft input panel in numeric mode.
To return to the default mode you should call ShowDefaultSIP.
This code is based on Alex Feinman code: Switching Input Panel into numeric mode - OpenNETCF Community
Setup instructions:
- Download hardware.zip.
- Extract and copy all files to Basic4ppc libraries folder. Default is:
c:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries
I tried to compile this example:
'**********
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
hardware.New1
End Sub
Sub Button1_Click
hardware.ShowNumericSIP
End Sub
Sub Button2_Click
hardware.ShowDefaultSIP
End Sub
'*********
I have Extracted and copied all files to Basic4ppc libraries folder(
c:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries)
When I wanted to compile the program i got an error (as shown on the screencopy.jpg).
Are you using Basic4ppc v6.80? If not then you need to manually replace the old HardwareDesktop.dll and Hardware.dll which are located in your source code folder.
It seems that the old hardware.cs is used instead of the new one.
This file is located in the libraries folder.
You can open it with a text editor and check the first line. It should be //version:3.55.
The hardware dll's from this thread does not seem to work with the show sip numeric method, am I missing something?. I am using b4ppc 6.80. The sample compiled ok but threw an error when run on the device.
thanks....Trevor
Ballarat Victoria Australia
Main.button1_click Error description: Invalid property.
When this example is open in b4ppc the showNumericSip method does not appear in autocomplete. The version of the dll is 1.0.3515.36372.
Trevor
Ballarat Victoria Australia
I deleted my hardware dlls, cs, chm's from the library folder and redownloaded from the above post. After deleting the dlls from the example folder I then did the example with the new component and new hardware item I then checked the version and got 3.5 ?? What the...........
Trevor
Ballarat Victoria Australia
This is really odd...
1. Could you open the .cs file with notepad, and check which version appears at line #22?
2. Just verfying - you did copy .dll and .cs file to your Anywhere Software\Basic4ppc Desktop 6.8\Libraries as well, right? Not only to the program's folder.
It had to be something I was doing.....it was. Lets just say my file system needs some serious attention. I still had my old version of b4ppc on a different drive and was using it not the current version folder. All sorted.....thanks guys.
Trevor
Ballarat Victoria Australia
This method will fail if the SIP is not the standard drawn SIP (which I guess is the case for this device). Unfortunately there is no (documented) way to achieve this functionality.