1. Pieter Coene
  2. PowerBuilder
  3. Monday, 14 June 2021 13:57 PM UTC

Hi,

when using the new Webbrowser (CEF) control we don't seem to be able to use the 'CTRL' + scroll to zoom in /out on a webpage like one can do on a regular browser. 

This would normally not be a very big problem but we have one particular site where that browser behaviour is very needed en therefore much used.

I have searched but have not found anything on this matter. I know there is a 'zoom' function on the webbrowser control so perhaps i can code something myself to fix this, but i wanted to ask this here first.

Greetz
Pieter

PS: using the latest version PB 2019 R3 build 2703

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 June 2021 06:45 AM UTC
  2. PowerBuilder
  3. # 1

Hi Pieter,

 

Regarding the WebBrowser, it doesn’t support responding to the keyboard actions (such as F5) by default.

You can refer to the following link for details:

https://docs.appeon.com/pb2019r3/pbug/ch04s05.html#d0e24082 

 

However, you can manually add code to scale the current view with the specified zoom ratio.

https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s04s879.html 

Examples

 

//This example zooms out the screen to 80%:

Integer li_rtn, li_zoom

Li_zoom = 80
Li_rtn = wb_1.zoom(li_zoom)

Regards,

Comment
  1. Mark Lee @Appeon
  2. Monday, 21 June 2021 03:09 AM UTC
Hi Pieter,



What I meant is that even though you can use the 'CTRL' + scroll to zoom in /out feature on a page in a browser, it doesn’t mean that it is the page built-in feature, it is integrated into the browser.

WebBrowser itself doesn’t have this integrated feature so you need to write the JS code by yourself to implement it.



Regards,

  1. Helpful
  1. Pieter Coene
  2. Wednesday, 23 June 2021 08:27 AM UTC
Hi,



we ended up doing this and it works. Thx for the tip...



Greetz.... Pieter
  1. Helpful
  1. Mark Lee @Appeon
  2. Wednesday, 23 June 2021 08:58 AM UTC
Hi Pieter,



Thanks for sharing the information and I am glad that you got it resolved.



Regards,
  1. Helpful
There are no comments made yet.
Pieter Coene Accepted Answer Pending Moderation
  1. Tuesday, 15 June 2021 06:38 AM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

Thx for responding that it should normally work. I'll will investigate this further and post the results here...

Greetz
Pieter

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 June 2021 18:45 PM UTC
  2. PowerBuilder
  3. # 3

Hi Pieter;

  Zooming IN/OUT should work via the CTRL + Mouse Wheel

HTH

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 16 June 2021 17:32 PM UTC
Hi Pieter;

Sorry - my bad - I was looking at the Microsoft OLE / OCX web browser in my framework's demo App. When I run the PB built-in Web Browser control dialogue in the Demo App, the CTRL+Wheel does *not* work. :-(

I just updated the Framework Demo App last night to use a HorizontalScrollBar control within the built-in Web Control's web page dialogue that uses the Zoom() command to change the web content size. This works quite well. Please report the Zoom issue by opening up a Support Ticket about the lack of this feature.

Regards ... Chris



FYI: The PB2021 Beta Demo Framework App that uses an HSB control for Web Control zooming (example) ...

http://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry/Beta/PB2021
  1. Helpful
  1. Pieter Coene
  2. Friday, 18 June 2021 13:56 PM UTC
Hi Chris,



thx for responding. I'm not sure I fully understand your 'Framework Demo App' remark but I will try to make a case. I have done some extra research and I have found several complaints about the CEF in this matter so I'm not sure if this bug is even related to Appeon. Of course, it does not kill me to contact the support... ;)



Greetz.. .Pieter
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 18 June 2021 14:02 PM UTC
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.