In article <92371@palm-dev-forum>, [EMAIL PROTECTED] says... > I removed the resources from the .tmp (patch) targets, and added them to the > final hack target, and was able to get the Hack to compile and link, but > when it executes, I now get the following: > > Address (3.5) called SysFatalAlert with the message: "Form.c, Line 1728, > Object not in form". > > Hopefully, I'm missing something trivial in the settings, and not making a > 'big-picture' kind of blunder here. None of the doc on hacks that I've seen > (Ed Keyes' hackmaster.api doc, doc on X-Master, doc on DemoHack) talk about > UI within hacks (other than the control panel UI range of 2000-2999 for use > within hackmaster/x-master), but since I've seen other hacks with UI, I'm > assuming my hack can have UI? Are there restrictions on ID ranges for UI > called from the patches themselves? Do I need something in Hack.r to > identify UI resources that are used by the patches, in addition to the patch > .tmp files and the X-Master resources that are defined there?
The big one is that if you want to open additional forms, you need to DmOpenDatabase on your hack database before trying to open anything else, so your hack opens your own form, and not the form of the running application. Be sure to DmCloseDatabase when you're done. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Get help at http://palmoswerks.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
