Page 1 of 1

Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 8:49 am
by Googie85
Hi Guys!!

I am trying to hide the Zoom in and Out buttons on a web browser widget. I have tried resizing the browser widget to display the bottom of the widget below the visible portion of the screen. No luck with that. I have also tried to cover the area where the buttons are displayed with an image, but the widget seems to display as "Display Above Everything". I know the Zoom in and Out buttons will only display on Android Devices only.

I really hope I have explained my situation clearly!!

Many Thanks,

Googie.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 9:59 am
by richmond62
So, I opened a new stack and set up a browser widget:
-
SShot 2021-10-31 at 10.57.45.png
-
And CANNOT see any Zoom buttons . . .

At the risk of seeming very stupid, could you upload a screen shot of your browser
widget with those Zoom buttons, or, even better, attach a stack so that I can open
it on my machine and see how things work?
I know the Zoom in and Out buttons will only display on Android Devices only.
OK, OK, I AM being STUPID.

HOWEVER, I would have expected these to show up somewhere in the preferences palette:
-
SShot 2021-10-31 at 11.05.20.png

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 10:13 am
by richmond62
HOWEVER this is USELESS:

Code: Select all

on mouseUp
   get the properties of control "BX"
   combine it using return and ":"
   put it into fld "bPROPS"
end mouseUp
It seems, that at the moment one cannot get hold of the properties of a widget:

2016

viewtopic.php?t=27183

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 10:21 am
by Googie85
Thanks Richmond62, I appreciate your feedback!

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 10:26 am
by Googie85
Here is a quick screen shot...

Image

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 10:29 am
by richmond62
The screenshot shows those Zoom buttons "loud and clear",
but as there does NOT seem a way to access the Browser widgets
properties there does not seem an obvious way to remove/disable
those buttons.

I wonder if those Zoom buttons show up on iOS?

It may be, that if they don't (and ONLY show up on
Android) they are, somehow coming from the
underlying Android system rather than LiveCode
itself.

Mind you, I do think what I just typed looks a bit silly,
as I would have expected LiveCode to allow us to mess
around with those features which look integral to the
widget.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 10:35 am
by richmond62
SShot 2021-10-31 at 11.34.51.png
-
Just a thought.

Whether "disable zoom via user interaction" will make the Zoom buttons on Android disappear
if you set the lockZoom of the browser widget to true . . . . ?

Code: Select all

on mouseUp
   set the lockZoom of widget "BX" to true
   put the lockZoom of widget "BX"
end mouseUp

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 5:22 pm
by jacque
The dictionary indicates that lockZoom only applies to the PDF widget. I took a look at one of my Android apps and it too displays the zoom controls as soon as you scroll the browser widget. LC implements this as a system control, which is Chrome on Android, and I don't know of any way to change it.

On the plus side, users are used to it and will expect it, or at least ignore it. But you could submit a feature request asking if it can be removed.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 5:54 pm
by richmond62
I do believe that the more control the end-user has (and here I mean
programmers, not users of programs we have made) in terms
of properties and so on, the better.

This IS the main reason I am not keen on Widgets and would far rather, when possible,
"roll my own" from 'standard' LiveCode controls.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Oct 31, 2021 8:02 pm
by jacque
There is an API for showing or hiding the zoom buttons. LC is calling the OS to provide the web view which has a few properties that can be set. The older, and simpler, API that controls the zoom buttons has been deprecated and I'm not sure how complicated it would be to implement the new method, but a feature request in the QCC is your best bet.
This IS the main reason I am not keen on Widgets and would far rather, when possible,
"roll my own" from 'standard' LiveCode controls.
In this case the property would apply to both the browser widget and the mobileControlCreate syntax, so it would require an engine change to fix it.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Nov 07, 2021 8:29 am
by Googie85
Is there a way to make an image float above the browser widget? Just curious if anyone knows if this is possible.

Many Thanks,

Googie.

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Nov 07, 2021 10:19 am
by richmond62
The Browser appears to mask images even when they are on higher layers:
-
SShot 2021-11-07 at 11.18.21.png
-
SShot 2021-11-07 at 11.18.06.png

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Nov 07, 2021 11:10 am
by richmond62
BUT . . .

You CAN overlay one Browser widget with another one:
-
SShot 2021-11-07 at 12.08.41.png
-
SShot 2021-11-07 at 12.08.52.png

Re: Hiding Zoom in and Out Buttons in Browser Widget.

Posted: Sun Nov 07, 2021 12:33 pm
by richmond62
And if one sets the URL for one's covering browser widget to a suitably sized image (which my example is not)
one can achieve the effect of an image covering a browser:
-
Satyrs.jpg