fgKeyBoard

D

Deleted member 103

Guest
Hi,

with this library you can create a Virtual-KeyBoard.

.NET Compact Framework 2.0 or higher is required.

Questions, comments or suggestions are welcome.
Please report all errors (if it was found).


Version 1.001 ; with 3 languages

Version 1.002 ; with new Methods and Property
Methods:
1. DefaultLanguage

Property:
1. Enabled
2. Visible


Version 1.003 ; with auto Landscape-orientation


Version 1.012 ;
1) auto-orientation away. Fundamental problem with the Form-Resize function.
2) The method "DefaultLanguage" is now a property.
3) The Enter-Key is now also available.
4) The German and Italian letters are accessible via a context menu.


Ciao,
Filippo
 

Attachments

  • fgKeyboard_Example_v1.012.zip
    153.7 KB · Views: 298
  • capture001.jpg
    capture001.jpg
    51.7 KB · Views: 131
  • capture002.jpg
    capture002.jpg
    52.9 KB · Views: 91
  • capture003.jpg
    capture003.jpg
    52 KB · Views: 77
  • capture004.jpg
    capture004.jpg
    46.1 KB · Views: 76
  • capture005.jpg
    capture005.jpg
    53.4 KB · Views: 101
  • capture006.jpg
    capture006.jpg
    48.1 KB · Views: 78
Last edited by a moderator:

wm.chatman

Well-Known Member
Licensed User
Longtime User
:) Hi Filippo

very nice source thanks for sharing your knowledge!

merry Xmas

Best regards

William
 

derez

Expert
Licensed User
Longtime User
Very nice Filippo :), Thank you.

Can you enable selection of the keys (to allocate other keys then those that are defined ) ?
 
D

Deleted member 103

Guest
Can you enable selection of the keys (to allocate other keys then those that are defined ) ?
currently not, but in future would provide for different language.
 

Ariel_Z

Active Member
Licensed User
Looks amazing!! Absolutely the thing we are missing. I was playing with it a bit and it looks excellent.
2 things went on my mind - if you wish and have the time of course: the ability to adjust the characters (different language) and to show the tapped one (above the touching finger), I guess it would help others a lot to be able to adjust their languages... But don't get me wrong - really good work! :)
 
D

Deleted member 103

Guest
Hi,

I would like to customize the keyboard for different languages.
Currently, the keyboard is only in german.
For which language the keyboard should be created?
Can someone explain what characters are also on the keyboard?


Thank you for assisting
Filippo
 

Ariel_Z

Active Member
Licensed User
I guess the best thing is to allow loading the characters from a text file, something like (if fgKey is a fgKeyboard object):

fgKey.LoadCharSet (Filename)
and the file should contain a mapping in text. You can separate the different layouts with section tags in [], and then the lines preceded with --, and then the chars separated with |. It's readable and easy to parse, and way simpler than XML. Something like:

[smallChar]
--FirstLine
q|w|e|r|t|y|u|i|o|p
--SecondLine
a|s|d|f|g|h|j|k|l
.....
.....

[Capitals]
--FirstLine
Q|W|E|R|T|Y|U|I|O|P
.....
.....

[Symbol]
--FirstLine
Q|W|E|R|T|Y|U|I|O|P

[Nums]
--FirstLine
1|2|3
--SecondLine
4|5|6
...



and so on. This way users will quickly create the different layout they use in each languages and you will not have to bother.


You may also consider another key not currently implemented is the "Change language" key - it requires one extra set of characters to be implemented but is essential for people working in foreign languages and need to switch to English from time to time. I've attached a sample from the iPhone keyboard - the key to the left of [space] is what I meant.

I'd be happy to assist. It's a great work anyway and thank you very much! :icon_clap:
 

Attachments

  • hebrew_keyboard_480.jpg
    hebrew_keyboard_480.jpg
    46.7 KB · Views: 77
D

Deleted member 103

Guest
The function "Change language" to add is not a problem.
My problem is that letters must be prepared for the different languages?

For example, for Germany, I have:
LowerCase: qwertzuiopasdfghjklüyxcvbnmöäß,.-
UpperCase: QWERTZUIOPASDFGHJKLÜYXCVBNMÖÄ?;:_
Symbol: !"§$%&/()=?`*°'^©~²³{[]}<|>\Ø£€@#
Number: 789/456*123+0,--
 
D

Deleted member 103

Guest
Do you mean that you have the bitmaps prepared for all keys? Or you draw the character on an empty bitmap of a key?
I draw the characters always at runtime on an empty bitmap of a key.

The problem is that you must send with the function "Sendkeys" certain characters in different way.
 

eww245

Member
Licensed User
Hey looks good, but with landscape it's messed up.

If changing orientation with it running it works fine.
When already in landscape the characters are not aligned with the images.

Honestly I don't know if there are other libraries or controls with basic4ppc that work properly with landscape.

I've only coded a control's location or size based on a forms size so it works in landscape.
Changing orientation is not natively supported anyway.
 

klaus

Expert
Licensed User
Longtime User
Hi Filippo,

Nice job !

I agree with the others that an adaptation to other countries is a MUST. Here you find a lot of layouts for different countries Keyboard layout - Wikipedia, the free encyclopedia

I would have seen the '123' button for the numeric keyboard directly integrated into the keyboard and not as an extra outsides button.

It would also be interesting to have the Height (and Width, not so important) parameters (read only) available to know where to place other controls.

Best regards.
 
D

Deleted member 103

Guest
ok klaus, es gibt wieder arbeit...

Ok Klaus, it is working again ...


@eww245:
to time is landscape not supported .
 
Last edited by a moderator:

wm.chatman

Well-Known Member
Licensed User
Longtime User
:) Hi Filippo

Hey looks good.

Q: can I set the Keyboard show top or bottom of Form?

on MDA, KB loads bottom of Form.

Best regards.

William
 

klaus

Expert
Licensed User
Longtime User
Hi William,

Did you have a look at the help file and the sample program ?
For shure you can !
The 'Top' and 'Left' parameters let you set the coordinates of the upper left corner of the keyboard.
My request to Filippo to add the 'Height' parameter was in that direction so you know where to place controls above or underneath the keyboard without overlapping.

Best regards.
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
ups, i missed that one.

BTW: so I can use this KB, instead of device KB?
OK i can. but how to implement? Lets say I want to use this KB for the Editor instead of using the Device Sip in the TRUIdbase APP.

How would do this?

Best regards.

William
 
Top