I've tried jDrawingView, it has all the functions I need
but jScrollView doesn't seem to accept jDrawingView.GetImage().
Is that possible to achieve using jScrollBox?
I was also improvising and tried:
Jdrawingview1.PosRelativeToParent:=[rpRight];
jdrawingview1.LayoutParamHeight:=lpExact;
jdrawingview1.LayoutParamWidth:=lpExact;
No. you need draw you "perfect" image "like a chat" in jDrawingView before add it to jScrollView.So I can draw an image, setting its width according to ScollView.Width with a transparent background and just draw the part I need, either on the left or right side? It makes sense but I can't actually draw anything. Whatever I do, it always adds white rectangle, around 1/3 the screen width and more than 100% height.
I was able to recreate you demo on my app
I messed up with some settings?
[txt measurement] Is there any way to implement it on jCanvas?
Turning the phone horizontally....
Yes. You need set property:
"jScrollView1.LayoutParamWidth = lpMatchParent"
and then:
w:= jScrollView1.Width; // <<--------------------------
h:= 300; //variable
jCanvas1.CreateBitmap(w , h, colbrLinen); //
Take a good look at all the properties configurations of the demo!
Yes!it'd be wonderful!
would it be a big deal to implement TextWidth and TextHeight on jCanvas?
I had updated using FPCupDeluxe but no effect, new functions weren't available
so I downloaded sources from you website and just unzipped in the LAMW location. Functions are available, I modified my code, "clean up and build" but... now the app doesn't work at all. I also tried a new project and the same. only the title page shows up and nothing else happens (even though I set ActinBarTitle=abtHide)
Normally it appears just for a moment and then disappears behind my app but now it gets stuck on that screen.
It came up with some errors ("overwritten by merge") in demos directory. I just deleted these directories and run batch file again with success (that was probably error in FPCUPdeluxe as well).I just downloaded and unzipped sources directly but the script is a better idea. I'm using Linux but git commands are the same so I can wrap it into a bash script.
After that I just rebuild Lazarus.
Try to create new project and see if it works. Also try some simple demos to see if it works.I tried a new project and the result is the same. It gets stuck on the title screen, even though it's supposed to be hidden. It doesn't even fire OnCreate event. I added ShowMessage on OnCreate even but it doesn't even show up.
That way you'll know if the problem is in your app or in Lazarus installation.
Switched to branch 'master'I opened my project, it mentioned something about Read Error so as you said, I removed jCanvas, saved the project and added it back. Everything went smoothly. I built the project etc but I faced the same problem, the app doesn't work, it stops at the title screen.
Your branch is up to date with 'origin/master'.
HEAD is now at f7178ffc Improved jCanvas component
Already up to date.