DroidDB Tip of the Month

DroidDB® Tip for April 2012

Creating a Form in Landscape Mode

By default, DroidDB's development environment has you design your form in portrait mode (taller than it is wide). But what if you want to design it in landscape mode (wider than it is tall). This is easy to do.

In the DroidDB folder on your handheld, there is a file called DroidDB_Info.ini. Copy this file to the windows folder of your development machine and open it using a text editor such as notepad. You will see:

     [Screen]
     width=320
     height=430

(your numbers may be different). Simply swap the values:

     [Screen]
     width=430
     height=320

and save the file.

This adjusts the dotted line which represents the physical screen on the device. At the time the form is saved, these dimensions are saved in the form. When the form runs on the handheld, we look at these dimensions and if they are wider than they are tall we show the form in landscape...otherwise we show the form in portrait. Regardless of how you twist and turn the device, the form will stay in landscape or portrait (we turn off auto-rotate).

 

Back to List »

Visit our store

Top rated! I needed a solid database application development tool for mobile devices. I chose DroidDB for Android OS because it provided a way to get a strong product to market quickly. DroidDB is relational, gives me control over form layout, handles macros, and supports events. It works on all Android versions I have tried and is a great companion product to SYWARE’s VisualCE.

Mark Read, President
SyntegraTech, Inc.

signup for our newsletter