Im trying to display a form within a hack. Its not going very well. By
experimentation Ive come up with the simple code below (Ive left out the
standard hack stuff which traps on sysProcessSoftKeystroke).
On detecting the keystroke it displays my alert 666 till I hit OK, then
displays
the form 4000 for 6 seconds. But after that things get strange.
If Im in another app then the buttons on the screen dont work. If Im in
the
standard CALC then the buttons work, but display rather strangely
indeed. If Im
in the apps screen itself then I get this (in POSE) on hitting the apps
button again :
"applications just read from memory location 0x8000001A. This access
usually
indicates that the aplication is calling a Window Manager function
without first
establishing a valid Draw Window."
Clearly Ive upset something by not understanding what I should really be
doing.
Can anyone enlighten me please ?
pres = DmOpenDatabaseByTypeCreator('HACK', 'test', dmModeReadOnly);
FrmAlert(666);
pfrm = FrmInitForm(4000);
FrmDrawForm(pfrm);
SysTaskDelay((Int32) SysTicksPerSecond() * 6);
FrmEraseForm(pfrm);
DmCloseDatabase(pres);
============================================================================================
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/