Hi Folks,
I want to add a button dynamically to a form that is popped up with
FrmDoDialogue.
I can dynamically add a button to my own test form with:
CtlNewControl ((void
**)&frmP,NewButtonID,buttonCtl,"2",37,129,18,23,stdFont,0,false);
FrmShowObject(frmP,FrmGetObjectIndex(frmP,NewButtonID));
However when I use this on the popped up form, then two things happen;
1) I can navigate around with the 5way on the form objects in the form
below my popup!
(I have checked that the value of frmP is a new value associated with the
popped up form, and not my background form)
2) after a little navigation, I get a crash.
any ideas?
Thanks,
Rob
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/