Android Question TouchPanelCreator (Solved)

Shelby

Well-Known Member
Licensed User
Longtime User
I installed a new hard drive, downloaded a new B4A 11.50 program, made sure the pathways are correct, and so on. My project will now not compile with the error message:

B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: touchpanelcreator
Are you missing a library reference?
Error occurred on line: 38 (XUIScrollView)
Dim tpc As TouchPanelCreator

I can't find any touchpanelcreator in my code, so where is it?
 

Attachments

  • SS2021B4X.zip
    197.2 KB · Views: 274

klaus

Expert
Licensed User
Longtime User
Yes, and you need to copy also the ZoomImageView files.

1652030809938.png


This is the copy of the Libraries Manager in the project.
You see that two additional libraries are used.
I am not sure if all these are necessary. I have not checked which ones are used or not.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
I don't know if there is a ZoomImageview.jar file; I can't see one to move to the new folder. Still looking.
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Also when I used 7-zip, I extracted ZoomImageView into the library and suddenly appeared: Zoomimageview.bas and a file called manifest. Have I made a mistake? I only did it because I still can't compile the project (Klauses)
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Do not unzip it.
Keep it with B4XLIB extension.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Don't understand about any extension but I removed everything relating to ZoomImageView then placed the newly downloaded library.
Pay attention that there are 2 files in that discussion:
One is the example project and the second one is the library.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Copy only the ZoomImageView.b4xlib file into the AdditionalLibraries\B4A folder.
I already gave you a link to the B4Xanguage booklet.
Please, please take once the time and read the Libraries chapter, all your last questions are explained in detail there.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
OK, no problem; I can read the info for a third time. Oh, that is helpful I see now.
Thanks, Mother's day lunch party here.
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
B4X:
SV2.Initialize(0, 0, "SV2")
    SV2.FadingEdges(False)
    pnlSV2 = SV2.Panel

This code above also has the squiggly red underline
(Lines 283-5 in xTableLite module)

& as always, the following error on compilation:

B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 64 (xTableLite)
Private SV2 As ScrollView2D
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
There is nothing in my objects>bin>classes folder yet the Designer complains that there is no required field: default value, class: xTableLite
Also there is no layout in the designer.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Your Additional Libraries folder should appear something like this
alstr.jpg

Inside B4A folder put the files of the ScrollView2D library (attached to this post)

b4astr.jpg

NOTE: the attached files are linked just for help. The author of these files is @Informatix
The original thread of the author is
https://www.b4x.com/android/forum/threads/lib-scrollview2d.19268/

Inside B4X folder put the ZoomImageView.b4xlib

b4xstr.jpg

Do not pay attention to my icon, it's because I associated it with 7Zip.
If after this you still have problems then it's something messy in the B4A installation/configuration/setup.
 

Attachments

  • ScrollView2D.xml
    13.4 KB · Views: 182
  • ScrollView2D.jar
    19.9 KB · Views: 168
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Here's my new addnl. Libs screenshot. Unfortunately it doesn't have the B4A, B4i, B4J, and B4R folders like my last Addnl. Libs. folder before all this turmoil.
 

Attachments

  • Addnl. Libs Image.png
    Addnl. Libs Image.png
    107.4 KB · Views: 159
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Why there is a ScrollView2D resulting as a B4XLIB while it should be the XML companion of the other JAR files?
In case you got the B4X version of @Star-Dust then it should be called

sdscr.jpg


You have some mess with libraries.
I tried and it work even using the @Star-Dust version.
So you have to choose the version you want (I suggest you the @Star-Dust version to have it Cross Platform).
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
I have that library from Star-Dust. Shall I copy it to the new Addnl. Libs. folder? No extracting needed? Copying now to Addnl........
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Anyway your Additional Libraries folder structure will not help you.
Make it like this

thestruc.jpg

Then in all your IDEs (B4A, B4J..........) just point to
point.jpg

They will automatically find all the correct libraries.
Inside B4A just put the libraries that work ONLY with B4A.
Inside B4J just put the libraries that work ONLY with B4J.
In B4X put the Cross Platform libraries.
ZoomImageView and the one from @Star-Dust must go inside the B4X folder.
Do not unzip them!
They should appear like this in the folder

donot.jpg
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Anyway your Additional Libraries folder structure will not help you.
Make it like this

View attachment 129012
Then in all your IDEs (B4A, B4J..........) just point to
View attachment 129013
They will automatically find all the correct libraries.
Inside B4A just put the libraries that work ONLY with B4A.
Inside B4J just put the libraries that work ONLY with B4J.
In B4X put the Cross Platform libraries.
ZoomImageView and the one from @Star-Dust must go inside the B4X folder.
Do not unzip them!
They should appear like this in the folder

View attachment 129014
 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
So I simply add those folders as you're directing as empty folders and the contents will be automatic or empty?
I think that I didn't understood your question.
You have to create that folders structure for the Additional Libraries.
Then you have to copy/save the libraries that you download in the right folder.
The 2 libraries that you need must be inside the B4X subfolder has I show you, because they are Cross Platform Libraries.
In this way you will find them available in both B4A, B4J and B4i.
 
Upvote 0
Top