B4A Library [B4X] SD CustomKeyboard

astronald

Active Member
Licensed User
Longtime User
Hi Star-Dust, I don't know if it's something wrong in the library but in B4i 8.30 it doesn't work(Local Builder), i got this errror

B4X:
Objects-normal/arm64/b4i_main.o
In file included from /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.m:2:
/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.h:3:9: fatal error: 'iSD_CustomKeyboard.h' file not found
#import "iSD_CustomKeyboard.h"
        ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.

CompileC /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.o /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_page1.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
    cd /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios8.0 -fm-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/z0/gw19pzhx0fbfzc5mblpjklth0000gn/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-implicit-fallthrough -DB4I_VERSION\=14 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility\=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-b-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -iquote /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources-normal/arm64 -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/arm64 -I/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.d --serialize-diagnostics /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.dia -c /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_page1.m -o /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.o

CompileAssetCatalog /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/B4i\ Example.app /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Images.xcassets (in target 'B4iProject' from project 'B4iProject')
    cd /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>
    /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_dependencies --output-partial-info-plist /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/assetcatalog_generated_info.plist --app-icon AppIcon --enable-on-demand-resources YES --development-region English --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --compile /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/B4i\ Example.app /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/Images.xcassets


Error: ** BUILD FAILED **


The following build commands failed:
    CompileC /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.o /Users/rocas/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
(1 failure)
 

Attachments

  • test.zip
    3 KB · Views: 219

Star-Dust

Expert
Licensed User
Longtime User
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
I'm studying the possibility of customizing the shape of the buttons.
Not sure if this feature will be included in future updates



 

Star-Dust

Expert
Licensed User
Longtime User
Update. rel1.19
  • Added KeyStyle property (0-Standard; 1-Comics; 2-Heart; 3-Flower; 4-Octagon)
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Update. rel 1.20
  • fix bug
 

madru

Active Member
Licensed User
Longtime User
happy new year

Is it possible to hide the "original keyboard" completely?
When I move between the text boxes by clicking on them, I can see the "original keyboard" opening and closing for a short time...
 

Star-Dust

Expert
Licensed User
Longtime User
happy new year

Is it possible to hide the "original keyboard" completely?
When I move between the text boxes by clicking on them, I can see the "original keyboard" opening and closing for a short time...
Hi,
Unfortunately this depends on the device, in the majority it does not have time to appear, but in some rare devices it happens more slowly and is therefore visible.
 

adriano.freitas

Active Member
Great work!

I have a question about something I need and I don't know if I can solve it with this library. In addition to building a custom keyboard, I need a key to show one thing but send another to a text box. Is there a way to do it? I need this because I have a text box whose content could have a special control character. Normally it doesn't work, but being able to customize the idea is that the keyboard shows it as the character but when sending it to the box I can use an alternative character to represent the character that the system cannot normally handle. Can anyone help me with something that allows me to do this using this keyboard or even some possibility of intercepting keys on the common keyboard and changing them?
 

Star-Dust

Expert
Licensed User
Longtime User
Yes you can do this using customizable keys. A text appears and inserts a chosen characterYes you can do it using Custom keys
AddCustomKeyToLastRow
 

Star-Dust

Expert
Licensed User
Longtime User
I am working on a new version of the library which may not be perfectly compatible with the previous one but will add the possibility of inserting for each character, in addition to uppercase and lowercase, also alternative keys for accented ones or for any use.
Long clicking on a key (or with the right mouse button on the PC) will open a further menu relating to that key with the variations.

I'm still working on the graphics and some other technical details, but there will be a new version soon. Those who want to use the old methods can continue to use the old library.

B4X:
ck.AddKeyToLastRow2("E",69,"e",101,CreateMap("È":200,"É":201,"Ê":202,"Ë":203),CreateMap("è":232,"é":233,"ê":234,"ë":235),1)

 

Star-Dust

Expert
Licensed User
Longtime User
THIS VERSION WILL NO LONGER BE UPDATED OR RECEIVE SUPPORT.

If you want you can use the new version (HERE)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…