Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

Code SnippetDelphiDemoFiremonkeyIOSOSXWindows

Awesome Control Rotation Trick Source Code For Delphi XE8 Firemonkey On IOS

Delphi XE8 Firemonkey Controls Rotate In Place IOSDeveloper Yegor K. from JVEsoft has a post up where he shows how to rotate your controls in place on IOS in Delphi XE8 Firemonkey. Basically the standard way that you see in most apps is that the app has an orientation of either landscape or portrait and when you rotate the device the whole app rotates and fits into the new width of the screen. Yegor’s post is about changing this rotation model so that it does something different instead. The article shows how to change the orientation events so that the app orientation stays the same but individual controls rotate to the new orientation. It uses a slick animation for the rotation as well. You really have to check out the video to see how awesome this looks. In the context of certain applications (like games or apps for kids) this works really well. There is a sample project with source code also included. This only applies to IOS as it requires changing FMX.Platform.IOS.pas but you may be able to figure out how to do it on Android as well. The code and demo should also work with Appmethod.

Head over and check out the full tutorial on how to have your controls rotate in place when orientation changes on IOS in DElphi XE8 Firemonkey.



Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
AndroidComponentDelphiDemoFiremonkeyIOSLinuxOSXShowcaseWindows

Experience ChatGPT As A Native Cross-Platform Firemonkey Application

DelphiLibraryWindows

Run Large Language Models Entirely On The GPU With Delphi And Vulkan

Code SnippetDelphiDemoLibraryWindows

Add Real-Time AI Voice Conversations To Windows Applications

ComponentDelphiDemoLibraryWindows

Give AI Models Eyes, Ears, And Real-World Capabilities

Sign up for our Newsletter and
stay informed
[mailpoet_form id="1"]

Leave a Reply