I recently got a question from a customer on how to restrict the image size to the actual device screen dimensions when using TWebBrowser, so I thought I would create a blog post about it. Often times, images that are loaded from the web using an URL may be bigger than the form factor the app is being run on, causing the user to have to scroll to see the entire image. Below is a code snippet that shows you how to restrict the web image to fit perfectly to the form factor the app is being run on.
Read on to find the full snippet code!
In iOS9 Apple added the new "Apple Transport Security" feature to restrict apps that use HTTP protocol requests under the covers. Apple provides Info.plist settings to allow your app to use HTTP. This new feature will affect the execution of apps that use HTTP directly or use components and RTL functions that use HTTP under the covers. Two components in RAD Studio 10 Seattle that use HTTP include TAppAnalytics and TWebBrowser. This blog post shows you how to set these new Info.plist options and ...
One of the innovations in XE6, it's a method EvaluateJavaScript in the component TWebBrowser. This method allowing execute JavaScript on the loaded page and add interactivity to our applications. On the site developers.google.com contains many examples of embedding maps on the page. I chose the example for paving the route from point A to point B. And as an example of execution JavaScript, I define two buttons for showing predefined paths from "Chicago" to "Winona" and from "St Louis" to "Gallu...
Одно из небольших нововведений в XE6 для компонента TWebBrowser, это появление метода EvaluateJavaScript, позволяющего выполнить JavaScript на загруженной странице и добавить интерактивности нашим приложениям. На сайте developers.google.com приведено множество примеров встраивания карт на страничку. Мне приглянулся пример прокладывания маршрута из пункта А в пункт Б. Ну а в качестве примера выполнения JavaScript, я определю две кнопки для прокладывания предопределённых путей Из пункта chicago в...