> In article <92371@palm-dev-forum>, [EMAIL PROTECTED] says... > ... > 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?
Keep in mind that your code runs in the currently active application, just as if it were a part of it. Every form id you use in your hack may already be loaded in the active app. This makes displaying your own form resources from a running hack pretty difficult, if not impossible. One solution (see the McPhling source for an example) would be to dynamically create the form and controls at runtime. Unfortunately, all dynamic control creation calls are thoroughly broken in all OS versions below 4.0 so you can only use FrmNewForm, CtlNewControl etc. on devices with PalmOS 4.0+. Unless you have a very good reason to display your own forms in your hack, and you have a very good understanding of what's actually going on there, my suggestion would be to refrain from displaying any UIs from your hack. Regards, Andreas Linke www.linkesoft.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
