delphi - TwebBrowser Zoom/Gesture is not working for firemonkey/iOs in XE4 when open a pdf file -


i want display pdf within ios application, far way find open in twebbrowser.

a.it displaying in "fit page width" zoom default

b.there no "zoom" function

webbrowser1.navigate(file://mypdf.pdf')

how to

  1. i want change zoom after open file (my solution encounter q#2)
  2. make zoom work (my solution encounter q#3)
  3. make gesture work web page

for #1:

i chagne webbrowser1.height/width in run-time, auto scale(zoom?) "fit width".

yes works, , vertical scroll bar works flaw - not bounce on edge -> can scroll way down..

neither horizontal scroll, not reacting @ all....

*this because pdf a4, not sure happen landscape style

for #2:

beside using button clicks zoom, add gesturemanager.

then add form1.ongesture "ios interactive gestures - image zoom" example.

yes works, same thing - no vertical bounce, no horizontal scroll.

*scrollbox not work, not work thing has build-in vert/hori scroll bars

for #3 : go further, write control up/down/left/right

change webbrowser1.position.x/y , webbrowser1.height/width make looks "scrolling"

yes works... 2 custom gesture controls making hard control

(eventinfo.distance , eventinfo.x/y, 2 controls kinda overlaping eachother if run in iphone)

the wosrt part is, webbrowser1 on top of compenment, regardless parent/child structure . second worst part limitation of margin hard code, somehow can scroll on limit.....

i "feel" if changing zoom on/after open, , make open both vert/hori scrool bars visible. horizontal bar should work -> need deal zoom -> pretty close prefect.

of course best way make work web page, webbrowser1.navigate('http://www.embarcadero.com/') -> both scrollbars works, zoom work. but...maybe need service pack n this?

i appreciate ideas or code answers.

this damned monkey on fire , hard find answer it.

an article posted today on the hacker's corner called getting twebbrowser on ios zoom. suggests one-line fix fmx.webbrowser.ios.pas unit. help?


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -