Android Question MarioProgressBar Lib Problem

Theera

Expert
Licensed User
Longtime User
I've created MarioProgressBar which the code from Java code. I need some help how to resolved the problem.

DownloadHere
 

josejad

Expert
Licensed User
Longtime User
I need some help how to resolved the problem
Just hover the mouse over the error, and you will get an explanation about it, I think they are self-explanatory in these cases

1740479593046.png


1740479626242.png


1740479645138.png
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
- Too many parameters: As you can see DrawBitmap expects 3 parameteres: 1.- Bmp, 2.- TargeRect1 and 3.- SkipBlending. You're sending 4 (1.- source, 2.- Null, 3.- x, 4.- y)
- Types not match: The function expects a kind of type, but you are sending another type parameter, and again, you're sending 4 parameters but you have to send 2
- Unknown member: clip. progressPath doesn't have any member called "clip"
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Just hover the mouse over the error, and you will get an explanation about it, I think they are self-explanatory in these cases

View attachment 162063

View attachment 162064

View attachment 162065I've done, but I can't do myself, so I'm looking for the example how the experts solved.

- Too many parameters: As you can see DrawBitmap expects 3 parameteres: 1.- Bmp, 2.- TargeRect1 and 3.- SkipBlending. You're sending 4 (1.- source, 2.- Null, 3.- x, 4.- y)
- Types not match: The function expects a kind of type, but you are sending another type parameter, and again, you're sending 4 parameters but you have to send 2
- Unknown member: clip. progressPath doesn't have any member called "clip"

- Too many parameters: As you can see DrawBitmap expects 3 parameteres: 1.- Bmp, 2.- TargeRect1 and 3.- SkipBlending. You're sending 4 (1.- source, 2.- Null, 3.- x, 4.- y)
- Types not match: The function expects a kind of type, but you are sending another type parameter, and again, you're sending 4 parameters but you have to send 2
- Unknown member: clip. progressPath doesn't have any member called "clip"
I have the problem about B4XRect , I don't know how to send it to the same variable.
x, y--> TargetRect1
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
tempBC.DrawBitmap(source, Null, x, y)

It is changed

B4X:
Dim xRect as B4XRect
xRect.initailize(x, y, null, null)  <--incorrect
tempBC.DrawBitmap(source, xRect, False)

P.S. the code is generated by AI, I will learn more.
 
Last edited:
Upvote 0

josejad

Expert
Licensed User
Longtime User
1740483740686.png


Please, pay attention.. you've written "initAIlize" instead of "initIAlize". You've written "nul" instead of "null"
 
Last edited:
Upvote 0

Theera

Expert
Licensed User
Longtime User
Upvote 0

josejad

Expert
Licensed User
Longtime User
I can't remember the words, I always write it incorrect.
You don't need to remember, just start writing, and let INTELLISENSE do the rest

1740484001831.png


If you get a warning, hover the mouse over the warning and read what it's telling
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
You don't need to remember, just start writing, and let INTELLISENSE do the rest

View attachment 162073

If you get a warning, hover the mouse over the warning and read what it's telling
Now, I use my mobile to answer you. Perhaps, I wrote be wrong, so I 'm sorry to you.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
I always learn B4X from completely solutions than I 've read the documents,so Thai forum , I write in Thai languages for the others.
 
Upvote 0
Top