Hardware v3.55 - ShowNumericSIP function

Erel

Administrator
Staff member
Licensed User
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

An example is also attached.
 

Attachments

JJM

Active Member
Licensed User
Hello,

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).

Please could you help me?

Thanks

JJM
 

Attachments

Erel

Administrator
Staff member
Licensed User
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.
 

Erel

Administrator
Staff member
Licensed User
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.
 

JJM

Active Member
Licensed User
Shownumeric

Hello Erel,

It's true. The version of the cs file was 3.5.
With the new one (3.55) it wasn't any error during the compilation.
Thank you.
JJ M
 

tremara1

Active Member
Licensed User
ShowSipNumeric not happening

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
 

tremara1

Active Member
Licensed User
hardware error

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
 

Erel

Administrator
Staff member
Licensed User
You can check the version by writing:
B4X:
Hardware1.New 'Make sure to add a Hardware object with this name
Msgbox(Hardware1.DLLVersion)
It should show 3.55. I guess that you still have the old dll on the device.
 

tremara1

Active Member
Licensed User
Still not right

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
 

tremara1

Active Member
Licensed User
hardware still 3.5

Deleted all again restarted all still 3.5????
trevor
Ballarat Victoria Australia
 

Ariel_Z

Active Member
Licensed User
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.
 

tremara1

Active Member
Licensed User
my bad

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
 

JOTHA

Well-Known Member
Licensed User
Hi Erel,

it seems, that the NumericsSIP-function DOESN'T work on a HTC HD2, or does it?

Greetz from the Schwabenländle.
 

Erel

Administrator
Staff member
Licensed User
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.
 
Top