Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDatabaseDelphiRAD Studio

Quickly Build A Drawer With The TMultiView Component For Android And iOS Apps Using FireMonkey In Delphi

The MultiViewDemo sample demonstrates how to build an application that implements the “master-detail” interface and how to use the master panel presentation modes.

In this post, we’ll show a sample that allows you to change the master panel characteristics, such as mode, placement, sliding mode, shadow properties, etc, with the help and use of Windows App Development Tools. You’ll also understand how to implement your master panel in the Custom presentation mode.

Location

You can find the FireMonkeyMobile MultiViewDemo sample project at:

  • Start | Programs | Embarcadero RAD Studio Sydney | Samples and navigate to:
    • Object PascalMulti-Device SamplesUser InterfaceMultiView
    • CPPMulti-Device SamplesUser InterfaceMultiViewDemo
  • Subversion Repository:
    • You can find Delphi and C++ code samples in GitHub Repositories. Search by name into the samples repositories according to your RAD Studio version.

How to Run the Sample

  1. Navigate to the location given above and open the project file:
    • C++Builder: MultiViewDemoCpp.cbproj
    • Delphi: MultiViewDemo.dproj
  2. Press F9 or choose Run > Run.

How It Works

After you start this sample application, it displays the following form:

multiview

Note: This screen displays the 32-bit Windows desktop application form as an example. However, the forms for other target platforms provide similar functionality.

Using this form you can perform the following basic operations:

  • Select the master panel presentation mode from the Multi View Mode list. The available modes are:
    • PlatformBehaviour
    • Docked Panel
    • Popover
    • Drawer
    • Custom
  • Specify parameters for each presentation mode on the DrawerPopover and Split View tabs, respectively.
  • Specify parameters of a shadow that the master pane casts on the detail pane on the Shadow tab.

The more detailed post with external links to other posts can be found in the next link:

http://docwiki.embarcadero.com/CodeExamples/Sydney/en/FMX.MultiViewDemo_Sample

Head over and check out the full souce code for this modern MultiView sample on Embarcadero’s GitHub.

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES