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).