"Dr. Vesselin Bontchev" a écrit :
> First, let me note that I've never done DIA support myself; that's the next
> item on my list of things to learn. :-)
Tough topic. Nothing worked when I tried to implement PalmSource's recipe. The
Garmin stuff was easier to implement, and works fine, except for this problem
with the Progress Dialog restoring the DIA.
> I suspect the problem comes from the fact that the Progress Manager doesn't
> have built-in DIA support. However, there probably is a way around that.
>
> I don't know how you can *prevent* the DIA from being displayed by the
> Progress Manager. However, I think you can close it by calling
> PINSetInputAreaState (pinInputAreaClosed).
I tried it, but it gets restores when the Progress Dialog gets displayed.
> Also, it might be possible to handle the move/resize of the modal dialog
> shown by the Progress Manager by doing the necessary hockus-pockus the first
> time that the callback function is called.
I'll try that, but I doubt it'll work. I let you know.
--
Luc Le Blanc
> That is, something like this:
>
> Boolean progressCallback (PrgCallbackDataPtr cbP)
> {
> FormType* frmP;
> Int16 offsetX, offsetY;
>
> switch (cbP->stage)
> {
> case 1:
> frmP = FrmGetActiveForm ();
> CollapseSetState (frmP, collapseStateModalUser);
> CollapseMoveResizeDialog (frmP, true, &offsetX, &offsetY);
> FrmDrawForm (frmP);
> break;
> // :
> // :
> default:
> break;
> }
> cbP->textChanged = true;
> return true;
> }
>
> where CollapseSetState() and CollapseMoveResizeDialog() are from the
> SampleCollapse example, available from the PalmSource Knowledge Base.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/