OK, I got it figured out.  Reading the documentation carefully (!) there is
a new INput Area State with PIN Manager 1.1 called pinInputAreaUser.  Now if
I call this on the load event for the form, it works.  My code looks like
this:

static Boolean AppHandleEvent(EventType * eventP)
{
    UInt16 formId;
    FormType * frmP;
    WinHandle formWinH;
    Err err;

    if (eventP->eType == frmLoadEvent)
    {
        // Load the form resource.
        formId = eventP->data.frmLoad.formID;
        frmP = FrmInitForm(formId);
        FrmSetActiveForm(frmP);

          //  Set the Dynamic Input Area policy attribute, trigger state and
default size contraints
          if (HasDynamicInputArea) {  // Boolean set in appStart by FtrGet
for PIN Manager
               err = FrmSetDIAPolicyAttr(frmP, frmDIAPolicyCustom);
               err = PINSetInputTriggerState(pinInputTriggerEnabled);
               err = PINSetInputAreaState(pinInputAreaUser);
               formWinH = FrmGetWindowHandle(frmP);
               WinSetConstraintsSize(formWinH, 160, 320, 320, 160, 160,
320);
          }

        // Set the event handler for the form.  The handler of the
        // currently active form is called by FrmHandleEvent each
        // time is receives an event.
        switch (formId)
        {
        case LoginForm:
            FrmSetEventHandler(frmP, LoginFormHandleEvent);
            break;
.
.
.

However, now my problem is that the input area reappears when I open a
dialog through PrgStartDialog.  Any idea how I can pevent this from
happening?

Phil
"palmDev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> if that is the case then you will have to query the state of DIA
> and then disable/enable in your app.
>
> by default DIA shouldn't be active in your new form.You have
> specifically tell the form you want DIA support.
>
> do you any code in the InitForm() or OpenEvent to handle
> DIA?
>
> regards
>
> danny
>
>
>
> ----- Original Message -----
> From: "Phil Hartley" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 10, 2003 5:41 PM
> Subject: Re: Another DIA Problem
>
>
> > Danny
> >
> > I'm not sure that this is what I really want to do.  I want to leave the
> > trigger enabled so that the user can choose when to open and close the
> Input
> > Area.  What's happening is that when I traverse between forms, if the
> Input
> > Area was closed on the first form, it will open up automatically in the
> > second form.  I don't want this to happen.  If the Input Area was
closed,
> I
> > want it to remain closed and if it was open, I want it to remain open.
> >
> > Phil
> > "palmDev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > > HI,
> > >
> > > if you don't want the DIA toggle button to be enabled then
> > > add this  to your code
> > >
> > > oldPinTriggerState =
CollapseSetTriggerStates(pinInputTriggerDisabled);
> > >
> > > later to turn it back on.....
> > >
> > > CollapseSetTriggerStates(oldPinTriggerState );
> > >
> > > hope this is what you are asking.
> > >
> > > regards
> > > --
> > > danny
> > > Toysoft, Inc.
> > > www.toysoft.ca
> > >
> > >
> > > ----- Original Message -----
> > > From: "Phil Hartley" <[EMAIL PROTECTED]>
> > > Newsgroups: palm-dev-forum
> > > To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, December 10, 2003 5:19 PM
> > > Subject: Another DIA Problem
> > >
> > >
> > > > So I have coded my application pretty much the way that the
> > "Applications
> > > > and Dynamic Input Areas" documentation states you should and it
works
> to
> > a
> > > > certain extent.  However, when I navigate from Form to Form within
my
> > > > application, the DIA always opens.  Can anyone give me an indication
> of
> > > what
> > > > I might be missing, please?
> > > >
> > > > Phil
> > > >
> > > >
> > > >
> > > > --
> > > > For information on using the Palm Developer Forums, or to
unsubscribe,
> > > please see http://www.palmos.com/dev/support/forums/
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
> >
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to