Just bought the Enterprise version yesterday and start using it last night. Immediately I have a feeling that every penny is worth it.
I am downloaded a copy of CCTV sample client (https://www.b4x.com/android/forum/threads/android-based-closed-circuit-tv-cctv-example.23601/) and start changing the code to suite my need, e.g. starting from the front camera. Everything is working ok. One thing that I don’t quite understand is how layout work.
From the CCTV client layout, there are three buttons. I deleted one and moved the other two to the bottom of the screen.
But when I run the code, I got a big camera preview panel but NOT the buttons. See screen grab:
What I need to do is to press the invisible button to switch to the back camera then I can see the buttons.
And of cause, when I switch back to the front, the buttons are there too.
From the Visual Designer, Script – General, I notice the background panel was resized by the script but not sized by the Properties screen, so I added the two lines in red but it doesn’t help.
'All variants script
AutoScaleAll'uncomment to scale all views based on the device physical size.
Panel1.SetLeftAndRight(0, 100%x)
Panel1.SetTopAndBottom(0, 100%y)
btnChangeCamera.Visible = True
btnTakePicture.Visible = True
I understand it is probably a stupid mistake that I made but I can’t found the solution from the Beginner’s guide. Please help. Thanks.
I am downloaded a copy of CCTV sample client (https://www.b4x.com/android/forum/threads/android-based-closed-circuit-tv-cctv-example.23601/) and start changing the code to suite my need, e.g. starting from the front camera. Everything is working ok. One thing that I don’t quite understand is how layout work.
From the CCTV client layout, there are three buttons. I deleted one and moved the other two to the bottom of the screen.
But when I run the code, I got a big camera preview panel but NOT the buttons. See screen grab:
What I need to do is to press the invisible button to switch to the back camera then I can see the buttons.
And of cause, when I switch back to the front, the buttons are there too.
From the Visual Designer, Script – General, I notice the background panel was resized by the script but not sized by the Properties screen, so I added the two lines in red but it doesn’t help.
'All variants script
AutoScaleAll'uncomment to scale all views based on the device physical size.
Panel1.SetLeftAndRight(0, 100%x)
Panel1.SetTopAndBottom(0, 100%y)
btnChangeCamera.Visible = True
btnTakePicture.Visible = True
I understand it is probably a stupid mistake that I made but I can’t found the solution from the Beginner’s guide. Please help. Thanks.