ok in that case introduction to dynamic ui on palm: don't do it if you can
avoid it. adding things is ok, removing is buggy
what i means is that EVERY function that creates an item on a form can
change the FormPtr so you need to make sure that any copies of it you pass
or keep are correct. eg:
g_MyForm=frm;
FldNewField (
(void **)&frm,
1234,
40,20,
50,15,
stdFont,
80,
true,
grayUnderline,
true,
false,
leftAlign,
true,
false,
false
);
after this frm is the new form pointer and is valid, no guaranteed about
g_MyForm can be made however.
On 12/31/06, Waylander <[EMAIL PROTECTED]> wrote:
>
> Thanks for your hastey reply. Though I am not sure what you mean. I am
> still new to Palm and c/c++.
>
> On 12/31/06, Dmitry Grinberg < [EMAIL PROTECTED]> wrote:
> >
> > are you possibly using an old FormPtr ?
> >
> > On 12/31/06, Ron <[EMAIL PROTECTED] > wrote:
> > >
> > > Greetings,
> > > I thought I had gotten how to add Dynamic UI on a Resource created
> > > form, but it doesn't work as I planned. The UI show over the Resource
> > > Form... but the event handlers for that form no longer work.
> > > If someone could help me with understanding why this is here is an
> > > example of how I would create a textbox over a resource form MainForm:
> > > ----------------
> > > FormPtr frm;
> > > FieldPtr fldNew;
> > >
> > > FrmInitForm(MainForm);
> > > frm = FrmGetFormPtr(MainForm);
> > > FrmDrawForm(frm);
> > > FrmSetActiveForm(frm);
> > >
> > > fldNew = FldNewField (
> > > (void **)&frm,
> > > 1234,
> > > 40,20,
> > > 50,15,
> > > stdFont,
> > > 80,
> > > true,
> > > grayUnderline,
> > > true,
> > > false,
> > > leftAlign,
> > > true,
> > > false,
> > > false
> > > );
> > > FldSetUsable(fldNew,true);
> > > FldSetInsertionPoint(fldNew,0);
> > > FldDrawField(fldNew);
> > > ----------------------------
> > >
> > > After doing this, clicking on the menus or any other form event won't
> > > work.
> > >
> > > Thank you and have a great New Year :)
> > > --
> > > For information on using the PalmSource Developer Forums, or to
> > > unsubscribe, please see http://www.palmos.com/dev/support/forums/
> > >
> >
> >
> >
> > --
> > Best Regards, Dmitry Grinberg
> > Software Engineer, http://PalmPowerups.com
> > (847) 226 9295
> > AIM: DmitryGrinberg
> > MSN: [EMAIL PROTECTED]
> > ICQ: 165589894
> > Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer
> > Forums, or to unsubscribe, please see
> > http://www.palmos.com/dev/support/forums/
> >
>
>
> -- For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/