That SDK is useless, since OS randomly resets DIA state and what is
allowed and not allowed (collapsibility, rotateability, orientation)

as long as you are guaranteed to be running on OS 5.4+ the best way is
to manipulate the fields directly. This causes the DIA to not jerk up
and down. and allows some stranger states to be set in per-form
manner. Eg a form's dia policy can be "dia always up, form always
shown in portrait, rotation disabled collapsing enabled) this means
that when form is shown device will rotate to portrait alwasy, open
dia, but allow collapsing and disallow rotation. The parameters are:

orientation: {port,land,rev port, rev land}
collapsibility: {yes, no}
rotateability: {yes, no}
original dia state: {up, down}

thus making for 32 combinations.

If anyone is actually interested, I can share the info



----
Best Regards,
Dmitry Grinberg
(847) 226 9295



On Mon, Jan 26, 2009 at 3:20 PM, Ben Rittgers <[email protected]> wrote:
> In the Palm SDK look at the DIA example.  It is not well documented.
> Honestly, that is the best example in all of Palm Programming for using the
> DIA.  I tried googling for more info.
>
> As for preventing rotation look around.  Just make the forms you want to be
> full screen, be full screen.  For the once that you don't want to be full
> screen, just display the keyboard.
>
> codemaker wrote:
>>
>> Is it possible to disable or enable some functions of Dia?
>> For example, I don't want the device to rotate and I always want to
>> display some forms in full screen while in another form I always want to
>> display the keyboard.
>> How do you set this programmatically?
>>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to