Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

fgKeyBoard

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2009, 01:27 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default fgKeyBoard

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
Attached Images
File Type: jpg capture001.jpg (51.7 KB, 105 views)
File Type: jpg capture002.jpg (52.9 KB, 69 views)
File Type: jpg capture003.jpg (52.0 KB, 55 views)
File Type: jpg capture004.jpg (46.1 KB, 51 views)
File Type: jpg capture005.jpg (53.4 KB, 79 views)
File Type: jpg capture006.jpg (48.1 KB, 55 views)
Attached Files
File Type: zip fgKeyboard_Example_v1.012.zip (153.7 KB, 249 views)
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________

Last edited by Filippo : 02-28-2010 at 02:37 PM. Reason: Update
Reply With Quote
  #2 (permalink)  
Old 12-21-2009, 06:19 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Filippo

very nice source thanks for sharing your knowledge!

merry Xmas

Best regards

William
Reply With Quote
  #3 (permalink)  
Old 12-21-2009, 06:50 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Very nice Filippo , Thank you.

Can you enable selection of the keys (to allocate other keys then those that are defined ) ?
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #4 (permalink)  
Old 12-21-2009, 10:09 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
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.
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #5 (permalink)  
Old 12-22-2009, 03:05 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

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!
Reply With Quote
  #6 (permalink)  
Old 12-22-2009, 04:35 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #7 (permalink)  
Old 12-22-2009, 05:28 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

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!
Attached Images
File Type: jpg hebrew_keyboard_480.jpg (46.7 KB, 69 views)
Reply With Quote
  #8 (permalink)  
Old 12-22-2009, 06:59 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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,--
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #9 (permalink)  
Old 12-22-2009, 08:35 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Quote:
Originally Posted by Filippo View Post
My problem is that letters must be prepared for the different languages?
Do you mean that you have the bitmaps prepared for all keys? Or you draw the character on an empty bitmap of a key?
Reply With Quote
  #10 (permalink)  
Old 12-22-2009, 10:53 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
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.
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 09:39 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0