How to open an URL with the default browser with FireMonkey cross-platform applications?

Regarding the answer of mjn, I have written the following unit. I have successfully tested it on Windows but I don’t have an OSX to test it on this platform. If someone can confirm it works, I’d appreciate. unit fOpen; interface uses {$IFDEF MSWINDOWS} Winapi.ShellAPI, Winapi.Windows; {$ENDIF MSWINDOWS} {$IFDEF POSIX} Posix.Stdlib; {$ENDIF POSIX} type TMisc … Read more

How do I turn off Compatibility View on the IE WebBrowserControl in a WinForms app?

There is no way to do this other than configuring the following registry settings: HKLM\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION or if it’s a 32 bit app on 64 bit Windows: HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION` These settings aren’t surfaced in the WebBrowser control. For more information please see: What IE compatibility mode does the webbrowser control use? In case the link … Read more

Image in HTML element overflow

You can achieve this result on Safari (I failed to achieve this on other browsers). HTML <html> <body> <div class=”body-wrapper”> Content goes here </div> </body> </html> CSS /* — Reset rubber effect on the ‘html’ tag — */ html { overflow: hidden; height: 100%; } body { height: 100%; overflow: auto; } /* ———— end … Read more

Why does Google Chrome always add space after selected text?

I have run many tests between Chrome and Firefox to figure out a common pattern for their display, selection, and copying methods. Google Chrome Google Chrome ignores all of the inner and outer element whitespace characters in the HTML except if they are inside the text. All whitespace characters in between text is displayed as … Read more

Browser-based application or stand-alone GUI app?

Let’s pretend for a moment that the development/deployment/maintenance effort/cost is equal and we look at it from the application user’s perspective: Which UI is the user going to find more useful? in terms of Ease of use Responsiveness Familiar navigation/usage patterns Most like other tools/applications in use on the platform (ie, native) I understand that … Read more