Home/Uncategorized

Adding Javascript processing capability to TWebBrowser in iOS

By |2014-10-19T14:32:06+10:30November 6, 2013 10:04 am|Code tips, Patches, Uncategorized|

UPDATE: If you're using Delphi XE7, the TWebBrowser component now includes the method EvaluateJavascript (does the same thing as what my GetJavaScript result does), and applies to both iOS and Android. In a post on the Embarcadero forums some time ago, Charles Vinal asked about whether it would be possible to have TWebBrowser implement the stringByEvaluatingJavaScriptFromString [...]

Plugging a couple of leaks in Firemonkey in Delphi XE5

By |2017-02-16T18:02:36+10:30November 4, 2013 1:33 pm|Patches, Uncategorized|

NOTE: If you have read this post before, it has been updated recently to include further changes that remove all leaks generated by the demo project. Recently there was a posting in the Embarcadero forums about problems with creating a secondary form, showing it modally, then destroying it; namely that the app exits without warning [...]

Making your iOS7 app run full screen on the device

By |2013-11-08T06:42:33+10:30November 1, 2013 3:50 pm|Project tweaks, Uncategorized|

Apple have made changes to the way hiding the status bar works in iOS 7. If you want your app to be full screen (i.e. minus the status bar), you'll need to create a customised .plist file, like I've described in this article: http://delphi.radsoft.com.au/2013/10/providing-background-services-support-to-your-ios-apps-with-delphi/ This time, you'll need to add the following to the customised [...]

Tips on working with Xcode 5 from Delphi

By |2017-02-16T18:02:36+10:30October 31, 2013 11:23 am|Uncategorized|

If you've just installed Xcode 5, there's at least one thing you'll need to attend to, to develop from Delphi XE5 (it is also possible to use XE4; check here) Xcode 5 is a completely new install; in other words, anything else you had before, such as the Command Line Tools and extra simulators, are [...]

Coping with the Virtual Keyboard Done bar and clicking controls on the iOS7 simulator

By |2014-10-14T19:14:58+10:30October 29, 2013 3:23 pm|Patches, Uncategorized|

If you've installed update 1 for XE5, you'll soon find that there's a couple of issues that have moved from the device to the simulator; namely the placement of the Virtual Keyboard "Done" bar, and clicking of controls is vertically askew. These two posts relate to the issues: http://delphi.radsoft.com.au/2013/10/coping-with-done-bar-on-ios7-devices/ http://delphi.radsoft.com.au/2013/10/coping-with-clicking-controls-on-ios7-devices/ First the patch for clicking [...]

Coping with clicking controls on iOS7 devices

By |2014-10-19T16:54:48+10:30October 23, 2013 6:54 am|Patches, Uncategorized|

UPDATE: If you've applied Update 1 for XE5, please revert any changes made based on this article, or ignore it if you have not made any changes. The issue has been resolved in Update 1 for the DEVICE;  Update 1 causes an issue with  clicking controls in the simulator. Please refer to this article if [...]

Moving controls into view when the virtual keyboard is shown

By |2017-02-16T18:02:36+10:30October 19, 2013 7:09 pm|Code tips, Uncategorized|

UPDATE: The demo project attached has been updated due to a couple of "glitches". One remaining known issue is that the "Config" page doesn't move to its original position if changing orientation when the keyboard is already showing. I'll revisit the article when I've come up with a solution. I'm sure almost everyone who develops [...]

Making the Firemonkey TComboBox picker in iOS7 opaque

By |2017-02-16T18:02:36+10:30October 16, 2013 9:18 am|Patches, Uncategorized|

I really don't know what possessed the people at Apple to make the UIPickerView transparent by default; it can make it very difficult to distinguish the items in the list from what is underneath. In the FireMonkey TComboBox in Delphi XE5, the picker is implemented using the native UIPickerView. The way the picker is implemented, [...]

Go to Top